Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: "ForceHolsterWeapon" player entity input + "+holster" keybind #1334

Open
pivotman319-owo opened this issue Jan 14, 2025 · 0 comments
Labels
Priority 4: Low Something that can be picked up for the next release, but can be kicked back if need be. Size 5: Trivial Something that will take a couple minutes to do; a couple of lines to change. Type: Feature This is something completely new that will be added. What: Entities Issues relating to entities

Comments

@pivotman319-owo
Copy link
Member

pivotman319-owo commented Jan 14, 2025

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.

@pivotman319-owo pivotman319-owo added the Type: Feature This is something completely new that will be added. label Jan 14, 2025
@pivotman319-owo pivotman319-owo changed the title Feature: "ForceHolsterWeapon" player entity input + keybind Feature: "ForceHolsterWeapon" player entity input + "+holster" keybind Jan 14, 2025
@pivotman319-owo pivotman319-owo added Priority 4: Low Something that can be picked up for the next release, but can be kicked back if need be. Size 5: Trivial Something that will take a couple minutes to do; a couple of lines to change. What: Entities Issues relating to entities labels Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority 4: Low Something that can be picked up for the next release, but can be kicked back if need be. Size 5: Trivial Something that will take a couple minutes to do; a couple of lines to change. Type: Feature This is something completely new that will be added. What: Entities Issues relating to entities
Projects
None yet
Development

No branches or pull requests

1 participant