item_gene_therapy

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

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

Entity Description

The Gene Therapy is an experimental vaccine, used to remove the Infected status, and grant future Immunity until the Survivor dies.
This item can be given to another Survivor who has space in their inventory with Right Click (Default).
This fails if they are out of range, or already have one.
This item can rarely be found scattered around the map or in Supply Boxes.

KeyValues

Name (targetname) <string>
The name that other entities refer to this entity by.
Entity Scripts (vscripts) <string>
Name(s) of script files that are executed after all entities have spawned.
Script think function (thinkfunction) <string>
Name of a function in this entity's script scope which will be called automatically.
Pitch Yaw Roll (Y Z X) (angles) <angles>
This entity's orientation in the world. Pitch is rotation around the Y axis, yaw is the rotation around the Z axis, roll is the rotation around the X axis.
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 item.
OnPlayerPickup
Fires when a player picks up this item.
OnUser1 to OnUser4
Fired in response to the FireUser inputs.

Dedicated console variables

Cvar/Command Parameters or default value Descriptor Effect
cl_music_vaccine NMRiH_Music.Vaccine string Music to play while under effects of vaccine.
cl_vaccine_partial_blind_desaturation 0.7 float Intensity of desaturation while suffering partial blindness.
cl_vaccine_partial_blind_fadein 0.1 float Length (in seconds) to fade in partial blindness.
cl_vaccine_partial_blind_fadeout 0.1 float Length (in seconds) to fade out partial blindness.
cl_vaccine_partial_blind_intensity 1 float Intensity of partial blindness.
sv_vaccine_partial_blind_chance 0.1 float Chance of vaccine causing partial blindness.
sv_vaccine_partial_blind_duration 60 float Length (in seconds) of partial blindness effects.