mirror of
https://gitlab.com/drummyfish/anarch.git
synced 2024-11-24 01:42:19 -05:00
Play more sounds
This commit is contained in:
parent
d901ecae89
commit
9b6803936f
16
main.c
16
main.c
@ -1616,6 +1616,18 @@ void SFG_monsterPerformAI(SFG_MonsterRecord *monster)
|
||||
break;
|
||||
}
|
||||
|
||||
if (projectile == SFG_PROJECTILE_BULLET)
|
||||
SFG_playSoundSafe(0,
|
||||
SFG_distantSoundVolume(
|
||||
SFG_MONSTER_COORD_TO_RCL_UNITS(monster->coords[0]),
|
||||
SFG_MONSTER_COORD_TO_RCL_UNITS(monster->coords[1]),
|
||||
SFG_floorHeightAt(
|
||||
SFG_MONSTER_COORD_TO_SQUARES(monster->coords[0]),
|
||||
SFG_MONSTER_COORD_TO_SQUARES(monster->coords[1])
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
SFG_launchProjectile(
|
||||
projectile,
|
||||
pos,
|
||||
@ -1692,6 +1704,8 @@ void SFG_monsterPerformAI(SFG_MonsterRecord *monster)
|
||||
|
||||
SFG_playerChangeHealth(
|
||||
-1 * SFG_getDamageValue(SFG_WEAPON_FIRE_TYPE_MELEE));
|
||||
|
||||
SFG_playSoundSafe(3,255);
|
||||
}
|
||||
else // SFG_MONSTER_ATTACK_EXPLODE
|
||||
{
|
||||
@ -2009,6 +2023,8 @@ void SFG_gameStep()
|
||||
|
||||
SFG_createDust(pX,pY,pZ);
|
||||
|
||||
SFG_playSoundSafe(3,255);
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user