diff --git a/dlls/game.cpp b/dlls/game.cpp index f280add68..b80ce859f 100644 --- a/dlls/game.cpp +++ b/dlls/game.cpp @@ -742,6 +742,7 @@ cvar_t satchelfix = { "satchelfix", "1", FCVAR_SERVER }; cvar_t explosionfix = { "explosionfix", "1", FCVAR_SERVER }; cvar_t monsteryawspeedfix = { "monsteryawspeedfix", "1", FCVAR_SERVER }; cvar_t animeventfix = {"animeventfix", "0", FCVAR_SERVER }; +cvar_t anim_attack_reset_fix = {"anim_attack_reset_fix", "1", FCVAR_SERVER }; cvar_t corpsephysics = { "corpsephysics", "0", FCVAR_SERVER }; cvar_t pushablemode = { "pushablemode", "0", FCVAR_SERVER }; cvar_t forcerespawn = { "mp_forcerespawn","1", FCVAR_SERVER }; @@ -1578,6 +1579,7 @@ void GameDLLInit( void ) CVAR_REGISTER( &explosionfix ); CVAR_REGISTER( &monsteryawspeedfix ); CVAR_REGISTER( &animeventfix ); + CVAR_REGISTER( &anim_attack_reset_fix ); CVAR_REGISTER( &corpsephysics ); CVAR_REGISTER( &pushablemode ); CVAR_REGISTER( &forcerespawn ); diff --git a/dlls/gonome.cpp b/dlls/gonome.cpp index 372161fcb..0a69bf63b 100644 --- a/dlls/gonome.cpp +++ b/dlls/gonome.cpp @@ -50,8 +50,6 @@ #define GONOME_AE_BITE3 ( 21 ) #define GONOME_AE_BITE4 ( 22 ) -#define GONOME_SCRIPT_EVENT_SOUND ( 1011 ) - //========================================================= // Gonome's guts projectile //========================================================= @@ -470,11 +468,6 @@ void CGonome::HandleAnimEvent(MonsterEvent_t *pEvent) { switch (pEvent->event) { - case GONOME_SCRIPT_EVENT_SOUND: - // HACK: prevent playing the sound twice - if (m_Activity != ACT_MELEE_ATTACK1) - EmitSound( CHAN_BODY, pEvent->options, 1, ATTN_NORM); - break; case GONOME_AE_SPIT: { Vector vecArmPos, vecArmAng; diff --git a/dlls/schedule.cpp b/dlls/schedule.cpp index 51ef6e964..446640482 100644 --- a/dlls/schedule.cpp +++ b/dlls/schedule.cpp @@ -357,6 +357,8 @@ void CBaseMonster::MaintainSchedule( void ) } } +extern cvar_t anim_attack_reset_fix; + //========================================================= // RunTask //========================================================= @@ -566,6 +568,8 @@ void CBaseMonster::RunTask( Task_t *pTask ) if( m_fSequenceFinished ) { m_Activity = ACT_RESET; + if (anim_attack_reset_fix.value) + m_IdealActivity = ACT_RESET; TaskComplete(); } break; @@ -584,6 +588,8 @@ void CBaseMonster::RunTask( Task_t *pTask ) if( m_fSequenceFinished ) { m_Activity = ACT_RESET; + if (anim_attack_reset_fix.value) + m_IdealActivity = ACT_RESET; TaskComplete(); } break;