Cleanup is going to take awhile, so the site is back up but editing has been disabled.
Env gunfire
From HalfLife 2 Knowledge Base
Contents |
[edit]
env_gunfire
Half-Life 2 Point Entity
[edit]
description
Gunfire Effect
[edit]
properties
- Name targetname(target_source)
The name that other entities refer to this entity by. - Parent parentname(target_destination)
The name of this entity's parent in the movement hierarchy. Entities with parents move with their parent. - Name targetname(target_source)
The name that other entities refer to this entity by. - Start Disabled StartDisabled(choices)
- 0 - No
- 1 - Yes
- Target target(target_destination)
Shoot at this target. REMEMBER - this is an effect only! It does not do damage! - Min Burst Size minburstsize(integer) - default: 2
Minimum number of rounds in a burst. - Max Burst Size maxburstsize(integer) - default: 7
Maximum number of rounds in a burst. - Min Delay Between Bursts minburstdelay(float) - default: 2
Minimum delay between bursts. (seconds) - Max Delay Between Bursts maxburstdelay(float) - default: 5
Maximum delay between bursts. (seconds) - Rate of fire rateoffire(float) - default: 10
Expressed as rounds per second - Bullet spread spread(choices) - default: The 'cone of inaccuracy' of the shots fired by this entity.
5- 1 - 1 Degree
- 5 - 5 Degrees
- 10 - 10 Degrees
- 15 - 15 Degrees
- Bullet distribution should be... bias(choices) - default: How to distribute bullets within the spread. Even distribution is a true scatter throughout the spread. Biased towards the outside makes the shots 'miss' the target by tending towards the outside of the spread.
1- 1 - Evenly distributed
- -1 - Biased towards the outside
- Collision detection collisions(choices) - default: Whether/how to handle bullet collision detection. NOTE
- 0 - None. Cheap for performance.
- 1 - Normal collision detection.
- Shoot Sound shootsound(choices) - default: Gunfire sound to make
Weapon_AR2.NPC_Single- "Weapon_AR2.NPC_Single" - AR2
- "Weapon_SMG1.NPC_Single" - SMG1
- Tracer tracertype(choices) - default: Type of tracer to display
AR2TRACER- "Default" -
- "AR2TRACER" - AR2
[edit]
spawn flags
none.
[edit]
inputs
- Kill(void)
Removes this entity from the world. - KillHierarchy(void)
Removes this entity and all its children from the world. - AddOutput(string)
Adds an entity I/O connection to this entity. Format - FireUser1(void)
Causes this entity's OnUser1 output to be fired. - FireUser2(void)
Causes this entity's OnUser2 output to be fired. - FireUser3(void)
Causes this entity's OnUser3 output to be fired. - FireUser4(void)
Causes this entity's OnUser4 output to be fired. - SetParent(string)
Changes the entity's parent in the movement hierarchy. - SetParentAttachment(string)
Change this entity to attach to a specific attachment point on it's parent. Entities must be parented before being sent this input. The parameter passed in should be the name of the attachment. - ClearParent(void)
Removes this entity from the the movement hierarchy, leaving it free to move independently. - Enable(void)
Enable this entity. - Disable(void)
Disable this entity.
[edit]
outputs
- OnUser1(void)
Fired in response to FireUser1 input. - OnUser2(void)
Fired in response to FireUser2 input. - OnUser3(void)
Fired in response to FireUser3 input. - OnUser4(void)
Fired in response to FireUser4 input.
[edit]
related tutorials
Submit your tutorial for env_gunfire

