Doesn't seems to work, tried with other condition, any help?
For BLU (A.K.A. VSH/FF2 boss) only.
Useful when entering crouch only area.
Need use check ground level since i running bhop, otherwise bhop = no knockback.
PHP Code:
#include <sourcemod>
#include <sdktools>
#include <tf2>
#include <tf2_stocks>
public Plugin:myinfo =
{
name = "Knockback Immunity Crouch",
author = "Bonkorn",
}
stock FrameAction(any:client)
{
if(GetClientTeam(client) == 3 && GetClientButtons(client) & IN_DUCK)
{
SaveKeyTime(client);
if(GetEntityFlags(client) & FL_ONGROUND)
{
TF2_AddCondition(client, TFCond_RuneKnockout, 0.03);
}
}
}
solved:
PHP Code:
public Action OnPlayerRunCmd(client) // changed this -.-
{
if(GetClientTeam(client) == 3 && GetClientButtons(client) & IN_DUCK)
{
SaveKeyTime(client);
if(GetEntityFlags(client) & FL_ONGROUND)
{
TF2_AddCondition(client, TFCond_MegaHeal, 0.03); // quick-fix uber, prevent exploiters spam drop knockback powerup runes.
}
}
}