Skip to content

Commit 78e46b6

Browse files
authored
Merge pull request #163 from ultranoobian/master
v0.5.3 Release Candidate
2 parents f413938 + 31b9455 commit 78e46b6

File tree

9 files changed

+125
-337
lines changed

9 files changed

+125
-337
lines changed

source/INIT.sqf

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,26 @@ execvm "dynamic_music\dyn_music_init.sqf";
1818
if (hasInterface) then { execVM "misc\gps_marker.sqf";};
1919
if (!isMultiplayer) then {
2020
getsize_script = [player] execVM "mapsize.sqf";
21-
};
22-
21+
};
22+
staminaEnabled = ["Stamina", false] call BIS_fnc_getParamValue;
23+
if(staminaEnabled == 0) then {
24+
staminaEnabled = false;
25+
} else {
26+
staminaEnabled = true;
27+
};
2328
// IF MP
2429
if (isMultiplayer) then {
2530

2631
// Get the variables from the parameters lobby
2732
_revive_activated = ["Revive", 1] call BIS_fnc_getParamValue;
2833
DUWSMP_CP_death_cost = ["DeathPenalty", 1] call BIS_fnc_getParamValue;
29-
staminaEnabled = ["Stamina", 0] call BIS_fnc_getParamValue;
34+
//staminaEnabled = ["Stamina", 0] call BIS_fnc_getParamValue;
3035

31-
if(staminaEnabled == 0) then {
36+
/*if(staminaEnabled == 0) then {
3237
staminaEnabled = false;
3338
} else {
3439
staminaEnabled = true;
35-
};
40+
};*/
3641

3742
if (support_armory_available) then {
3843
hq_blu1 addaction ["<t color='#ff0066'>Armory (VA)</t>","bisArsenal.sqf", "", 0, true, true, "", "_this == player"];
@@ -42,10 +47,23 @@ if (isMultiplayer) then {
4247
};
4348

4449
if (_revive_activated == 1) then {execVM "duws_revive\reviveInit.sqf"};
50+
4551
PlayerKilledEH = player addEventHandler ["killed", {
4652
commandpointsblu1 = commandpointsblu1 - DUWSMP_CP_death_cost;
4753
publicVariable "commandpointsblu1";
4854
}];
55+
56+
PlayerBetrayerEH = player addEventHandler ["HandleRating", {
57+
// If playerRating is negative (traitor) then reset to zero
58+
_playerRating = rating (_this select 0);
59+
if (_playerRating < 0) then {
60+
player addRating (0 - _playerRating);
61+
};
62+
// If final rating is positive, do not modify, else zero.
63+
_rating = _this select 1;
64+
[0,_rating] select ((_playerRating - _rating) > 0);
65+
}];
66+
4967
"support_specialized_training_available" addPublicVariableEventHandler {lbSetColor [2103, 11, [0, 1, 0, 1]];};
5068
"support_armory_available" addPublicVariableEventHandler {
5169
hq_blu1 addaction ["<t color='#ff0066'>Armory (VA)</t>","bisArsenal.sqf", "", 0, true, true, "", "_this == player"];

source/dialog/hc_init.sqf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
// _center = createCenter sideLogic; un center existe déjŕ
1+
// _center = createCenter sideLogic; un center existe d�j�
22

33
// create && synchronize HC
44
_grplogic = createGroup sideLogic;
5-
_hc_module = _grplogic createUnit ["HighCommand",[0,0,0] , [], 0, ""];
5+
_hc_module = _grplogic createUnit ["HighCommand",[0,0,0] , [], 0, "NONE"];
66
_hc_module synchronizeObjectsAdd [player];
77
// done,
88

99
// make 1 HC subordinate so that the player will not control all blufor forces
1010
_grplogic = createGroup sideLogic;
11-
_sub_module = _grplogic createUnit ["HighCommandsubordinate",[0,0,0] , [], 0, ""];
11+
_sub_module = _grplogic createUnit ["HighCommandsubordinate",[0,0,0] , [], 0, "NONE"];
1212
_sub_module synchronizeObjectsAdd [_hc_module];

source/dialog/request.sqf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ _index1 = lbAdd [2102, "UAV Darter(5CP)"]; // 32
7373
_index1 = lbAdd [2102, "Blackfish Infantry (40CP)"]; // 33
7474
_index1 = lbAdd [2102, "Blackfish Vehicle (45CP)"]; // 34
7575
_index1 = lbAdd [2102, "Blackfish Armed (60CP)"]; // 35
76+
_index1 = lbAdd [2102, "Black Wasp II (50CP)"]; // 36
77+
_index1 = lbAdd [2102, "Black Wasp II (Stealth) (60CP)"]; // 37
7678
lbSetCurSel [2102, 0];
7779

7880
// Supports !!! CHECK TO ADD AT INIT

source/dialog/request_squad.sqf

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
_index = lbCurSel 2101;
22

3-
_spawnPos = getpos hq_blu1;
3+
//_spawnPos = getpos hq_blu1; blocked by Tuxu
4+
//center, minDist, maxDist, objDist, waterMode, maxGrad, shoreMode, blacklistPos, defaultPos
5+
//HQ, minDist=80,max =250, objdist = 20, landmode, maxgrad = 20, shoremode,
6+
_spawnPos = [getpos hq_blu1, 80, 250, 20, 0, 20, 0] call BIS_fnc_findSafePos;
47
_spawnPos = [(_spawnPos select 0)+15, _spawnPos select 1];
58

69
switch (_index) do
@@ -186,4 +189,4 @@ switch (_index) do
186189
};
187190
};
188191
};
189-
publicVariable "commandpointsblu1";
192+
publicVariable "commandpointsblu1";

0 commit comments

Comments
 (0)