Item weapon assassin glock: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "{{ent not in fgd}} right | 160px {{this is a|model entity|name=item_weapon_assassin_glock|game=Black Mesa}} It is assassin's glock 17 pickup entity, which gives {{ent|weapon_assassin_glock}} for the {{ent|player}} when picked up. It also gives {{ent|item_ammo_glock}}. Not used by the game, the female assassins don't drop any weapons when killed (only 9mm clip). Represented by class <code>...")
 
No edit summary
Line 1: Line 1:
{{ent not in fgd}}
{{ent not in fgd}}
[[File: item_weapon_glock_bms.png | right | 160px]]
[[File: item_weapon_glock_bms.png | right | 160px]]
{{this is a|model entity|name=item_weapon_assassin_glock|game=Black Mesa}} It is [[Npc human assassin|assassin]]'s [[item_weapon_glock|glock 17]] pickup entity, which gives {{ent|weapon_assassin_glock}} for the {{ent|player}} when picked up. It also gives {{ent|item_ammo_glock}}. Not used by the game, the female assassins don't drop any weapons when killed (only 9mm clip).
{{this is a|model entity|name=item_weapon_assassin_glock|game=Black Mesa}} It is [[Npc human assassin|assassin]]'s [[item_weapon_glock|glock 17]] pickup entity, which gives {{ent|weapon_assassin_glock}} for the {{ent|player}} when picked up. It also gives {{ent|item_ammo_glock}}. Not used by the game anywhere, also the female assassins don't drop any weapons when killed (only 9mm clip).


Represented by class <code>CItem_weapon_assassin_glock</code>.
Represented by class <code>CItem_weapon_assassin_glock</code>.

Revision as of 08:21, 20 May 2025

Icon-NotInFGD.png
This entity is not in the FGD by default.
See below for instructions on making it available.
Item weapon glock bms.png

item_weapon_assassin_glock is a model entity available in Black Mesa Black Mesa. It is assassin's glock 17 pickup entity, which gives weapon_assassin_glock for the player when picked up. It also gives item_ammo_glock. Not used by the game anywhere, also the female assassins don't drop any weapons when killed (only 9mm clip).

Represented by class CItem_weapon_assassin_glock.

Note.pngNote:Most objects that inherit class CBasePickup in Black Mesa have the following features:
  • They're VPhysics objects (disabled in multiplayer mode).
  • Respawn in multiplayer mode (item_weapon_ entities creating xen portal effects as well).
  • No physics and collision in multiplayer.
  • Model can be changed to your own via the parameter (which is not in the FGD by default, added in Enhanced Black Mesa FGD).
Icon-Bug.pngBug:Doesn't collide with other CBasePickup and weapon_ entities (not in Black Mesa (mod)).
Warning.pngRisk of Confusion:Not to be confused with weapon_assassin_glock. The key difference between weapon_ and item_weapon_ entities are:
  • The respawn mechanics in multiplayer and the respawn sound are different.
  • weapon_ physics and collision isn't disabled in multiplayer.
  • weapon_ model cannot be changed with properties.
  • Different inputs, outputs and flags.
  • item_weapon_ can be destroyed by damaging it (nest with snarks only).
  • weapon_ are not giving extra ammo.

Keyvalues

Respawn Time (respawntime) <float>
Time waited between respawns in multiplayer mode.
Model (model) <model path> !FGD
Model to use for this entity.
Note.pngNote:Multiplayer mode will not override this value for models with animated sheen if the value isn't default.

Outputs

OnPlayerDenied <void>
Fires if the player has not picked it up when touched.
OnPlayerPickup <void>
Fires if the player picked it up.

Inputs

AttachTo <void>
Attaches this entity to !activator, the entity becomes impossible to pick up. It becomes invisible in first person mode, but only in Steam versions of the game only.
Respawn <void>
Respawn this entity in multiplayer. Fired by this entity after the amount of time from Respawn Time property.
Disable <void>
Make this item invisible and disable the ability to be picked up by players.
Icon-Important.pngImportant:Does not disable physics and collision.
Enable <void>
Make this item visible and enable the ability to be picked up by players.
Fall <void>
Doesn't seem to work.

Flags

Start Asleep : [1]
Motion Disabled : [2]
Hard Respawn : [4]
Respawn this entity even if it's already spawned. The timer will cycle throughout entire round. Picking up does not restart the timer.
Silent Pickup : [8]
Pick up this entity with no sound and HUD animation.

See also