-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinitPlayerLocal.sqf
More file actions
51 lines (42 loc) · 1.62 KB
/
initPlayerLocal.sqf
File metadata and controls
51 lines (42 loc) · 1.62 KB
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
51
// Spawn player at the correct position
[player] call ASG_fnc_playerSpawn;
// Dynamic Groups, registers the player group
#include "scripts\includes\inc_playerSpawnGroups.hpp"
["InitializePlayer", [player, true]] call ASG_fnc_dynamicGroups;
sleep 1;
// Init cfgCommunicationsMenu Items
[] execVM "scripts\commMenu_init.sqf";
sleep 1;
// Box Access by MOSES
[player] execVM "scripts\sand_lockBoxes.sqf";
// Disable Squad Leader \ High Command bar
{_x disableTIEquipment true;} forEach (allMissionObjects "All");
{_x disableNVGEquipment true;} forEach (allMissionObjects "All");
enableEngineArtillery false;
enableSaving [false,false];
enableRadio false;
enableSentences false;
showSubtitles false;
showHUD [true,true,true,true,true,true,false,true];
// ASG Handbook by DEL-J
[] execVM "scripts\handbook.sqf";
// MOSES' MortarHandler
player addEventHandler ["HandleDamage",{
if (vehicle player isKindOf "StaticMortar" && {_this select 0 == player && _this select 1 == "" && isNull(_this select 3) && _this select 4 == "" && _this select 5 == -1}) then {
if (vehicle player getVariable ["#MOSES#HandleDamage",-1] isEqualTo -1) then {
vehicle player setVariable ["#MOSES#HandleDamage",vehicle player addEventHandler ["HandleDamage",{
if (_this select 0 == vehicle player && {_this select 1 == "" && isNull(_this select 3) && _this select 4 == "" && _this select 5 == -1}) then {
damage vehicle player
};
}]];
};
damage player
};
}];
// Watch for ASG Uniform Grab
player addEventHandler ["Take", {
_uniformType = _this select 2;
if (_uniformType == "U_BG_Guerrilla_6_1") then {
[player, true] call ASG_fnc_setUniform;
};
}];