I've wrote this script for testing purpose:
function non_weapon_init(e)
end
function non_weapon_main(e)
PlayerDist = GetPlayerDistance(e)
if PlayerDist < 100 then
SetPlayerWeapons(0)
else
SetPlayerWeapons(1)
end
end
It looks like when use it, GG pass 0 as parameter, so hide weapon.
You need use middle mouse button, or use the numbers (1, 2, 3, and so on), to show the weapon in hand.
3com
Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz
OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics