Quote:
Originally Posted by OciXCrom
Post probably. pev() is for getting a value, set_pev() is for setting it, so set_pev() along with pev_button, and remove the IN_ATTACK button.
|
I'm trying:
Code:
public PrimaryAttack_Post(ent)
{
new id = get_pdata_cbase( ent, 41, 4 )
if( 0 < id <= MaxPlayers )
{
static button; button = pev( id, pev_button )
if( button & IN_ATTACK )
{
button &= ~IN_ATTACK
set_pev( id, pev_button, button )
console_print( id, "Button modified: eliminated IN_ATTACK from user buttons." )
}
}
}
Don't work...
The message is printed in console, but behavior of the weapon (ak47) is NOT changed.