gibshooter

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:
- Position: Pitch Yaw Roll
targetnameTriggering the entity shoots its gibs. See Common keys.
m_iGibsSets 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.
3delaySets how many seconds pass between two gibs, and 0 means 0.1 seconds.
0m_flVelocitySets 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.
200Sets 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.
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.
m_flVarianceSets 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.
0.15m_flGibLifeSets how many seconds the gibs last before they fade out.
If you leave this key empty or set 0, they last 25 seconds.
4m_iszSpawnTargetThe entity fires this for each gib or shot it makes, and passes on that gib or shot as the activator.
Flags
1RepeatableThe 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 instantlyThe 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
env_shooter- shoots a model or a sprite of your choice- gibshooter on TWHL - the Half-Life entity
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

