Skip to main content

gibshooter

gibshooter icon
Point entity

A gibshooter shoots body gibs, the pieces of flesh and bone of a monster that blew apart, each time you trigger it.

Attributes​

The entity also has these common keys:

KeyDescriptionDefault
Nametargetname

Triggering the entity shoots its gibs. See Common keys.

Number of Gibsm_iGibs

Sets how many gibs it shoots each time you trigger it, one every Delay between shots.

If you leave this key empty, it is 0 and the entity shoots one gib.

Default 3
Delay between shotsdelay

Sets how many seconds pass between two gibs, and 0 means 0.1 seconds.

Default 0
Gib Velocitym_flVelocity

Sets the speed of the gibs, in units per second, as a locus number. It can be a number such as 200, a range such as 100..300 for a random speed, or the name of a calc_ entity. With Direction and speed set and this key empty, the length of that vector is the speed.

If you leave this key empty, it is 0 and the gibs just drop, unless Direction and speed is set.

Default 200
PositionFeaturefulSpirit of Half-Lifem_iszPosition

Sets where the gibs appear, as a locus position. It can be 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 gibs appear at the entity itself.

Direction and speedFeaturefulSpirit of Half-Lifem_iszVelocity

Sets the direction the gibs fly in, as a locus vector. Its length times Gib Velocity is their speed.

If you leave this key empty, the gibs fly in the direction of Pitch Yaw Roll.

Course Variancem_flVariance

Sets how far each gib strays from the direction, from 0 for straight up to about 1 for a wide spread.

If you leave this key empty, it is 0 and all gibs fly the same way.

Default 0.15
Gib Lifem_flGibLife

Sets how many seconds the gibs last before they fade out.

If you leave this key empty or set 0, they last 25 seconds.

Default 4
Fire on spawnm_iszSpawnTarget

The entity fires this for each gib or shot it makes, and passes on that gib or shot as the activator.

Flags​

1Repeatable

The entity stays after it has shot all its gibs, so you can trigger it again. Without this flag, it is removed after the last gib

8Start instantly

The first gib flies at the moment you trigger the entity, where normally it flies a moment later

Notes​

  • Gib Velocity, Position and Direction and speed are worked out again for each gib, for the entity that started the chain of triggers
  • If one of those keys can't be worked out, that gib is skipped, but it still counts toward Number of Gibs

See also​

Changes since 1.38​

  • You can use the new keys Position, Direction and speed and Fire on spawn, and the new flag Start instantly
  • Gib Velocity also takes a range or the name of a calc_ entity