View Single Post
Greg_Sucks
Member
Join Date: Jul 2009
Old 08-27-2009 , 11:27   Re: [TF2] Medic Godmode (no weapons, except medigun)
Reply With Quote #5

Quote:
Originally Posted by pheadxdll View Post
I do get this locker thing, that's why I offered advice.

Take a look at damizean's hat plugin. When a player activates an ammo cabnit, it reapplies the player's hat. You should use that, but remove the medics weapons, instead of hats. That's how you fix your problem.

And yes, players will die if they get shot in the head, or receive enough damage at once to kill them. You have to use dukehacks to fix that.
Dukehacks? Just use something like "SetEntProp(client, Prop_Data, "m_takedamage", 2, 1)" for god mode, and "SetEntProp(client, Prop_Data, "m_takedamage", 0, 1)" if you need them mortal again. It's worked fine for me in other plugins.
Greg_Sucks is offline