cfgeventspawns.xml
Defines item spawns and loot for specific events like helicopter crashes and toxic zones. Works in conjunction with events.xml.
Overview
The cfgeventspawns.xml file defines the possible spawn positions for events declared in events.xml. Each event references a group of positions where it can occur, such as helicopter crash sites, animal herds, or contaminated zone spawns.
This file is located in the mission folder. The CE selects positions from the defined groups when spawning events. Multiple positions per event allow for randomized placement across the map.
XML Structure
The file contains event groups, each with a name matching an event in events.xml and a list of possible spawn positions.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<eventposdef>
<event name="StaticHeliCrash">
<pos x="7430.0" z="2840.0" a="180" />
<pos x="4520.0" z="6310.0" a="90" />
<pos x="11250.0" z="7620.0" a="270" />
</event>
<event name="InfectedHorde">
<pos x="3700.0" z="2500.0" a="0" />
<pos x="10200.0" z="2100.0" a="0" />
</event>
</eventposdef>
Event Types
Common event types that use spawn positions from this file:
| Event Name | Description |
|---|---|
| StaticHeliCrash | Helicopter crash sites with military loot. High-value event. |
| InfectedHorde | Groups of infected that spawn at defined locations. |
| AnimalHerd_Deer | Deer herds spawning in wilderness areas. |
| AnimalHerd_Boar | Boar groups in forested regions. |
| AnimalHerd_Cow | Cow herds near farms and fields. |
| ContaminatedArea_Dynamic | Dynamic toxic zone spawn positions. |
| TraderZone | Modded trader spawn locations (mod-dependent). |
Position Definitions
Each <pos> element defines a potential spawn location for the event.
| Attribute | Type | Description |
|---|---|---|
| x | Float | X-coordinate on the map (East-West position). |
| z | Float | Z-coordinate on the map (North-South position). |
| a | Integer | Rotation angle in degrees (0–360). Controls the orientation of the spawned event object. |
Example: Helicopter Crash Sites
Helicopter crashes are one of the most sought-after events. Below is a comprehensive setup with multiple crash positions spread across the map. The CE will randomly select from these positions when spawning a crash event.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<eventposdef>
<!-- Helicopter crash sites - military loot -->
<event name="StaticHeliCrash">
<!-- Near Stary Sobor -->
<pos x="6100.0" z="7750.0" a="45" />
<!-- West of NWAF -->
<pos x="3200.0" z="10500.0" a="180" />
<!-- South of Tisy -->
<pos x="1700.0" z="13200.0" a="270" />
<!-- Near Pavlovo military -->
<pos x="1900.0" z="3600.0" a="90" />
<!-- East of Berezino -->
<pos x="13100.0" z="9800.0" a="135" />
<!-- Near Zeleno military -->
<pos x="2700.0" z="5200.0" a="0" />
<!-- North of Gorka -->
<pos x="9500.0" z="9200.0" a="315" />
</event>
<!-- Dynamic contaminated zones -->
<event name="ContaminatedArea_Dynamic">
<pos x="6800.0" z="2600.0" a="0" />
<pos x="10100.0" z="2200.0" a="0" />
<pos x="4500.0" z="6400.0" a="0" />
<pos x="8300.0" z="11500.0" a="0" />
</event>
<!-- Animal herds -->
<event name="AnimalHerd_Deer">
<pos x="5000.0" z="8000.0" a="0" />
<pos x="7500.0" z="11000.0" a="0" />
<pos x="3000.0" z="7000.0" a="0" />
</event>
</eventposdef>
The loot that spawns at helicopter crashes is defined in types.xml using the Heli_Crash usage tag. The event definition in events.xml controls how many active crashes exist and their respawn timing.