Weird crash on weapon switch.

Feb 14, 2008
1,051
931
I've created a map where I only want the sniper class to be played and the kukri weapon to be used. I've used a trigger_multiple to kill both of the sniper's other weapons and a clientcommand to make them join the sniper class.

In the game this all works fine, I switch from a solider to a sniper automatically, and on the weapon switch screen I see that I can only choose my Kukri. However, when I do switch to the weapon, the game freezes a short while after and crashes. How do I fix this?

Also, as a matter of interest, how do you make a person switch automatically to a weapon, I know the sort of code, but it doesn't seem to work instantly.
 
Feb 14, 2008
1,051
931
Oh right, thanks for the info. Does this crash when weapons are removed via the server as well?