weapon_oldmanharpoon

From Valve Developer Community
Jump to navigation Jump to search
Info.png
This entity is not in the FGD by default.
It should not be put directly in a map because [Why?].
Class hierarchy
CWeaponOldManHarpoon
CWeaponCitizenPackage
CBaseHLCombatWeapon
CBaseCombatWeapon
CBaseAnimating
CBaseEntity
weapon_oldmanharpoon.cpp
Weapon oldmanharpoon.png

weapon_oldmanharpoon is a point entity available in Half-Life 2 series Half-Life 2 series.

Entity description

Used once for scripted sequences with the fisherman. Turns into prop_physics when dropped by the fisherman, this prop can be used by the gravity gun as a weapon that can pierces multiple enemies.

Flags

Start Constrained : [1]
Prevents the model from moving.
Deny player pickup (reserve for NPC) : [2]
Not puntable by Gravity Gun : [4]

Inputs

HideWeapon  !FGD
If this weapon is being held, hide the worldmodel and/or viewmodel via EF_NODRAW. Weapon will still be useable. The weapon will become visible again if the holder is to switch between weapons in their inventory.

Outputs

OnNPCPickup
Fires when an NPC picks up this weapon. (!activator is the NPC.)
OnPlayerUse
Fires when the player +uses this weapon. (!activator is the player.)
OnPlayerPickup
Fires when a player picks up this weapon. (!activator is the player.)
OnCacheInteraction
Fires when the player 'proves' they've found this weapon. Fires on: Player Touch, +USE pickup, Physcannon pickup, Physcannon punt.