Quote:
Originally Posted by tei1995
Anyone can tell me how to make player shoot when blocking fire by offset 83 , 46 and return HAM_SUPERCEDE?
|
Force them to shoot or make them able to shoot?
PHP Code:
const m_flNextAttack = 83;
const m_flNextPrimaryAttack = 46;
const m_flNextSecondaryAttack = 47;
//Make sure this is used on player id
set_pdata_float( iPlayer , m_flNextAttack , get_gametime() , 5 );
//These are used on weapon entity id
set_pdata_float( iWeaponEntity , m_flNextPrimaryAttack , get_gametime() , 4 );
set_pdata_float( iWeaponEntity , m_flNextSecondaryAttack , get_gametime() , 4 );
__________________