mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Monitor damage sounds
This commit is contained in:
parent
dd71c81b24
commit
a982b3bf63
1 changed files with 4 additions and 0 deletions
|
|
@ -8,6 +8,7 @@
|
||||||
#include "../k_battle.h"
|
#include "../k_battle.h"
|
||||||
#include "../m_random.h"
|
#include "../m_random.h"
|
||||||
#include "../r_main.h"
|
#include "../r_main.h"
|
||||||
|
#include "../s_sound.h"
|
||||||
|
|
||||||
#define FINE90 (FINEANGLES/4)
|
#define FINE90 (FINEANGLES/4)
|
||||||
#define FINE180 (FINEANGLES/2)
|
#define FINE180 (FINEANGLES/2)
|
||||||
|
|
@ -665,6 +666,7 @@ Obj_MonitorOnDamage
|
||||||
? FixedDiv(FixedHypot(inflictor->momx, inflictor->momy), 4 * inflictor->radius) : 0;
|
? FixedDiv(FixedHypot(inflictor->momx, inflictor->momy), 4 * inflictor->radius) : 0;
|
||||||
monitor->hitlag =
|
monitor->hitlag =
|
||||||
3 * get_damage_multiplier(monitor) / FRACUNIT;
|
3 * get_damage_multiplier(monitor) / FRACUNIT;
|
||||||
|
S_StartSound(monitor, sfx_kc40);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
@ -707,6 +709,8 @@ Obj_MonitorOnDeath (mobj_t *monitor)
|
||||||
|
|
||||||
spawn_monitor_explosion(monitor);
|
spawn_monitor_explosion(monitor);
|
||||||
|
|
||||||
|
S_StartSound(monitor, sfx_gshcc);
|
||||||
|
|
||||||
// There is hitlag from being damaged, so remove
|
// There is hitlag from being damaged, so remove
|
||||||
// tangibility RIGHT NOW.
|
// tangibility RIGHT NOW.
|
||||||
monitor->flags &= ~(MF_SOLID);
|
monitor->flags &= ~(MF_SOLID);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue