Quote:
Originally Posted by Powerlord
Why not have Goomba Stomp as an optional dependency and then use the OnStomp forward to adjust its damage bonus/multiplier and break the shield there?
|
I coooould also uh... Make a 0.0 timer on ontakedamage that sets a bool to false, and make player_hurt set it to true if it's
not a goomba, and at the end of the timer it breaks the shield if it's true, but that'd be kinda silly.
On my server I just edited goomba.sp / goomba_tf.sp themselves (but I also applied a fix to how minicrit buffs affect damage and some other changes).
But yeah I'll probably just include goomba.inc if I change it in the public version.
On that note, I changed IsValidClient for my private server.
PHP Code:
#define IsValidClient(%1) (0 < %1 && %1 <= MaxClients && IsClientInGame(%1))
I never really saw the point of all those other checks, but I'd like confirmation that those are safe to get rid of.
Slowly been working on some optimizations because every cycle counts to a SMW hacker.
__________________