weapon_medkit

From Valve Developer Community
Jump to navigation Jump to search
English (en)Translate (Translate)
weapon_medkit in Garry's Mod.

weapon_medkit is an entity available in Garry's Mod Garry's Mod and Sven Co-op Sven Co-op.

Before it is picked up, it also follows all physics rules as if it were a prop_physics (in Garry's Mod).

Entity description

A item_healthkit as a weapon that allows entities to heal other entities (players and NPCs).

Entity behaviour in Garry's Mod

Primary attack heals other entities. Secondary attack heals the user. Regenerates 2 points of ammo every 1 second.

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
!activator = NPC
!caller = this entity
Fires when an NPC picks up this weapon.
OnPlayerUse
!activator = player
!caller = this entity
Fires when the player +uses this weapon.
OnPlayerPickup
!activator = player
!caller = this entity
Fires when a player picks up this weapon.
OnCacheInteraction
Fires when the player 'proves' they've found this weapon. Fires on: Player Touch, +USE pickup, Physcannon pickup, Physcannon punt.