-
Notifications
You must be signed in to change notification settings - Fork 2
/
initServer.sqf
50 lines (41 loc) · 1.58 KB
/
initServer.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
45
46
47
48
49
50
/*
initServer.sqf lines of code
By @kasteelharry
*/
///////////////////////////////////
/// ///
/// EDITABLE VARIABLE ///
/// ///
///////////////////////////////////
// EMP
_EMPvariable = EMP; //Sets the variable names of the EMP's here
_jammerNames = _EMPvariable; //Makes the EMP the same source as the TFAR jammer
_EMP_Range = 1000; //Range of the EMP blast and jamming afterwards
_jammerRadius = _EMP_Range; //Sets jammer radius the same as EMP radius
_jammerStrength = 100; //Strength of the jammer, max is 100
// REMOVE USERPLACED MARKERS
// Will be run after emp blast
_AllowedToDrawGroup = ["GroupName1", "GroupName2", "etc..."];
///////////////////////////////////
/// ///
/// DO NOT EDIT ///
/// ///
///////////////////////////////////
// EMP + Jammer
missionNamespace setVariable ["EMP", _EMPvariable, true];
missionNamespace setVariable ["EMP_Range", _EMP_Range, true];
missionNamespace setVariable ["Jammers", _jammerNames, true];
missionNamespace setVariable ["JammerRadius", _jammerRadius, true];
missionNamespace setVariable ["JammerStrength", _JammerStrength, true];
// Remove Markers
missionNamespace setVariable ["WhiteListedIDs", [], true];
missionNamespace setVariable ["DisableMapRestrictor", true, true];
missionNameSpace setVariable ["WhitelistedGroup",_AllowedToDrawGroup, true];
[] spawn kast_fnc_KeepMapClean;
/*
Will work from version 1.96 and onwards:
*/
onPlayerConnected
{
missionNamespace setVariable [_name, _idstr, true];
};