mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-03-12 05:22:55 +00:00
Add HANDGRENADE_DEPLOY_FIX macros for fixing the handgrenade deploy animation after finishing a throw (#275)
This commit is contained in:
parent
1313bb1b66
commit
763af29054
@ -65,6 +65,7 @@ option(CROWBAR_DELAY_FIX "Enable crowbar attack delay fix" OFF)
|
|||||||
option(CROWBAR_FIX_RAPID_CROWBAR "Enable rapid crowbar fix" OFF)
|
option(CROWBAR_FIX_RAPID_CROWBAR "Enable rapid crowbar fix" OFF)
|
||||||
option(GAUSS_OVERCHARGE_FIX "Enable gauss overcharge fix" OFF)
|
option(GAUSS_OVERCHARGE_FIX "Enable gauss overcharge fix" OFF)
|
||||||
option(TRIPMINE_BEAM_DUPLICATION_FIX "Enable fix of tripmine beam duplication on level transition" OFF)
|
option(TRIPMINE_BEAM_DUPLICATION_FIX "Enable fix of tripmine beam duplication on level transition" OFF)
|
||||||
|
option(HANDGRENADE_DEPLOY_FIX "Enable handgrenade deploy animation fix after finishing a throw" OFF)
|
||||||
option(OEM_BUILD "Enable OEM Build" OFF)
|
option(OEM_BUILD "Enable OEM Build" OFF)
|
||||||
option(HLDEMO_BUILD "Enable Demo Build" OFF)
|
option(HLDEMO_BUILD "Enable Demo Build" OFF)
|
||||||
|
|
||||||
@ -142,6 +143,11 @@ if(TRIPMINE_BEAM_DUPLICATION_FIX)
|
|||||||
add_definitions(-DTRIPMINE_BEAM_DUPLICATION_FIX)
|
add_definitions(-DTRIPMINE_BEAM_DUPLICATION_FIX)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(HANDGRENADE_DEPLOY_FIX)
|
||||||
|
message(STATUS "Handgrenade deploy animation fix enabled")
|
||||||
|
add_definitions(-DHANDGRENADE_DEPLOY_FIX)
|
||||||
|
endif()
|
||||||
|
|
||||||
if(OEM_BUILD)
|
if(OEM_BUILD)
|
||||||
message(STATUS "OEM build enabled")
|
message(STATUS "OEM build enabled")
|
||||||
add_definitions(-DOEM_BUILD)
|
add_definitions(-DOEM_BUILD)
|
||||||
|
@ -173,7 +173,9 @@ void CHandGrenade::WeaponIdle( void )
|
|||||||
// player "shoot" animation
|
// player "shoot" animation
|
||||||
m_pPlayer->SetAnimation( PLAYER_ATTACK1 );
|
m_pPlayer->SetAnimation( PLAYER_ATTACK1 );
|
||||||
|
|
||||||
|
#if !HANDGRENADE_DEPLOY_FIX
|
||||||
m_flReleaseThrow = 0.0f;
|
m_flReleaseThrow = 0.0f;
|
||||||
|
#endif
|
||||||
m_flStartThrow = 0.0f;
|
m_flStartThrow = 0.0f;
|
||||||
m_flNextPrimaryAttack = GetNextAttackDelay( 0.5f );
|
m_flNextPrimaryAttack = GetNextAttackDelay( 0.5f );
|
||||||
m_flTimeWeaponIdle = UTIL_WeaponTimeBase() + 0.5f;
|
m_flTimeWeaponIdle = UTIL_WeaponTimeBase() + 0.5f;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user