Skip to content

Commit

Permalink
update init serv
Browse files Browse the repository at this point in the history
  • Loading branch information
tbox1911 committed May 13, 2024
1 parent bcecb1c commit 8353f20
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions core.liberation/scripts/server/init_server.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -42,21 +42,14 @@ GRLIB_side_friendly setFriend [civilian, 1];
civilian setFriend [GRLIB_side_enemy, 1];
GRLIB_side_enemy setFriend [civilian, 1];

if (GRLIB_side_enemy == INDEPENDENT) then {
resistance setFriend [GRLIB_side_enemy, 1];
GRLIB_side_enemy setFriend [resistance, 1];
resistance setFriend [GRLIB_side_friendly, 0];
GRLIB_side_friendly setFriend [resistance, 0];
} else {
resistance setFriend [GRLIB_side_friendly, 1];
GRLIB_side_friendly setFriend [resistance, 1];
resistance setFriend [GRLIB_side_enemy, 0];
GRLIB_side_enemy setFriend [resistance, 0];
};
resistance setFriend [GRLIB_side_friendly, 1];
GRLIB_side_friendly setFriend [resistance, 1];
resistance setFriend [GRLIB_side_enemy, 0];
GRLIB_side_enemy setFriend [resistance, 0];

// Init owner on map vehicles
{
if (_x isKindOf "AllVehicles") then {
if (_x iskindof "LandVehicle" || _x iskindof "Air" || _x iskindof "Ship") then {
_x removeAllMPEventHandlers "MPKilled";
_x addMPEventHandler ["MPKilled", {_this spawn kill_manager}];
if (isNil {_x getVariable "GRLIB_vehicle_owner"} ) then {
Expand Down

0 comments on commit 8353f20

Please sign in to comment.