What an event is
An event is a thing the economy places in the world from a list of possible positions. The main families are:
- Vehicles: names starting Vehicle, such as VehicleCivilianSedan
- Crashes: StaticHeliCrash, StaticPoliceCar and similar wrecks with loot
- Animals: deer, wolves, bears and others
- Infected: hordes around towns, military areas and events
The numbers
Most events use the same values:
- Nominal: how many of the event the economy aims for
- Min and max: the floor and ceiling the count can move between
- Lifetime: how long the event lasts once spawned
- Restock: how long before it can spawn again
- Active: 1 switches the event on, 0 switches it off
Children and positions
Children are the actual objects an event spawns, such as different colours of a car or the loot at a crash. Where events can appear is set in a separate file, cfgeventspawns.xml. Raising nominal above the number of positions available does nothing extra.
Common changes
The changes people make most often each have their own guide: more cars, more heli crashes and infected and animal numbers.
Flags, position and limit
Below the main numbers, each event has a few switches that change how it behaves:
- deletable: whether the economy may clean the event up when it wants to place it elsewhere
- init_random: whether the event starts at random positions when the server first starts
- remove_damaged: whether ruined objects from the event are cleared, so a wrecked car makes way for a new one
- position: fixed uses the positions in
cfgeventspawns.xml, player places the event around players - limit: whether min and max count the event as a whole (parent), each child separately (child), or both (mixed)
Radius values
saferadius, distanceradius and cleanupradius decide how close to players an event can appear, how far apart copies must be, and how near a player has to be for the economy to leave it alone. Raising saferadius stops cars or animals appearing right in front of someone. Most servers never touch these, and that's fine.
Mistakes that stop events working
When an event doesn't appear, check these before anything else:
- Min set higher than max, or nominal higher than max
- active left at 0 after testing
- A child type spelt differently from its classname, so the economy can't find the object
- An event added to
events.xmlwith no positions incfgeventspawns.xml, so it has nowhere to go - A missing closing tag, which can stop the whole file loading. The validator finds it