generator

XashXT

generator

Generator of a specified number of target activation impulses. The number of activations can be changed dynamically in-game.

Spawnflag

SF_GENERATOR_START_ON 1 (initially turned on)

Options

maxcount Maximum number of impulses (with randomisation accounted for) that the generator can produce before it turns off (0 means indefinite).
mode Operation mode:
  • 0—regular
  • 1—random
  • 2—random with generation slowdown, as in a “one-armed bandit”
delay Delay between activations.

Usage Details

  • For random operation modes, maxcount is mandatory. If it is omitted, the entity will set it automatically in the range from 100 to 200.
  • For operation mode 2, the delay option is ignored.
  • Activation with the < prefix and a value sets a new maxcount.
  • Activation with the > prefix resets the current impulse counter to zero.
  • Activation with both the < and > prefixes does not change the generator state.
  • Activation with the < prefix and a value is used by the func_clock entity to convert the number of hours into the number of target activations.