It's replacement code not standalone.
Comment out original function first. Can use
/* comment out */ method for multiple lines.
Spoiler
Code:
/*
public fw_TakeDamage(victim, inflictor, attacker, Float:damage)
{
if ( is_valid_player( attacker ) && get_user_weapon(attacker) == CSW_AK47 && g_HasAk[attacker] )
{
SetHamParamFloat(4, damage * get_pcvar_float( cvar_dmgmultiplier ) )
}
}
*/
#include engine_stocks
public fw_TakeDamage(victim, inflictor, attacker, Float:damage)
if ( is_valid_player( attacker ) && get_user_weapon(attacker) == CSW_AK47 && g_HasAk[attacker] )
{
if(!has_fired_rocket(attacker))
SetHamParamFloat(4, damage * get_pcvar_float( cvar_dmgmultiplier ) )
}
bool:has_fired_rocket(attacker)
{
new fired_rocket = find_ent(-1,"info_jetpack_rocket")
return pev(fired_rocket, pev_owner) != attacker ? false : true
}
One can leave the INCLUDE there but it belongs on top with the others.
__________________