mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Medical Engine - Disable third party medical systems (#8289)
Co-authored-by: jonpas <jonpas33@gmail.com>
This commit is contained in:
parent
4ae4dba3bb
commit
c7ff918554
10
addons/medical_engine/CfgFunctions.hpp
Normal file
10
addons/medical_engine/CfgFunctions.hpp
Normal file
@ -0,0 +1,10 @@
|
||||
class CfgFunctions {
|
||||
class A3_Mark {
|
||||
class Revive {
|
||||
class reviveInit {
|
||||
// Disable BI medical system
|
||||
postInit = 0;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
@ -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);
|
||||
|
@ -78,4 +78,6 @@ addMissionEventHandler ["Loaded", {
|
||||
};
|
||||
}] call CBA_fnc_addEventhandler;
|
||||
|
||||
[] call FUNC(disableThirdParty);
|
||||
|
||||
ADDON = true;
|
||||
|
@ -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"
|
||||
|
31
addons/medical_engine/functions/fnc_disableThirdParty.sqf
Normal file
31
addons/medical_engine/functions/fnc_disableThirdParty.sqf
Normal 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;
|
Loading…
Reference in New Issue
Block a user