[Tutorial] Restoring weapon_stunstick functionality in the release version
 

0 Пользователей и 1 Гость просматривают эту тему.

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
[свернуть]
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
[свернуть]
You can get the model from either the Beta version or from HL2 DeathMatch :)
Отредактировано: 05 Фев 2026, 21:57:03 от buildcubemaps