|
|
|
@ -293,14 +293,20 @@ BOOL CSatchel::CanDeploy( void )
@@ -293,14 +293,20 @@ BOOL CSatchel::CanDeploy( void )
|
|
|
|
|
BOOL CSatchel::Deploy() |
|
|
|
|
{ |
|
|
|
|
m_pPlayer->m_flNextAttack = UTIL_WeaponTimeBase() + 1.0f; |
|
|
|
|
m_flTimeWeaponIdle = UTIL_WeaponTimeBase() + UTIL_SharedRandomFloat( m_pPlayer->random_seed, 10.0f, 15.0f ); |
|
|
|
|
BOOL result; |
|
|
|
|
|
|
|
|
|
if( m_chargeReady ) |
|
|
|
|
return DefaultDeploy( "models/v_satchel_radio.mdl", "models/p_satchel_radio.mdl", SATCHEL_RADIO_DRAW, "hive" ); |
|
|
|
|
result = DefaultDeploy( "models/v_satchel_radio.mdl", "models/p_satchel_radio.mdl", SATCHEL_RADIO_DRAW, "hive" ); |
|
|
|
|
else |
|
|
|
|
return DefaultDeploy( "models/v_satchel.mdl", "models/p_satchel.mdl", SATCHEL_DRAW, "trip" ); |
|
|
|
|
result = DefaultDeploy( "models/v_satchel.mdl", "models/p_satchel.mdl", SATCHEL_DRAW, "trip" ); |
|
|
|
|
|
|
|
|
|
return TRUE; |
|
|
|
|
#if WEAPONS_ANIMATION_TIMES_FIX |
|
|
|
|
if ( result ) |
|
|
|
|
{ |
|
|
|
|
m_flTimeWeaponIdle = UTIL_WeaponTimeBase() + 2.0f; |
|
|
|
|
} |
|
|
|
|
#endif |
|
|
|
|
return result; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void CSatchel::Holster( int skiplocal /* = 0 */ ) |
|
|
|
|