[Tutorial] Restoring weapon_stunstick functionality in the release version
 

0 Members and 1 Guest are viewing this topic.

buildcubemaps

1. Go to hl2_player.cpp and find CHL2_Player::Weapon_CanUse
2. Add this code: if (HasNamedPlayerItem("weapon_stunstick")) {

It should look like this when done:
Spoiler
[close]
Also, in the stunstick client file (c_), you need to remove the effects, otherwise they'll appear on all weapons.
Find "void ClientThink" and comment out everything in that section - it should end up like this:
Spoiler
[close]
You can get the model from either the Beta version or from HL2 DeathMatch :)
Last Edit: 05 Feb 2026, 21:57:03 by buildcubemaps

SimplePortal 2.3.7 © 2008-2026, SimplePortal