@@ -18,21 +18,26 @@ execvm "dynamic_music\dyn_music_init.sqf";
1818if (hasInterface ) then { execVM " misc\gps_marker.sqf" ;};
1919if (! 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
2429if (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" ];
0 commit comments