1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-06-07 21:59:49 -05:00

Bouncing Betty: optimize detonate

Bouncing Betty: wait before detonate
Bouncing Betty: add detonate sound
Bouncing Betty: add place sound
This commit is contained in:
Jbleezy 2024-02-10 15:19:06 -08:00
parent 4c7b0f53c7
commit 4a0fdcc3db
2 changed files with 12 additions and 5 deletions

View File

@ -132,7 +132,7 @@ betty_safe_to_plant()
betty_wait_and_detonate() betty_wait_and_detonate()
{ {
wait 0.1; wait 0.1;
self detonate(self.owner); self bouncingbettydetonate();
} }
betty_watch() betty_watch()
@ -345,14 +345,21 @@ betty_detonation()
if (ent damageconetrace(self.origin, self) > 0) if (ent damageconetrace(self.origin, self) > 0)
{ {
self spawnminemover(); self playsound("wpn_claymore_alert");
self.minemover thread bouncingbettyjumpandexplode(); wait 0.1;
self delete(); self bouncingbettydetonate();
return; return;
} }
} }
} }
bouncingbettydetonate()
{
self spawnminemover();
self.minemover thread bouncingbettyjumpandexplode();
self delete();
}
spawnminemover() spawnminemover()
{ {
minemover = spawn("script_model", self.origin); minemover = spawn("script_model", self.origin);

File diff suppressed because one or more lines are too long