Skip to content

Commit

Permalink
update fix first sign
Browse files Browse the repository at this point in the history
  • Loading branch information
tbox1911 committed Oct 24, 2024
1 parent 7049d76 commit d75e1ca
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 13 deletions.
4 changes: 2 additions & 2 deletions core.liberation/scripts/client/init_client.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -224,12 +224,12 @@ addMissionEventHandler ["Draw3D",{
private _near_sign = nearestObjects [player, [FOB_sign], 5];
if (count (_near_sign) > 0 && (player distance2D lhd > GRLIB_fob_range)) then {
private _sign = _near_sign select 0;
private _gid = _sign getVariable ["GRLIB_vehicle_owner", "public"];
private _gid = _sign getVariable ["GRLIB_vehicle_owner", ""];
private _type = "FOB";
private _near_outpost = ([_sign, "OUTPOST", 30] call F_check_near);
if (_near_outpost) then { _type = "Outpost" };
private _name = "- LRX";
if (_gid != "public") then {
if (_gid != "") then {
_name = GRLIB_player_scores select { _x select 0 == _gid } select 0 select 5;
};
drawIcon3D ["", [1,1,1,1], (ASLToAGL getPosASL _sign) vectorAdd [0, 0, 2.5], 0, 0, 0, format ["- %1 %2 -", _type, _name], 2, 0.07, "RobotoCondensed", "center"];
Expand Down
8 changes: 7 additions & 1 deletion core.liberation/scripts/client/spawn/redeploy_manager.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -189,10 +189,16 @@ if (deploy == 1) then {
cinematic_camera_started = false;
};

sleep 2;
if (player distance2D (markerPos GRLIB_respawn_marker) < GRLIB_capture_size) then {
_spawn_str = _basenamestr;
player setPosATL ((getPosATL lhd) vectorAdd [floor(random 5), floor(random 5), 1]);
};

if (alive player && deploy == 1) then {
if (isNil "_spawn_str") then {_spawn_str = "Somewhere."};
[_spawn_str, _mobile] spawn spawn_camera;
};

sleep 10;
sleep 8;
player setVariable ["GRLIB_action_inuse", false, true];
4 changes: 1 addition & 3 deletions core.liberation/scripts/server/base/fob_init.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,7 @@ _sign setPosASL _sign_pos;
_sign enableSimulationGlobal false;
_sign setObjectTextureGlobal [0, getMissionPath "res\splash_libe2.paa"];
_sign setVariable ["GRLIB_fob_type", _fob_class, true];
if (count GRLIB_all_fobs == 0) then {
_sign setVariable ["GRLIB_vehicle_owner", "public", true];
} else {
if (count GRLIB_all_fobs > 0) then {
_sign setVariable ["GRLIB_vehicle_owner", _owner, true];
};

Expand Down
11 changes: 4 additions & 7 deletions core.liberation/scripts/server/game/save_game_mp.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -91,16 +91,13 @@ if ( GRLIB_endgame >= 1 || GRLIB_global_stop == 1 ) then {
if (side group _x != GRLIB_side_enemy) then {
_owner = _x getVariable ["GRLIB_vehicle_owner", ""];
_hascrew = _x getVariable ["GRLIB_vehicle_manned", false];
if (_owner == "") then {
buildings_to_save pushback [ _nextclass, _savedpos, _nextdir ];
};
if (_nextclass == FOB_sign) then {
if (_nextclass == FOB_sign) exitWith {
_hascrew = _x getVariable ["GRLIB_fob_type", FOB_typename];
};
if (_owner == "public") then {
buildings_to_save pushback [ _nextclass, _savedpos, _nextdir, _hascrew, _owner ];
};

if (_owner == "") exitWith {
buildings_to_save pushback [ _nextclass, _savedpos, _nextdir ];
};
if (_owner in _keep_score_id) then {
if (_nextclass in GRLIB_vehicles_light) then {
private _default = true;
Expand Down
2 changes: 2 additions & 0 deletions core.liberation/whitelist.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ GRLIB_whitelisted_moderators = [

// Forbiden player names.
GRLIB_blacklisted_names = [
"server",
"public",
"admin",
"administrator",
"administrateur",
Expand Down

0 comments on commit d75e1ca

Please sign in to comment.