Skip to content

Commit c1563a3

Browse files
authored
Merge pull request #118 from GNCLORD-MDB/Restarbeiten
* Überhang in Traningsmodus abschalten * Zeus nach Respwan verfügbar machen * Bug das ein Person in Ziehen modus nicht mehr aufhört zu ziehen nach Tod * Abschüsselog von Heli Besatzungen * Abschüsselog von Panzer und Radpanzer Besatzungen * Fix das Kill von Geschützen nicht erfasst wurden. * Erweiterung Feststellung des Spieler Status im GPS * Fix fehlender Revive Dialog bei kleinst schaden
2 parents 7cbb90a + 56ebcd0 commit c1563a3

File tree

9 files changed

+40
-9
lines changed

9 files changed

+40
-9
lines changed

addons/OPT/GELDZEIT/fn_clientInit.sqf

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ player action ["WeaponOnBack", player];
4848

4949
// TEAM BALANCE - end mission for player if side is full
5050
// nicht in onPlayerRespawn, da nur zu Missionsbeginn prüfen
51+
if (!(OPT_SECTORCONTROL_trainingon)) then
52+
{
5153
if (isMultiplayer && hasInterface) then
5254
{
5355
if (GVAR(TEAMBALANCE) > 0) then
@@ -109,9 +111,10 @@ player action ["WeaponOnBack", player];
109111

110112
};
111113
};
114+
};
112115

113-
// friere Spieler, falls freezeTime aktiv
114-
[] call FUNC(frezztime);
116+
// friere Spieler, falls freezeTime aktiv
117+
[] call FUNC(frezztime);
115118

116119
//Beam ausführen zur zweiten Basis
117120
GVAR(beam_trigger) = [];

addons/OPT/GELDZEIT/fn_init.sqf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@
3636
if (OPT_SECTORCONTROL_trainingon) then
3737
{
3838
[] call FUNC(zeus);
39+
40+
Player addEventHandler ["Respawn", {
41+
42+
[] call FUNC(zeus);
43+
44+
}];
3945
};
4046

4147
}] call CFUNC(addEventhandler);

