Skip to main content

env_warpball

env_warpball icon
Point entityPorted from FeaturefulSpirit of Half-Life

An env_warpball plays the effect that Xen monsters appear in each time you trigger it: a glowing sprite, green lightning to the walls around it, two sounds, a shake of the view and, with a flag, a flash of light.

A monstermaker that names it in its Warpball key plays it where each monster appears.

Attributes​

The entity also has these common keys:

  • Appearance: Render FX, Render Mode, FX Amount and FX Color
KeyDescriptionDefault
Nametargetname

Triggering the entity plays the effect. See Common keys.

Targettarget

Names the entities to trigger each time the entity plays the effect, but not when a monstermaker plays it. See Common keys.

Sprite Namemodel

Sets the sprite of the effect.

Default sprites/fexplo1.spr
Shake Amplitudeamplitude

Sets how hard the view shakes, from 0 up to 16.

If you leave this key empty or set 0, it is 6.

Default 6
Shake Durationduration

Sets how many seconds the view shakes.

If you leave this key empty or set 0, it is 1.

Default 1
Shake Frequencyfrequency

Sets how fast the view shakes, from 0.1 for a single jolt up to 255 for a fast rumble.

If you leave this key empty or set 0, it is 160.

Default 160
Shake and Beam Radiusradius

Sets how far, in units, the lightning reaches and the shake is felt.

Default 192
Sprite Scalescale

Sets the size of the sprite, where 1 is its own size, and it also sets the size of the flash of light.

Default 1
Sprite Framerateframerate

Sets how many frames per second the sprite plays.

If you leave this key empty or set 0, it is 12.

Default 12
Warp positionwarp_target

Sets where the effect plays. It takes a locus position, so you can use a point such as 0 0 64, the name of an entity, or !activator for the entity that started the chain of triggers.

If you leave this key empty, the effect plays at the env_warpball itself.

Damage delaydamage_delay

With Kill center, sets how many seconds pass between the effect and the damage.

Default 0
Beam colorbeamcolor

Sets the color of the lightning, as red, green and blue from 0 up to 255.

If you leave this key empty or set 0 0 0, it is green, 20 243 20.

Default 20 243 20
Max beam countbeamcount

Sets the most bolts of lightning, up to 64, and each time, the effect draws between half of them and all of them.

Default 20
Custom sound 1noise1

Sets the first sound.

If you leave this key empty, it is debris/beamstart2.wav.

Custom sound 2noise2

Sets the second sound.

If you leave this key empty, it is debris/beamstart7.wav, but only when Custom sound 1 is empty too.

Sound volumevolume

Sets how loud the sounds are, from above 0 up to 1 for full volume.

If you leave this key empty or set 0, it is 1.

Default 1
AI Sound typeaisound

Picks a sound that only monsters within the radius hear.

  • No sound (0) - Monsters hear nothing
  • Combat (1) - Draws monsters in
  • Danger (32) - Makes monsters run
Default No sound (0)
AI Sound durationaisound_duration

Sets how many seconds monsters can hear the AI sound.

If you leave this key empty or set 0, it is 0.3.

Default 0.3
Sprite 2 Namemodel2

Sets a second sprite played with the first, such as sprites/xflare1.spr.

Sprite 2 colorrendercolor2

Sets the color of the second sprite.

If you leave this key empty, it has the color of the first sprite.

Sprite 2 brightnessrenderamt2

Sets the brightness of the second sprite, from 0 up to 255.

If you leave this key empty or set 0, it has the brightness of the first sprite.

Sprite 2 scalescale2

Sets the size of the second sprite, where 1 is its own size.

If you leave this key empty or set 0, it has the size of the first sprite.

Sprite 2 framerateframerate2

Sets how many frames per second the second sprite plays.

If you leave this key empty or set 0, it plays at the speed of the first sprite.

Flags​

1Remove on fire

The entity is removed after it plays once

2Kill center

The effect deals 300 shock damage to everything within 48 units of its center

4No screen shake

The effect doesn't shake the view

8Dynamic light

The effect makes a short flash of light in the color of the sprite

16No sounds

The effect plays no sound

Notes​

  • The lightning goes from the center to the walls within the radius, and in open space, a few bolts go out to half the radius instead
  • With the render mode Normal, the sprite is drawn as Glow, with the render FX Normal it is drawn as No dissipation, and the FX color 0 0 0 gives the green 77 210 130
  • The damage of Kill center comes from the env_warpball itself, so nobody gets the kill
  • Players who join later don't see an effect that has already played
  • Once the map runs, trigger_changevalue and trigger_copyvalue can't change Sprite 2 Name, so the effect keeps its sprite, and with developer 1 set in the console, the console says why

See also​

  • monstermaker - its Warpball key plays an env_warpball where each monster appears
  • env_shockwave - a ring that grows outward
  • env_beam - a beam between two entities or points

Changes since 1.38​

  • env_warpball is new in SBO 2.0.0