Engine
Engine copied to clipboard
Feature: "ForceHolsterWeapon" player entity input + "+holster" keybind
Which component should be improved?
Entity (CBasePlayer, CPortal_Player)
Describe your feature suggestion in more detail
This is kind of self-explanatory. Basically "undraws" the weapon by holstering it and disabling attacks during that time. player_speedmod has a flag to holster the weapon, but only visually; it doesn't affect how you actually use the weapon itself. The same applies to the concommand impulse 200 and the HideWeapon input on CBaseCombatWeapon, both of which call SetWeaponVisible( false );.
Proposes the following entity inputs to be added to the following entity classes:
CBasePlayer/CPortal_Player:
- ForceHolsterWeapon
- ForceUnholsterWeapon
A keybind command, +holster, should also be added into the engine which does the two-way equivalent of both inputs.