I also have a market gardener code. (Below is only part of it).
The commented out line pertains to Soldier rocket jumping, getting stuck in HHH, and being able to "multi-backstab" the boss. I think it's commented out because it's either not working, or because I removed clipping from HHH for 2-4 seconds after he teleports unless it's a scout.
Also the damage is balanced around being weaker than backstabs (for various reasons).
There's also code to remove crits from the market gardener.
(dat 2.25% though... 51 damage solo? nope)
PHP Code:
case 416: //Market Gardener
{
if (GetRJFlag(attacker))
{
//if ((GetEntProp(client, Prop_Send, "m_iStunFlags") & TF_STUNFLAGS_GHOSTSCARE | TF_STUNFLAG_NOSOUNDOREFFECT) && Special == VSHSpecial_HHH) return Plugin_Continue;
damage = (Pow(float(HaleHealthMax), (0.74074)) + 512.0 - (Marketed/128*float(HaleHealthMax)) )/3.0; //divide by 3 because this is basedamage and lolcrits (0.714286)) + 1024.0)
damagetype |= DMG_CRIT;
if (Marketed < 5) Marketed++;
PrintCenterText(attacker, (Special == VSHSpecial_Nue) ? "You market gardened her!" : "You market gardened him!");
PrintCenterText(client, "You were just market gardened!");
EmitSoundToClient(client, "player/doubledonk.wav", _, _, SNDLEVEL_TRAFFIC, SND_NOFLAGS, 0.6, 100, _, Pos, NULL_VECTOR, false, 0.0);
EmitSoundToClient(attacker, "player/doubledonk.wav", _, _, SNDLEVEL_TRAFFIC, SND_NOFLAGS, 0.6, 100, _, Pos, NULL_VECTOR, false, 0.0);
return Plugin_Changed;
}
}
__________________