Disabling/disallowing grav gun

colblair

Newbie
Joined
Jun 1, 2005
Messages
30
Reaction score
0
Occasionally on the HL2 dm server i'm running I'm adding in NPCs - the players love it, however it can cause a server crash if the player is hit (eg. rammed by an antlionguard, smacked over the head by a zombie) while carrying something with the grav gun.
I want to be able to temporarily disable its use. My first thought was to reduce the physcannon maxmass variable, which initially worked - however it only works if you leave cheats on. Once I turned cheats off the variable returned to its prior value... same with the other physcannon properties.
Any suggestions?
 
you could write a .cfg file... You do know what a cfg is right?
Write this :
Bind KEY "Sv_cheats 1; Ent_remove(something like physgun or whatever, I'll check it out later); Sv_cheats 0"

This deletes the gravity gun for everyone currently alive. If someone respawns, press the key again.
 
Never tested, but I think you can with the Mani admin mod.
 
Back
Top