-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.sqf
44 lines (35 loc) · 1.41 KB
/
init.sqf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#include "script_component.hpp"
disableRemoteSensors true;
tf_no_auto_long_range_radio = true;
tf_give_personal_radio_to_regular_soldier = false;
[] call Mission_fnc_limitOffroadSpeed;
[] execVM "setup_vehicle_damagen_petzen.sqf";
[] execVM "loadouts.sqf";
[] call GRAD_replay_fnc_init;
["grad_civs_civKilled", {
params ["_deathPos", "_killer", "_civ"];
if (isServer) then {
INFO_1("neutral civilian %1 has been killed by %2", _civ, _killer);
[_civ, _killer] call Mission_fnc_killedHandler;
};
}] call CBA_fnc_addEventHandler;
["grad_civs_vehicleTheft", {
params ["_vehicle", "_thief"];
if (isNull _thief) exitWith {};
if (isServer) then {
INFO_2("neutral civilian vehicle %1 has been stolen by %2", _vehicle, _thief);
switch (_thief call Mission_fnc_getAllegiance) do {
case independent: { [opfor, _vehicle, 1] call Mission_fnc_giveUpgradeToSide; };
case opfor: { [independent, _vehicle, 1] call Mission_fnc_giveUpgradeToSide; };
};
_vehicle call GRAD_vehicleDamageReport_fnc_registerVehicle;
};
}] call CBA_fnc_addEventHandler;
mission_winConditionFulfilledHandle = [
"mission_winConditionFulfilled",
{
["mission_winConditionFulfilled", mission_winConditionFulfilledHandle] call CBA_fnc_removeEventHandler;
_this call Mission_fnc_handleWinConditionFulfilled;
}
] call CBA_fnc_addEventHandler;
{ _x call Mission_fnc_setupMurderWatch; } forEach ([allUnits, {local _this}] call CBA_fnc_select);