diff options
| author | aura <nw@moneybot.cc> | 2026-02-17 23:42:09 +0100 |
|---|---|---|
| committer | aura <nw@moneybot.cc> | 2026-02-17 23:42:09 +0100 |
| commit | 5e2eb7d67ae933b7566f1944d0bb7744da03d586 (patch) | |
| tree | 054acff1113270a9cd07933df760f3768c1b6853 /sourcemod/scripting/gokz-hud/hide_weapon.sp | |
| parent | 341db13a008dc12bb22ceb50452d93d01476308c (diff) | |
move source stuff to its own folder
Diffstat (limited to 'sourcemod/scripting/gokz-hud/hide_weapon.sp')
| -rw-r--r-- | sourcemod/scripting/gokz-hud/hide_weapon.sp | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/sourcemod/scripting/gokz-hud/hide_weapon.sp b/sourcemod/scripting/gokz-hud/hide_weapon.sp deleted file mode 100644 index b290d8f..0000000 --- a/sourcemod/scripting/gokz-hud/hide_weapon.sp +++ /dev/null @@ -1,30 +0,0 @@ -/* - Hides weapon view model. -*/ - - - -// =====[ EVENTS ]===== - -void OnPlayerSpawn_HideWeapon(int client) -{ - UpdateHideWeapon(client); -} - -void OnOptionChanged_HideWeapon(int client, HUDOption option) -{ - if (option == HUDOption_ShowWeapon) - { - UpdateHideWeapon(client); - } -} - - - -// =====[ PRIVATE ]===== - -static void UpdateHideWeapon(int client) -{ - SetEntProp(client, Prop_Send, "m_bDrawViewmodel", - GOKZ_HUD_GetOption(client, HUDOption_ShowWeapon) == ShowWeapon_Enabled); -}
\ No newline at end of file |
