View Single Post
nergal
Veteran Member
Join Date: Apr 2012
Old 07-15-2014 , 19:13   Re: Versus Saxton Hale 1.43 - Now with collaboration! (Last updated 7/15/2014)
Reply With Quote #24

Quote:
Originally Posted by Chdata View Post
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 5Marketed++;

                            
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_TRAFFICSND_NOFLAGS0.6100_PosNULL_VECTORfalse0.0);
                            
EmitSoundToClient(attacker"player/doubledonk.wav"__SNDLEVEL_TRAFFICSND_NOFLAGS0.6100_PosNULL_VECTORfalse0.0);

                            return 
Plugin_Changed;
                        }
                    } 
2.25% damage cuz

market gardener is melee so always crit = constant 195

say hale had 30k hp = 30k * 0.025 * 3(cuz crit) = 2250
__________________
nergal is offline