Quote:
Originally Posted by Natsheh
New error there's a problem with switching weapons if anyone can post the function of switching weapons or deploying them because i can't find it.
The problem is when switching a weapon the holster weapon is been deployed again, the dead flag is some how preventing the new weapon from been deployed, i searched the SelectItem in player.cpp but I couldn't find anything useful.
|
Solved, by setting the player dead_flag to dead_no and re-executing the weapon selection then setting back the player to dead_respawn in client_command forward, the same thing for dropping the weapons.
__________________