Skip to content

Commit

Permalink
Rep Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Tetlys committed Apr 10, 2024
1 parent e2164f2 commit f11ce26
Show file tree
Hide file tree
Showing 20 changed files with 103 additions and 98 deletions.
55 changes: 27 additions & 28 deletions HeartsAndMindsPlus.Altis/core/def/mission.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -308,15 +308,12 @@ if (isServer) then {
// If there's a hit in btc_buildings_multiplier, btc_buildings_categories_multipliers will NOT be run
btc_buildings_multipliers = [
// Specific buildings that need to have a custom modifier.
//["Land_BellTower", 0.2 ], ["Land_WIP", 1.5], ["Land_u_Addon_01", 0.2],
//["Land_Airport_Tower", 10.0], ["Land_Mil_ControlTower", 10.0],
//["Land_TentHangar", 7.0], ["Land_i_Shed_Ind", 1.5], ["Land_u_Shed_Ind", 1.5],
//["Land_TTowerBig", 6.0], ["Land_TTowerSmall", 4.5], ["Land_cmp_Tower", 4.0]
["Wire", 0]
];

// The multipliers are applied on top of each other, so "Chapel" and "Small" will both multiply the malus value
btc_buildings_categories_multipliers = [
["Shed", 1], ["Slum", 1], ["Small", 1], ["Big", 1], ["Villa", 1], ["Main", 1], ["Tower", 1],
["Shed", 1], ["Slum", 1], ["Small", 0.5], ["Big", 1], ["Villa", 1], ["Main", 1], ["Tower", 1],
["HouseBlock", 1], ["Panelak", 1], ["Tenement", 1],
["Barn", 1], ["School", 1], ["Office", 1], ["Shop", 1], ["Store", 1], ["Hospital", 1],
["Castle", 1], ["Chapel", 1], ["Minaret", 1], ["Mosque", 1], ["Church", 1], ["Kostel", 1],
Expand All @@ -329,6 +326,8 @@ if (isServer) then {
["Pump", 1]
];
btc_buildings_changed = [];
tet_buildings_changed = [];
tet_limiter = false;

//TAGS
btc_type_tags = ["Land_Graffiti_01_F", "Land_Graffiti_02_F", "Land_Graffiti_03_F", "Land_Graffiti_04_F", "Land_Graffiti_05_F"];
Expand Down Expand Up @@ -784,29 +783,29 @@ btc_spect_range = 1000;
btc_spect_updateOn = -1;

//Rep
btc_rep_bonus_cache = 100;
btc_rep_bonus_civ_hh = 3;
btc_rep_bonus_disarm = 15;
btc_rep_bonus_hideout = 200;
btc_rep_bonus_mil_killed = 0.25;
btc_rep_bonus_IEDCleanUp = 10;
btc_rep_bonus_removeTag = 1;
btc_rep_bonus_removeTagLetter = 0.5;
btc_rep_bonus_foodGive = 1;
btc_rep_bonus_vehicle = 10;

btc_rep_malus_veh_killed = - 10;
btc_rep_malus_civ_hd = - 5;
btc_rep_malus_animal_hd = - 1;
btc_rep_malus_civ_killed = - 100;
btc_rep_malus_animal_killed = - 5;
btc_rep_malus_civ_suppressed = - 0;
btc_rep_malus_player_respawn = - 5;
btc_rep_malus_building_damaged = - 0;
btc_rep_malus_building_destroyed = - 50;
btc_rep_malus_foodRemove = - btc_rep_bonus_foodGive;
btc_rep_malus_breakDoor = - 1;
btc_rep_malus_wheelChange = - 0;
btc_rep_bonus_cache = 50; // WAI
btc_rep_bonus_civ_hh = 0; // DISABLED
btc_rep_bonus_disarm = 15; // WAI
btc_rep_bonus_hideout = 100; // WAI
btc_rep_bonus_mil_killed = 1; // WAI
btc_rep_bonus_IEDCleanUp = 5; // WAI
btc_rep_bonus_removeTag = 5; // WAI
btc_rep_bonus_removeTagLetter = 1; // WAI
btc_rep_bonus_foodGive = 2; // WAI
btc_rep_bonus_vehicle = 10; // WAI

btc_rep_malus_veh_killed = 0; // DISABLE
btc_rep_malus_civ_hd = 0 ; // DISABLE
btc_rep_malus_animal_hd = 0 ; // DISABLE
btc_rep_malus_civ_killed = - 50 ; // HIGH
btc_rep_malus_animal_killed = - 10; // MID
btc_rep_malus_civ_suppressed = 0 ; // DISABLED
btc_rep_malus_player_respawn = - 2; // LOW
btc_rep_malus_building_damaged = - 3; // LOW
btc_rep_malus_building_destroyed = - 20; // HIGH
btc_rep_malus_foodRemove = - btc_rep_bonus_foodGive; // WAI
btc_rep_malus_breakDoor = - 0.5; // WAI
btc_rep_malus_wheelChange = 0; // DISABLED

btc_rep_level_veryLow = 0;
btc_rep_level_low = 200;
Expand Down
2 changes: 1 addition & 1 deletion HeartsAndMindsPlus.Altis/core/def/param.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,6 @@ class Params {
title = __EVAL(format [" %1", localize "STR_BTC_HAM_PARAM_OTHER_DEBUG"]);
values[]={0,1,2};
texts[]={$STR_DISABLED,$STR_ENABLED, $STR_BTC_HAM_PARAM_OTHER_DEBUG_LOGONLY}; // texts[]={"Off","On","Log only"};
default = 0;
default = 1;
};
};
4 changes: 2 additions & 2 deletions HeartsAndMindsPlus.Altis/core/fnc/city/setClear.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ if (btc_final_phase) then {

//ADDNOTIF OBJ CLEAR
[parseText "<t color='#FACE00' font='PuristaBold' align = 'right' shadow = '1.5' size='2'>+ Objective Cleared! </t><br /><t align = 'right' shadow = '1.5' size='1.5'>+$100</t>", [0, 0.5, 1, 1], nil, 5, 1.7, 0] remoteExec ["BIS_fnc_textTiles", 0];
[west, 100, false] call acex_fortify_fnc_updateBudget;
btc_global_economy = btc_global_economy + 100;
[west, 500, false] call acex_fortify_fnc_updateBudget;
btc_global_economy = btc_global_economy + 500;

if (btc_debug) then {
private _id = _city getVariable "id";
Expand Down
11 changes: 9 additions & 2 deletions HeartsAndMindsPlus.Altis/core/fnc/rep/buildingchanged.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,26 @@ params [
["_isRuin", false, [false]]
];

if (tet_limiter == true) exitwith {};
tet_limiter = true;
private _classname = toUpper typeOf _from;
private _malus = [btc_rep_malus_building_damaged, btc_rep_malus_building_destroyed] select _isRuin;
private _skipCategories = false;

// Accept only static, terrain buildings, discard any dynamically created ones but keep already damaged buildings.
if (
(getObjectType _from != 1) &&
!(_from in btc_buildings_changed) ||
(getObjectType _from != 1) && // If NOT part of the map
!(_from in btc_buildings_changed) || // If building is NOT in btc_buildings_changed then exit
{_classname isEqualTo ""} ||
{_classname isKindOf "Wall"} ||
{"GATE" in _classname} ||
{"Mil" in _classname}
) exitWith {};

if (_from in tet_buildings_changed) exitwith {};

btc_buildings_changed pushBack _to;
tet_buildings_changed pushback _from;

{
_x params ["_buildings_classname", "_malus_multipliers"];
Expand All @@ -68,3 +73,5 @@ if (btc_debug) then {
};

_malus call btc_rep_fnc_change;

[{tet_limiter = false;}, [1], delay] call CBA_fnc_waitAndExecute;
11 changes: 5 additions & 6 deletions HeartsAndMindsPlus.Altis/core/fnc/rep/hd.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,12 @@ if !(isServer) exitWith {
_dam
};

// CONFIG - Disable rep change for injury
//[
// [btc_rep_malus_civ_hd, btc_rep_malus_animal_hd] select _isAgent,
// _instigator
//] call btc_rep_fnc_change;
[
[btc_rep_malus_civ_hd, btc_rep_malus_animal_hd] select _isAgent,
_instigator
] call btc_rep_fnc_change;

//if (btc_global_reputation < btc_rep_level_normal + 100) then {[getPos _unit] call btc_rep_fnc_eh_effects;};
if (btc_global_reputation < btc_rep_level_normal + 100) then {[getPos _unit] call btc_rep_fnc_eh_effects;};

if (btc_debug_log) then {
[format ["REP HD = GREP %1 THIS = %2", btc_global_reputation, _this], __FILE__, [false]] call btc_debug_fnc_message;
Expand Down
8 changes: 4 additions & 4 deletions HeartsAndMindsPlus.Altis/core/fnc/side/EMP.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,10 @@ waitUntil {sleep 5;
if (_taskID call BIS_fnc_taskState isEqualTo "CANCELED") exitWith {};

//ADDNOTIF SIDE MISSION
100 call btc_rep_fnc_change;
[parseText "<t color='#FACE00' font='PuristaBold' align = 'right' shadow = '1.5' size='2'>+ Side Mission Completed! </t><br /><t align = 'right' shadow = '1.5' size='1.5'>+$50</t>", [0, 0.5, 1, 1], nil, 5, 1.7, 0] remoteExec ["BIS_fnc_textTiles", 0];
[west, 50, false] call acex_fortify_fnc_updateBudget;
btc_global_economy = btc_global_economy + 50;
75 call btc_rep_fnc_change;
[parseText "<t color='#FACE00' font='PuristaBold' align = 'right' shadow = '1.5' size='2'>+ Side Mission Completed! </t><br /><t align = 'right' shadow = '1.5' size='1.5'>+$500</t>", [0, 0.5, 1, 1], nil, 5, 1.7, 0] remoteExec ["BIS_fnc_textTiles", 0];
[west, 500, false] call acex_fortify_fnc_updateBudget;
btc_global_economy = btc_global_economy + 500;


[_taskID, "SUCCEEDED"] call btc_task_fnc_setState;
8 changes: 4 additions & 4 deletions HeartsAndMindsPlus.Altis/core/fnc/side/capture_officer.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ if (_taskID call BIS_fnc_taskState isEqualTo "CANCELED") exitWith {};


//ADDNOTIF SIDE MISSION
100 call btc_rep_fnc_change;
[parseText "<t color='#FACE00' font='PuristaBold' align = 'right' shadow = '1.5' size='2'>+ Side Mission Completed! </t><br /><t align = 'right' shadow = '1.5' size='1.5'>+$50</t>", [0, 0.5, 1, 1], nil, 5, 1.7, 0] remoteExec ["BIS_fnc_textTiles", 0];
[west, 100, false] call acex_fortify_fnc_updateBudget;
btc_global_economy = btc_global_economy + 100;
75 call btc_rep_fnc_change;
[parseText "<t color='#FACE00' font='PuristaBold' align = 'right' shadow = '1.5' size='2'>+ Side Mission Completed! </t><br /><t align = 'right' shadow = '1.5' size='1.5'>+$500</t>", [0, 0.5, 1, 1], nil, 5, 1.7, 0] remoteExec ["BIS_fnc_textTiles", 0];
[west, 500, false] call acex_fortify_fnc_updateBudget;
btc_global_economy = btc_global_economy + 500;
8 changes: 4 additions & 4 deletions HeartsAndMindsPlus.Altis/core/fnc/side/checkpoint.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ if (_taskID call BIS_fnc_taskState isEqualTo "CANCELED") exitWith {
[[], _groups apply {vehicle leader _x}] call btc_fnc_delete;
};
//ADDNOTIF SIDE MISSION
100 call btc_rep_fnc_change;
[parseText "<t color='#FACE00' font='PuristaBold' align = 'right' shadow = '1.5' size='2'>+ Side Mission Completed! </t><br /><t align = 'right' shadow = '1.5' size='1.5'>+$25</t>", [0, 0.5, 1, 1], nil, 5, 1.7, 0] remoteExec ["BIS_fnc_textTiles", 0];
[west, 50, false] call acex_fortify_fnc_updateBudget;
btc_global_economy = btc_global_economy + 50;
20 call btc_rep_fnc_change;
[parseText "<t color='#FACE00' font='PuristaBold' align = 'right' shadow = '1.5' size='2'>+ Side Mission Completed! </t><br /><t align = 'right' shadow = '1.5' size='1.5'>+$100</t>", [0, 0.5, 1, 1], nil, 5, 1.7, 0] remoteExec ["BIS_fnc_textTiles", 0];
[west, 100, false] call acex_fortify_fnc_updateBudget;
btc_global_economy = btc_global_economy + 100;
[_taskID, "SUCCEEDED"] call btc_task_fnc_setState;
8 changes: 4 additions & 4 deletions HeartsAndMindsPlus.Altis/core/fnc/side/civtreatment.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,10 @@ if !(alive _unit) exitWith {
};

//ADDNOTIF SIDE MISSION
50 call btc_rep_fnc_change;
[parseText "<t color='#FACE00' font='PuristaBold' align = 'right' shadow = '1.5' size='2'>+ Side Mission Completed! </t><br /><t align = 'right' shadow = '1.5' size='1.5'>+$25</t>", [0, 0.5, 1, 1], nil, 5, 1.7, 0] remoteExec ["BIS_fnc_textTiles", 0];
[west, 25, false] call acex_fortify_fnc_updateBudget;
btc_global_economy = btc_global_economy + 25;
25 call btc_rep_fnc_change;
[parseText "<t color='#FACE00' font='PuristaBold' align = 'right' shadow = '1.5' size='2'>+ Side Mission Completed! </t><br /><t align = 'right' shadow = '1.5' size='1.5'>+$100</t>", [0, 0.5, 1, 1], nil, 5, 1.7, 0] remoteExec ["BIS_fnc_textTiles", 0];
[west, 100, false] call acex_fortify_fnc_updateBudget;
btc_global_economy = btc_global_economy + 100;


[_taskID, "SUCCEEDED"] call BIS_fnc_taskSetState;
Expand Down
8 changes: 4 additions & 4 deletions HeartsAndMindsPlus.Altis/core/fnc/side/convoy.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,10 @@ if (_taskID call BIS_fnc_taskState isEqualTo "FAILED") exitWith {
if (_taskID call BIS_fnc_taskState isEqualTo "CANCELED") exitWith {};

//ADDNOTIF SIDE MISSION
100 call btc_rep_fnc_change;
[parseText "<t color='#FACE00' font='PuristaBold' align = 'right' shadow = '1.5' size='2'>+ Side Mission Completed! </t><br /><t align = 'right' shadow = '1.5' size='1.5'>+$50</t>", [0, 0.5, 1, 1], nil, 5, 1.7, 0] remoteExec ["BIS_fnc_textTiles", 0];
[west, 100, false] call acex_fortify_fnc_updateBudget;
btc_global_economy = btc_global_economy + 100;
50 call btc_rep_fnc_change;
[parseText "<t color='#FACE00' font='PuristaBold' align = 'right' shadow = '1.5' size='2'>+ Side Mission Completed! </t><br /><t align = 'right' shadow = '1.5' size='1.5'>+$300</t>", [0, 0.5, 1, 1], nil, 5, 1.7, 0] remoteExec ["BIS_fnc_textTiles", 0];
[west, 300, false] call acex_fortify_fnc_updateBudget;
btc_global_economy = btc_global_economy + 300;


[_taskID, "SUCCEEDED"] call BIS_fnc_taskSetState;
8 changes: 4 additions & 4 deletions HeartsAndMindsPlus.Altis/core/fnc/side/get_city.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ waitUntil {sleep 5;
if (_taskID call BIS_fnc_taskState isEqualTo "CANCELED") exitWith {};

//ADDNOTIF SIDE MISSION
100 call btc_rep_fnc_change;
[parseText "<t color='#FACE00' font='PuristaBold' align = 'right' shadow = '1.5' size='2'>+ Side Mission Completed! </t><br /><t align = 'right' shadow = '1.5' size='1.5'>+$50</t>", [0, 0.5, 1, 1], nil, 5, 1.7, 0] remoteExec ["BIS_fnc_textTiles", 0];
[west, 50, false] call acex_fortify_fnc_updateBudget;
btc_global_economy = btc_global_economy + 50;
30 call btc_rep_fnc_change;
[parseText "<t color='#FACE00' font='PuristaBold' align = 'right' shadow = '1.5' size='2'>+ Side Mission Completed! </t><br /><t align = 'right' shadow = '1.5' size='1.5'>+$100</t>", [0, 0.5, 1, 1], nil, 5, 1.7, 0] remoteExec ["BIS_fnc_textTiles", 0];
[west, 100, false] call acex_fortify_fnc_updateBudget;
btc_global_economy = btc_global_economy + 100;


[_taskID, "SUCCEEDED"] call BIS_fnc_taskSetState;
8 changes: 4 additions & 4 deletions HeartsAndMindsPlus.Altis/core/fnc/side/hack.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,10 @@ _fx attachTo [_rocket, [0, 0, 0]];
[[], [_rocket, _terminal, _fx]] call btc_fnc_delete;

//ADDNOTIF SIDE MISSION
100 call btc_rep_fnc_change;
[parseText "<t color='#FACE00' font='PuristaBold' align = 'right' shadow = '1.5' size='2'>+ Side Mission Completed! </t><br /><t align = 'right' shadow = '1.5' size='1.5'>+$100</t>", [0, 0.5, 1, 1], nil, 5, 1.7, 0] remoteExec ["BIS_fnc_textTiles", 0];
[west, 100, false] call acex_fortify_fnc_updateBudget;
btc_global_economy = btc_global_economy + 100;
150 call btc_rep_fnc_change;
[parseText "<t color='#FACE00' font='PuristaBold' align = 'right' shadow = '1.5' size='2'>+ Side Mission Completed! </t><br /><t align = 'right' shadow = '1.5' size='1.5'>+$400</t>", [0, 0.5, 1, 1], nil, 5, 1.7, 0] remoteExec ["BIS_fnc_textTiles", 0];
[west, 400, false] call acex_fortify_fnc_updateBudget;
btc_global_economy = btc_global_economy + 400;


[_taskID, "SUCCEEDED"] call btc_task_fnc_setState;
8 changes: 4 additions & 4 deletions HeartsAndMindsPlus.Altis/core/fnc/side/hostage.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,10 @@ if !(alive _captive) exitWith {
};

//ADDNOTIF SIDE MISSION
200 call btc_rep_fnc_change;
[parseText "<t color='#FACE00' font='PuristaBold' align = 'right' shadow = '1.5' size='2'>+ Side Mission Completed! </t><br /><t align = 'right' shadow = '1.5' size='1.5'>+$75</t>", [0, 0.5, 1, 1], nil, 5, 1.7, 0] remoteExec ["BIS_fnc_textTiles", 0];
[west, 150, false] call acex_fortify_fnc_updateBudget;
btc_global_economy = btc_global_economy + 150;
75 call btc_rep_fnc_change;
[parseText "<t color='#FACE00' font='PuristaBold' align = 'right' shadow = '1.5' size='2'>+ Side Mission Completed! </t><br /><t align = 'right' shadow = '1.5' size='1.5'>+$750</t>", [0, 0.5, 1, 1], nil, 5, 1.7, 0] remoteExec ["BIS_fnc_textTiles", 0];
[west, 750, false] call acex_fortify_fnc_updateBudget;
btc_global_economy = btc_global_economy + 750;


[_taskID, "SUCCEEDED"] call BIS_fnc_taskSetState;
8 changes: 4 additions & 4 deletions HeartsAndMindsPlus.Altis/core/fnc/side/kill.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,10 @@ removeMissionEventHandler ["HandleDisconnect", _IDEH_HandleDisconnect];
if ((_taskID call BIS_fnc_taskState) in ["CANCELED", "FAILED"]) exitWith {[_taskID, _taskID call BIS_fnc_taskState] call btc_task_fnc_setState};

//ADDNOTIF SIDE MISSION
100 call btc_rep_fnc_change;
[parseText "<t color='#FACE00' font='PuristaBold' align = 'right' shadow = '1.5' size='2'>+ Side Mission Completed! </t><br /><t align = 'right' shadow = '1.5' size='1.5'>+$50</t>", [0, 0.5, 1, 1], nil, 5, 1.7, 0] remoteExec ["BIS_fnc_textTiles", 0];
[west, 100, false] call acex_fortify_fnc_updateBudget;
btc_global_economy = btc_global_economy + 50;
50 call btc_rep_fnc_change;
[parseText "<t color='#FACE00' font='PuristaBold' align = 'right' shadow = '1.5' size='2'>+ Side Mission Completed! </t><br /><t align = 'right' shadow = '1.5' size='1.5'>+$300</t>", [0, 0.5, 1, 1], nil, 5, 1.7, 0] remoteExec ["BIS_fnc_textTiles", 0];
[west, 300, false] call acex_fortify_fnc_updateBudget;
btc_global_economy = btc_global_economy + 300;


[_taskID, "SUCCEEDED"] call btc_task_fnc_setState;
8 changes: 4 additions & 4 deletions HeartsAndMindsPlus.Altis/core/fnc/side/mines.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,10 @@ waitUntil {sleep 5;
if (_taskID call BIS_fnc_taskState isEqualTo "CANCELED") exitWith {};

//ADDNOTIF SIDE MISSION
200 call btc_rep_fnc_change;
[parseText "<t color='#FACE00' font='PuristaBold' align = 'right' shadow = '1.5' size='2'>+ Side Mission Completed! </t><br /><t align = 'right' shadow = '1.5' size='1.5'>+$100</t>", [0, 0.5, 1, 1], nil, 5, 1.7, 0] remoteExec ["BIS_fnc_textTiles", 0];
[west, 100, false] call acex_fortify_fnc_updateBudget;
btc_global_economy = btc_global_economy + 100;
30 call btc_rep_fnc_change;
[parseText "<t color='#FACE00' font='PuristaBold' align = 'right' shadow = '1.5' size='2'>+ Side Mission Completed! </t><br /><t align = 'right' shadow = '1.5' size='1.5'>+$200</t>", [0, 0.5, 1, 1], nil, 5, 1.7, 0] remoteExec ["BIS_fnc_textTiles", 0];
[west, 200, false] call acex_fortify_fnc_updateBudget;
btc_global_economy = btc_global_economy + 200;


[_taskID, "SUCCEEDED"] call BIS_fnc_taskSetState;
8 changes: 4 additions & 4 deletions HeartsAndMindsPlus.Altis/core/fnc/side/removeRubbish.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,10 @@ if !("SUCCEEDED" in (_tasksID apply {_x call BIS_fnc_taskState})) exitWith {
};

//ADDNOTIF SIDE MISSION
[parseText "<t color='#FACE00' font='PuristaBold' align = 'right' shadow = '1.5' size='2'>+ Side Mission Completed! </t><br /><t align = 'right' shadow = '1.5' size='1.5'>+$25</t>", [0, 0.5, 1, 1], nil, 5, 1.7, 0] remoteExec ["BIS_fnc_textTiles", 0];
[west, 25, false] call acex_fortify_fnc_updateBudget;
btc_global_economy = btc_global_economy + 25;
[parseText "<t color='#FACE00' font='PuristaBold' align = 'right' shadow = '1.5' size='2'>+ Side Mission Completed! </t><br /><t align = 'right' shadow = '1.5' size='1.5'>+$150</t>", [0, 0.5, 1, 1], nil, 5, 1.7, 0] remoteExec ["BIS_fnc_textTiles", 0];
[west, 150, false] call acex_fortify_fnc_updateBudget;
btc_global_economy = btc_global_economy + 150;

50 call btc_rep_fnc_change;
25 call btc_rep_fnc_change;

[_taskID, "SUCCEEDED"] call BIS_fnc_taskSetState;
8 changes: 4 additions & 4 deletions HeartsAndMindsPlus.Altis/core/fnc/side/rescue.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ if (_units select {alive _x} isEqualTo []) then {
(([_x] call ace_dogtags_fnc_getDogtagData) select 0) in _dogTagList
} count (nearestObjects [btc_create_object_point, ["ACE_bodyBagObject"], 100]) >= count _units
};
_rep = 100;
_rep = 60;
};

{
Expand All @@ -163,9 +163,9 @@ if (_units select {alive _x} isEqualTo []) then {
if (_taskID call BIS_fnc_taskState in ["CANCELED", "FAILED"]) exitWith {};

//ADDNOTIF SIDE MISSION
[parseText "<t color='#FACE00' font='PuristaBold' align = 'right' shadow = '1.5' size='2'>+ Side Mission Completed! </t><br /><t align = 'right' shadow = '1.5' size='1.5'>+$50</t>", [0, 0.5, 1, 1], nil, 5, 1.7, 0] remoteExec ["BIS_fnc_textTiles", 0];
[west, 50, false] call acex_fortify_fnc_updateBudget;
btc_global_economy = btc_global_economy + 50;
[parseText "<t color='#FACE00' font='PuristaBold' align = 'right' shadow = '1.5' size='2'>+ Side Mission Completed! </t><br /><t align = 'right' shadow = '1.5' size='1.5'>+$600</t>", [0, 0.5, 1, 1], nil, 5, 1.7, 0] remoteExec ["BIS_fnc_textTiles", 0];
[west, 600, false] call acex_fortify_fnc_updateBudget;
btc_global_economy = btc_global_economy + 600;

_rep call btc_rep_fnc_change;

Expand Down
8 changes: 4 additions & 4 deletions HeartsAndMindsPlus.Altis/core/fnc/side/supply.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,10 @@ if (_taskID call BIS_fnc_taskState isEqualTo "CANCELED") exitWith {
};

//ADDNOTIF SIDE MISSION
100 call btc_rep_fnc_change;
[parseText "<t color='#FACE00' font='PuristaBold' align = 'right' shadow = '1.5' size='2'>+ Side Mission Completed! </t><br /><t align = 'right' shadow = '1.5' size='1.5'>+$75</t>", [0, 0.5, 1, 1], nil, 5, 1.7, 0] remoteExec ["BIS_fnc_textTiles", 0];
[west, 75, false] call acex_fortify_fnc_updateBudget;
btc_global_economy = btc_global_economy + 75;
20 call btc_rep_fnc_change;
[parseText "<t color='#FACE00' font='PuristaBold' align = 'right' shadow = '1.5' size='2'>+ Side Mission Completed! </t><br /><t align = 'right' shadow = '1.5' size='1.5'>+$150</t>", [0, 0.5, 1, 1], nil, 5, 1.7, 0] remoteExec ["BIS_fnc_textTiles", 0];
[west, 150, false] call acex_fortify_fnc_updateBudget;
btc_global_economy = btc_global_economy + 150;


[_taskID, "SUCCEEDED"] call btc_task_fnc_setState;
Expand Down
8 changes: 4 additions & 4 deletions HeartsAndMindsPlus.Altis/core/fnc/side/tower.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ waitUntil {sleep 5;
if (_taskID call BIS_fnc_taskState isEqualTo "CANCELED") exitWith {};

//ADDNOTIF SIDE MISSION
100 call btc_rep_fnc_change;
[parseText "<t color='#FACE00' font='PuristaBold' align = 'right' shadow = '1.5' size='2'>+ Side Mission Completed! </t><br /><t align = 'right' shadow = '1.5' size='1.5'>+$25</t>", [0, 0.5, 1, 1], nil, 5, 1.7, 0] remoteExec ["BIS_fnc_textTiles", 0];
[west, 25, false] call acex_fortify_fnc_updateBudget;
btc_global_economy = btc_global_economy + 25;
30 call btc_rep_fnc_change;
[parseText "<t color='#FACE00' font='PuristaBold' align = 'right' shadow = '1.5' size='2'>+ Side Mission Completed! </t><br /><t align = 'right' shadow = '1.5' size='1.5'>+$200</t>", [0, 0.5, 1, 1], nil, 5, 1.7, 0] remoteExec ["BIS_fnc_textTiles", 0];
[west, 200, false] call acex_fortify_fnc_updateBudget;
btc_global_economy = btc_global_economy + 200;


[_taskID, "SUCCEEDED"] call BIS_fnc_taskSetState;
Loading

0 comments on commit f11ce26

Please sign in to comment.