Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into bugfix/killers-respawn
Browse files Browse the repository at this point in the history
  • Loading branch information
3Mydlo3 committed Feb 15, 2024
2 parents 2f7f8ec + 5bfe82a commit 17fd9b8
Show file tree
Hide file tree
Showing 47 changed files with 15,354 additions and 139 deletions.
2 changes: 0 additions & 2 deletions addons/civilian/XEH_PREP.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ PREP(civilianKilled);
PREP(civilianKilledMarker);
PREP(civilianKilledMsg);
PREP(createCivilian);
PREP(createVehicle);
PREP(getCityByLocation);
PREP(getCityName);
PREP(getCityRandomPos);
Expand All @@ -12,6 +11,5 @@ PREP(getNearestVehicle);
PREP(initCity);
PREP(initCivilians);
PREP(initCiviliansConfig);
PREP(initVehicles);
PREP(initCivilian);
PREP(unassignCivilianFromCity);
5 changes: 0 additions & 5 deletions addons/civilian/XEH_preInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,6 @@ if (isServer) then {
_x setVariable [QGVAR(CiviliansCount), _civiliansCount];
_x setVariable [QGVAR(initialCiviliansCount), _civiliansCount];
} forEach GVAR(cities);


// We need some improvements in determining civilian vehicles limit
GVAR(emptyVehiclesLimit) = GVAR(emptyVehiclesLimitMultiplier) * (5 * count (GVAR(cities)));
call FUNC(initVehicles);
};

ADDON = true;
3 changes: 2 additions & 1 deletion addons/civilian/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ class CfgPatches {
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {
"afsk_common"
"afsk_common",
"afsk_vehicles"
};
author = "ArmaForces";
VERSION_CONFIG;
Expand Down
4 changes: 2 additions & 2 deletions addons/civilian/functions/fnc_initCity.sqf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "script_component.hpp"
/*
* Author: 3Mydlo3
* Function initializes given city with module, civilians and vehicles.
* Function initializes given city with module and civilians.
*
* Arguments:
* 0: City to initialize <CONFIG/LOCATION>
Expand Down Expand Up @@ -43,5 +43,5 @@ _cityNamespace setVariable [QGVAR(CiviliansList), []];
_cityNamespace setVariable [QGVAR(CiviliansCount), 0];
_cityNamespace setVariable [QGVAR(initialCiviliansCount), 0];

// Init vehicles
// Return
_cityNamespace
11 changes: 0 additions & 11 deletions addons/civilian/initSettings.inc.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,3 @@
[0, 400, 200, 0],
true
] call CBA_fnc_addSetting;

[
QGVAR(emptyVehiclesLimitMultiplier),
"LIST",
[LSTRING(EmptyVehiclesLimit), LSTRING(EmptyVehiclesLimit_Description)],
[LSTRING(DisplayName), localize "str_dn_vehicles"],
[[1, 2, 3], [LSTRING(Low), LSTRING(Medium), LSTRING(High)], 1],
true,
{},
true
] call CBA_fnc_addSetting;
8 changes: 0 additions & 8 deletions addons/civilian/stringtable.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,6 @@
<English>SerialKillers - Civilian</English>
<Polish>SerialKillers - Cywile</Polish>
</Key>
<Key ID="STR_AFSK_Civilian_EmptyVehiclesLimit">
<English>Civilian vehicles limit</English>
<Polish>Limit pojazdów cywilnych</Polish>
</Key>
<Key ID="STR_AFSK_Civilian_EmptyVehiclesLimit_Description">
<English>Controls how much civilian vehicles will be created on the whole map.</English>
<Polish>Ustala jak dużo pojazdów cywilnych będzie utworzonych na całej mapie.</Polish>
</Key>
<Key ID="STR_AFSK_Civilian_Civilian_Killed_In_City">
<English>Civilian was killed at %1 in %2!</English>
<Polish>Cywil został zabity o godzinie %1 w %2!</Polish>
Expand Down
1 change: 0 additions & 1 deletion addons/common/XEH_PREP.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,4 @@ PREP(isHouseNearby);
PREP(isRoadNearby);
PREP(playMusicServer);
PREP(removeItemsFromArsenal);
PREP(setVehicleRandomTexture);
PREP(showMessage);
4 changes: 1 addition & 3 deletions addons/common/XEH_postInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ if (isServer) then {
}] call CBA_fnc_addEventHandler;
};

[QGVAR(showMessage), {
_this call FUNC(showMessage);
}] call CBA_fnc_addEventHandler;
[QGVAR(showMessage), FUNC(showMessage)] call CBA_fnc_addEventHandler;

[QGVAR(teleport), {
params ["_caller", "_destination"];
Expand Down
Loading

0 comments on commit 17fd9b8

Please sign in to comment.