exp_grenade

From Valve Developer Community
Jump to navigation Jump to search
English (en)Translate (Translate)

exp_grenade is a point entity available in No More Room in Hell No More Room in Hell.

Entity Description

The M67 Grenade is a fragmentation grenade, rarely dropped by National Guard Zombies, as well as rarely found in maps.

KeyValues

View Model Override (viewmodel_override) <model path>
Sets a custom view model for this weapon.
World Model Override (worldmodel_override) <model path>
Sets a custom world model for this weapon.
Label Override (label_override) <string>
Overrides visible name in inventory wheel and other places, accepts localization strings.
Inventory Icon Override (icon_override) <texture>
Overrides material for VGUI inventory wheel icon.
Weight Override (weight_override) <integer>
Overrides physical weight (in player's inventory). Leave at -1 for default.

Flags

Disable Motion : [1]
Disables the physics system from acting upon on this item.

Inputs

Kill
Kills the entity. Can cause issues if killed while in a player's inventory.

Outputs

OnPlayerDrop
Fires when a player drops this weapon.
OnPlayerPickup
Fires when a player picks up this weapon.

Dedicated console variables

Cvar/Command Parameters or default value Descriptor Effect
sv_grenade_angular_impulse_max 128 integer Maximum amount of roll that can be applied to a thrown grenade.
sv_grenade_angular_impulse_min -128 integer Minimum amount of roll that can be applied to a thrown grenade.
sv_grenade_blast_radius 256 integer Blast radius of grenade.
sv_grenade_infect_bypass 1 boolean Infected players dying by explosion won't turn.
sv_grenade_rise 0 boolean Warp grenades slightly off ground at detonation to improve effectiveness around clutter.
sv_ng_zombie_drop_grenade 1 boolean NG zombies can drop grenades as loot on death.