mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 11:42:38 +03:00
Fixed Object A2 scenery and converted to compact arrays. Fixed floating objects, objects sticking through walls, and disabled simulation to stop bouncing of some objects. Objects that originally used setPosASL converted to setPosATL. Added some map fixes for Object A2 ladder shaft fall hazards and barracks entrances that required vaulting to enter. Added rail gun spawning with configurable chance. The POI call in init.sqf has the individual POI files listed in an array so server owners can comment them out or remove them if they don't want them.
16 lines
699 B
Plaintext
16 lines
699 B
Plaintext
/*
|
|
Add POI objects on server machine only.
|
|
Do not use execVM. This must be unscheduled to finish before server_monitor.sqf runs (vehicles or players can spawn on top)
|
|
Do not use createVehicleLocal for these. They contain trees and buildings (need chopped/destroyed status synchronized for all clients)
|
|
*/
|
|
|
|
{
|
|
if (typeName _x == "ARRAY") then {
|
|
(_x select 1) call compile preprocessFileLineNumbers ("\z\addons\dayz_code\system\mission\namalsk\poi\" + (_x select 0) + ".sqf");
|
|
} else {
|
|
call compile preprocessFileLineNumbers ("\z\addons\dayz_code\system\mission\namalsk\poi\" + _x + ".sqf");
|
|
};
|
|
|
|
//This is needed to process all setVehicleInit commands
|
|
processInitCommands;
|
|
} forEach _this; |