diff options
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 |