addons/OPT/GPS/fn_gps.sqf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ GVAR(markerplayer) = [] call FUNC(createPlayerMarker);
146146
{
147147
_marker setMarkerTextLocal _name;
148148

149-
if (lifeState _obj isEqualTo "INCAPACITATED") then
149+
if ((lifeState _obj isEqualTo "INCAPACITATED") or (_obj getVariable "OPT_isUnconscious" == 1)) then
150150
{
151151
_marker setMarkerTextLocal "";
152152
_marker setMarkerPosLocal [0,0];

addons/OPT/GPS/fn_gps_Unconscious.sqf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ GVAR(markerPoolisUnconscious) = [];
4141
_Sideidunit = getnumber (configFile >> "CfgVehicles" >> (typeof _x) >> "side");
4242
_sideidplayer = playerSide call BIS_fnc_sideID;
4343

44-
if ((_Sideidunit == _sideidplayer) and (lifeState _x isEqualTo "INCAPACITATED")) then
44+
if ((_Sideidunit == _sideidplayer) and ((lifeState _x isEqualTo "INCAPACITATED") or (_x getVariable "OPT_isUnconscious" == 1))) then
4545
{
4646
_unitsToMarkisUnconscious pushBack _x;
4747

addons/OPT/REVIVE/fn_checkplaymove.sqf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
params ["_target"];
1818

19-
if !(animationState _target == "AcinPknlMwlkSnonWnonDb") then
19+
if (!(animationState _target == "AcinPknlMwlkSnonWnonDb") and alive _target and !(lifeState _target isEqualTo "INCAPACITATED")) then
2020
{
2121
_target playMove "AcinPknlMwlkSnonWnonDb";
2222
};

addons/OPT/REVIVE/fn_clientInitEH.sqf

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,15 +108,21 @@ DFUNC(playerHandleDamage) =
108108

109109
//Var übergabe
110110
GVAR(playerHandleDamage_unit) = _unit;
111-
GVAR(playerHandleDamage_instigator) = _instigator;
111+
//_instigator kann oft nicht übergeben werden _source ist immer vorhanden.
112+
GVAR(playerHandleDamage_instigator) = _source;
112113
GVAR(playerHandleDamage_source) = _source;
113114
GVAR(playerHandleDamage_projectile) = _projectile;
114115
GVAR(playerHandleDamage_damage) = _damage;
115116

116117
private _resultingDamage = _damage;
117118

118-
if (_damage >= GVAR(MAX_DAMAGE)) then {
119+
if (getDammage _unit >= 0.65) then
120+
{
119121
[FUNC(playercheckINCAPACITATED), 1,""] call CLib_fnc_wait;
122+
};
123+
124+
if (_damage >= GVAR(MAX_DAMAGE)) then
125+
{
120126
// Player will be "down" from this point on.
121127

122128
// Making him invulnerable to prevent forced respawn and random damage that accumulates, if he get overkilled

addons/OPT/REVIVE/fn_drag.sqf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ GVAR(Addaction_id) = player addAction
3939
];
4040

4141
//Playmove check
42-
player addEventHandler ["AnimChanged", {[_this select 0] call FUNC(checkplaymove)}];
42+
GVAR(PLAYER_AnimChanged_EH_ID) = player addEventHandler ["AnimChanged", {[_this select 0] call FUNC(checkplaymove)}];
4343

4444
[{
4545
params ["_args", "_handle"];
@@ -50,7 +50,7 @@ player addEventHandler ["AnimChanged", {[_this select 0] call FUNC(checkplaymove
5050
GVAR(OPT_isDragging) = false;
5151

5252
//EH entfernen
53-
player removeEventHandler ["AnimChanged", 0];
53+
player removeEventHandler ["AnimChanged", GVAR(PLAYER_AnimChanged_EH_ID)];
5454

5555
//Löschen der letzen Animation
5656
player switchMove "";

addons/OPT/SHOP/fn_einlesenInShopDialog.sqf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,18 +129,21 @@ switch (GVAR(vehicleType)) do
129129
{
130130
_pool = GVAR(nato_choppers);
131131
GVAR(pads) = GVAR(pad_air_west);
132+
GVAR(Checkbereich) = 13;
132133
GVAR(Hardcap_pool) = GVAR(Hardcap_nato_choppers);
133134
};
134135
case east :
135136
{
136137
_pool = GVAR(csat_choppers);
137138
GVAR(pads) = GVAR(pad_air_east);
139+
GVAR(Checkbereich) = 13;
138140
GVAR(Hardcap_pool) = GVAR(Hardcap_csat_choppers);
139141
};
140142
case independent :
141143
{
142144
_pool = GVAR(AAF_choppers);
143145
GVAR(pads) = GVAR(pad_air_independent);
146+
GVAR(Checkbereich) = 13;
144147
GVAR(Hardcap_pool) = GVAR(Hardcap_aaf_choppers);
145148
};
146149
default

addons/OPT/SHOP/fn_handledeadvehicle.sqf

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,19 @@ params [
2828
// log destroyed vehicle and killer
2929
[_vec, _instigator, _source] call FUNC(writeKill);
3030

31+
//Log Besatzung bei Fahrzeugabschuss
32+
//Fahrzeug Explosionen überlager den queller des Abschuss.
33+
34+
if ((_vec isKindOf "Air") or (_vec isKindOf "tank") or (_vec isKindOf "Wheeled_APC")) then
35+
{
36+
private _crewarray = Crew _vec;
37+
38+
_crewarray apply
39+
{
40+
[_x, _instigator, _source] call FUNC(writeKill);
41+
};
42+
};
43+
3144
// delete all wrecks within the base safezone
3245

3346
switch OPT_GELDZEIT_Fraktionauswahl do

0 commit comments

Comments
 (0)