Medical Engine - Disable third party medical systems (#8289)

Co-authored-by: jonpas <jonpas33@gmail.com>
This commit is contained in:
BaerMitUmlaut 2021-07-23 21:32:36 +02:00 committed by GitHub
parent 4ae4dba3bb
commit c7ff918554
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 53 additions and 9 deletions

View File

@ -0,0 +1,10 @@
class CfgFunctions {
class A3_Mark {
class Revive {
class reviveInit {
// Disable BI medical system
postInit = 0;
};
};
};
};

View File

@ -1,9 +1,10 @@
PREP(handleDamage);
PREP(applyAnimAfterRagdoll);
PREP(damageBodyPart);
PREP(updateBodyPartVisuals);
PREP(updateDamageEffects);
PREP(setStructuralDamage);
PREP(setUnconsciousAnim);
PREP(disableThirdParty);
PREP(getHitpointArmor);
PREP(getItemArmor);
PREP(applyAnimAfterRagdoll);
PREP(handleDamage);
PREP(setStructuralDamage);
PREP(setUnconsciousAnim);
PREP(updateBodyPartVisuals);
PREP(updateDamageEffects);

View File

@ -78,4 +78,6 @@ addMissionEventHandler ["Loaded", {
};
}] call CBA_fnc_addEventhandler;
[] call FUNC(disableThirdParty);
ADDON = true;

View File

@ -14,10 +14,10 @@ class CfgPatches {
};
};
#include "CfgEventHandlers.hpp"
#include "CfgActions.hpp"
#include "CfgMoves.hpp"
#include "CfgEventHandlers.hpp"
#include "CfgExtendedAnimation.hpp"
#include "CfgFunctions.hpp"
#include "CfgMoves.hpp"
#include "CfgVehicles.hpp"
#include "CfgWeapons.hpp"

View File

@ -0,0 +1,31 @@
#include "script_component.hpp"
/*
* Author: BaerMitUmlaut
* Detects and disables third party medical systems.
*
* Arguments:
* None
*
* Return Value:
* None
*
* Example:
* [] call ace_medical_engine_fnc_disableThirdParty
*
* Public: No
*/
// SOG:PF CDLC revive system
// Pretend revive system was already initialized.
// See: vn_fnc_module_advancedrevive
vn_advanced_revive_started = true;
// Farooq Revive
// Overwrite player initialization.
far_player_init = compileFinal "";
[{!isNil "far_debugging"}, {
far_isDragging = nil; // Disable "Drag & Carry animation fix" loop - cannot be killed because spawned while true.
far_muteRadio = nil; // Disable initialization hint.
far_muteACRE = nil; // Same, but for very old versions.
far_debugging = false; // Disable adding event handlers to AI in SP.
}, [], 5] call CBA_fnc_waitUntilAndExecute;