Skip to content

Commit

Permalink
Merge pull request #118 from GNCLORD-MDB/Restarbeiten
Browse files Browse the repository at this point in the history
*   Ü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
  • Loading branch information
Frozen-byte authored Mar 7, 2021
2 parents 7cbb90a + 56ebcd0 commit c1563a3
Show file tree
Hide file tree
Showing 9 changed files with 40 additions and 9 deletions.
7 changes: 5 additions & 2 deletions addons/OPT/GELDZEIT/fn_clientInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ player action ["WeaponOnBack", player];

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

};
};
};

// friere Spieler, falls freezeTime aktiv
[] call FUNC(frezztime);
// friere Spieler, falls freezeTime aktiv
[] call FUNC(frezztime);

//Beam ausführen zur zweiten Basis
GVAR(beam_trigger) = [];
Expand Down
6 changes: 6 additions & 0 deletions addons/OPT/GELDZEIT/fn_init.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@
if (OPT_SECTORCONTROL_trainingon) then
{
[] call FUNC(zeus);

Player addEventHandler ["Respawn", {

[] call FUNC(zeus);

}];
};

}] call CFUNC(addEventhandler);
2 changes: 1 addition & 1 deletion addons/OPT/GPS/fn_gps.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ GVAR(markerplayer) = [] call FUNC(createPlayerMarker);
{
_marker setMarkerTextLocal _name;

if (lifeState _obj isEqualTo "INCAPACITATED") then
if ((lifeState _obj isEqualTo "INCAPACITATED") or (_obj getVariable "OPT_isUnconscious" == 1)) then
{
_marker setMarkerTextLocal "";
_marker setMarkerPosLocal [0,0];
Expand Down
2 changes: 1 addition & 1 deletion addons/OPT/GPS/fn_gps_Unconscious.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ GVAR(markerPoolisUnconscious) = [];
_Sideidunit = getnumber (configFile >> "CfgVehicles" >> (typeof _x) >> "side");
_sideidplayer = playerSide call BIS_fnc_sideID;

if ((_Sideidunit == _sideidplayer) and (lifeState _x isEqualTo "INCAPACITATED")) then
if ((_Sideidunit == _sideidplayer) and ((lifeState _x isEqualTo "INCAPACITATED") or (_x getVariable "OPT_isUnconscious" == 1))) then
{
_unitsToMarkisUnconscious pushBack _x;

Expand Down
2 changes: 1 addition & 1 deletion addons/OPT/REVIVE/fn_checkplaymove.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

params ["_target"];

if !(animationState _target == "AcinPknlMwlkSnonWnonDb") then
if (!(animationState _target == "AcinPknlMwlkSnonWnonDb") and alive _target and !(lifeState _target isEqualTo "INCAPACITATED")) then
{
_target playMove "AcinPknlMwlkSnonWnonDb";
};
Expand Down
10 changes: 8 additions & 2 deletions addons/OPT/REVIVE/fn_clientInitEH.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -108,15 +108,21 @@ DFUNC(playerHandleDamage) =

//Var übergabe
GVAR(playerHandleDamage_unit) = _unit;
GVAR(playerHandleDamage_instigator) = _instigator;
//_instigator kann oft nicht übergeben werden _source ist immer vorhanden.
GVAR(playerHandleDamage_instigator) = _source;
GVAR(playerHandleDamage_source) = _source;
GVAR(playerHandleDamage_projectile) = _projectile;
GVAR(playerHandleDamage_damage) = _damage;

private _resultingDamage = _damage;

if (_damage >= GVAR(MAX_DAMAGE)) then {
if (getDammage _unit >= 0.65) then
{
[FUNC(playercheckINCAPACITATED), 1,""] call CLib_fnc_wait;
};

if (_damage >= GVAR(MAX_DAMAGE)) then
{
// Player will be "down" from this point on.

// Making him invulnerable to prevent forced respawn and random damage that accumulates, if he get overkilled
Expand Down
4 changes: 2 additions & 2 deletions addons/OPT/REVIVE/fn_drag.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ GVAR(Addaction_id) = player addAction
];

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

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

//EH entfernen
player removeEventHandler ["AnimChanged", 0];
player removeEventHandler ["AnimChanged", GVAR(PLAYER_AnimChanged_EH_ID)];

//Löschen der letzen Animation
player switchMove "";
Expand Down
3 changes: 3 additions & 0 deletions addons/OPT/SHOP/fn_einlesenInShopDialog.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -129,18 +129,21 @@ switch (GVAR(vehicleType)) do
{
_pool = GVAR(nato_choppers);
GVAR(pads) = GVAR(pad_air_west);
GVAR(Checkbereich) = 13;
GVAR(Hardcap_pool) = GVAR(Hardcap_nato_choppers);
};
case east :
{
_pool = GVAR(csat_choppers);
GVAR(pads) = GVAR(pad_air_east);
GVAR(Checkbereich) = 13;
GVAR(Hardcap_pool) = GVAR(Hardcap_csat_choppers);
};
case independent :
{
_pool = GVAR(AAF_choppers);
GVAR(pads) = GVAR(pad_air_independent);
GVAR(Checkbereich) = 13;
GVAR(Hardcap_pool) = GVAR(Hardcap_aaf_choppers);
};
default
Expand Down
13 changes: 13 additions & 0 deletions addons/OPT/SHOP/fn_handledeadvehicle.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,19 @@ params [
// log destroyed vehicle and killer
[_vec, _instigator, _source] call FUNC(writeKill);

//Log Besatzung bei Fahrzeugabschuss
//Fahrzeug Explosionen überlager den queller des Abschuss.

if ((_vec isKindOf "Air") or (_vec isKindOf "tank") or (_vec isKindOf "Wheeled_APC")) then
{
private _crewarray = Crew _vec;

_crewarray apply
{
[_x, _instigator, _source] call FUNC(writeKill);
};
};

// delete all wrecks within the base safezone

switch OPT_GELDZEIT_Fraktionauswahl do
Expand Down

0 comments on commit c1563a3

Please sign in to comment.