Skip to content

Commit

Permalink
Fix Alien Slave playing the powerup effect again after the attack
Browse files Browse the repository at this point in the history
  • Loading branch information
RedSprend authored Nov 30, 2024
1 parent 534ee8b commit 51c4ce7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dlls/monster/CISlave.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,10 @@ void CISlave :: HandleAnimEvent( MonsterEvent_t *pEvent )

case ISLAVE_AE_ZAP_POWERUP:
{
// Hack to prevent the event from playing again when the animation ends
if (m_iTaskStatus == TASKSTATUS_COMPLETE)
break;

CSoundEnt::InsertSound(bits_SOUND_COMBAT, pev->origin, NORMAL_GUN_VOLUME, 3.0);

pev->framerate = gSkillData.sk_islave_speed_zap;
Expand Down

0 comments on commit 51c4ce7

Please sign in to comment.