View Single Post
pheadxdll
AlliedModders Donor
Join Date: Jun 2008
Old 07-17-2010 , 19:07   Re: [TF2] Melee only
Reply With Quote #5

Right, some history:

Yeah, the two other melee plugins have two approaches. One is to strip all but your melee weapons, and disable the ammo cabinets. This presents a problem when you want to return to normal gameplay. bl4nk's plugin which I used for awhile and is now unapproved used OnPlayerRunCmd to set the player's active weapon. Unfortunately, it can be exploited by touching an ammo cabnit. Plus none of those plugins do melee mode the way I wanted it.

For all the minimal code I use during OnGameFrame, its worth the performance trade off (or what very little there is). Another way to check weapons is SDKHook's client think hook, but it's not worth it. I'm keeping this clean and simple.
__________________

Last edited by pheadxdll; 05-08-2014 at 18:31.
pheadxdll is offline