me_chainsaw

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

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

Entity Description

The Chainsaw is a portable circular saw that uniquely uses ammobox_fuel ammunition.
While loaded, a Survivor can start it with the Right Click (default) to start the engine, allowing rapid attacks while held.
When out of ammo, it resorts to the regular quick and charged attacks, though it's much less effective than other melee in this state.
The Chainsaw has greater range than the Abrasive Saw, but is twice as costly in fuel consumption.
As a two-handed weapon, wielding the Maglite with F (Default) will force you to unequip your weapon.

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 weapon.
OnPlayerPickup
Fires when a player picks up this weapon.
OnUser1 to OnUser4
Fired in response to the FireUser inputs.

Dedicated console variables

Cvar/Command Parameters or default value Descriptor Effect
sv_chainsaw_drain_rate_active 2 float Chainsaw fuel drain rate per second while attacking.
sv_chainsaw_drain_rate_idle 0.4 float Chainsaw fuel drain rate per second while idle.
sv_chainsaw_fix_charge_glitch 1 boolean Fixes a bug where chainsaw can be charged to deal extra damage.
sv_chainsaw_fix_use_entity_glitch 1 boolean Fixes a bug where chainsaw has infinite fuel while using something e.g. supply crate.