While rocket jumping
and while on the ground? I don't believe you can be both at the same time.
You may want to use
or to allow either to crit:
Code:
public Action OnTakeDamage(int client, int &attacker, int &inflictor, float &damage, int &damagetype, int &weapon, float damageForce[3], float damagePosition[3], int damagecustom)
{
if(TF2_IsPlayerInCondition(attacker, TFCond_BlastJumping) || (GetEntityFlags(attacker) & FL_ONGROUND))
{
damagetype|=DMG_CRIT;
return Plugin_Changed;
}
}
Unless you omitted it for brevity, don't forget to call
SDKHook to hook
OnTakeDamage on all the players.
__________________