mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
General - Remove deprecated functions (#8878)
This commit is contained in:
parent
3964c5d44e
commit
3442a47942
@ -111,7 +111,6 @@ PREP(inTransitionAnim);
|
||||
PREP(isAwake);
|
||||
PREP(isEngineer);
|
||||
PREP(isEOD);
|
||||
PREP(isFeatureCameraActive);
|
||||
PREP(isInBuilding);
|
||||
PREP(isMedic);
|
||||
PREP(isModLoaded);
|
||||
@ -127,7 +126,6 @@ PREP(muteUnitHandleInitPost);
|
||||
PREP(muteUnitHandleRespawn);
|
||||
PREP(nearestVehiclesFreeSeat);
|
||||
PREP(numberToDigits);
|
||||
PREP(numberToDigitsString);
|
||||
PREP(numberToString);
|
||||
PREP(onAnswerRequest);
|
||||
PREP(owned);
|
||||
|
@ -1,39 +0,0 @@
|
||||
#include "script_component.hpp"
|
||||
/*
|
||||
* Author: Sniperwolf572
|
||||
* Checks if one of the following common feature cameras is active:
|
||||
*
|
||||
* - Curator
|
||||
* - ACE Spectator
|
||||
* - Arsenal camera (BIS_fnc_arsenal)
|
||||
* - Nexus Spectator (BIS_fnc_EGSpectator)
|
||||
* - Establishing shot (BIS_fnc_establishingShot)
|
||||
* - Splendid camera (BIS_fnc_camera)
|
||||
* - Animation viewer (BIS_fnc_animViewer)
|
||||
* - Classic camera (BIS_fnc_cameraOld)
|
||||
*
|
||||
* Arguments:
|
||||
* 0: None <NIL>
|
||||
*
|
||||
* Return Value:
|
||||
* A feature camera is active <BOOL>
|
||||
*
|
||||
* Example:
|
||||
* [] call ace_common_fnc_isFeatureCameraActive
|
||||
*
|
||||
* Public: Yes
|
||||
*/
|
||||
|
||||
ACE_DEPRECATED(QFUNC(isFeatureCameraActive),"3.14.0","CBA_fnc_getActiveFeatureCamera");
|
||||
|
||||
!(
|
||||
isNull curatorCamera && // Curator
|
||||
{!GETMVAR(EGVAR(spectator,isSet),false)} && // ACE Spectator
|
||||
{GETMVAR(EGVAR(huntir,stop),true)} && // ACE Hunt IR
|
||||
{isNull GETMVAR(BIS_EGSpectatorCamera_camera, objNull)} && // BIS Nexus Spectator
|
||||
{isNull GETUVAR(BIS_fnc_arsenal_cam, objNull)} && // Arsenal camera
|
||||
{isNull GETMVAR(BIS_fnc_establishingShot_fakeUAV, objNull)} && // Establishing shot camera
|
||||
{isNull GETMVAR(BIS_fnc_camera_cam, objNull)} && // Splendid camera
|
||||
{isNull GETUVAR(BIS_fnc_animViewer_cam, objNull)} && // Animation viewer camera
|
||||
{isNull GETMVAR(BIS_DEBUG_CAM, objNull)} // Classic camera
|
||||
) // return
|
@ -1,21 +0,0 @@
|
||||
#include "script_component.hpp"
|
||||
/*
|
||||
* Author: commy2
|
||||
* Transforms a number to an string of the correspondending digits.
|
||||
*
|
||||
* Arguments:
|
||||
* 0: Number to 'digitize' <NUMBER>
|
||||
* 1: Set the minimal length of the returned string. Useful for getting left hand zeroes. (Optional) <NUMBER>
|
||||
*
|
||||
* Return Value:
|
||||
* Digits. The maximum length is six digits. <STRING>
|
||||
*
|
||||
* Example:
|
||||
* [5, 5] call ace_common_fnc_numberToDigitsString
|
||||
*
|
||||
* Public: Yes
|
||||
*/
|
||||
|
||||
ACE_DEPRECATED(QFUNC(numberToDigitsString),"3.14.0","CBA_fnc_formatNumber");
|
||||
|
||||
_this call CBA_fnc_formatNumber
|
@ -8,47 +8,4 @@ PREP_RECOMPILE_END;
|
||||
|
||||
#include "initSettings.sqf"
|
||||
|
||||
// Add warning for old functions that were technically public, Remove at 3.14.0
|
||||
{
|
||||
missionNamespace setVariable [_x, compileFinal format ['diag_log text "ACE Medical WARNING: Formerly public function [%1] has no effect in medical rewrite."; nil', _x]];
|
||||
} forEach [
|
||||
QFUNC(actionPlaceInBodyBag),
|
||||
QFUNC(actionRemoveTourniquet),
|
||||
QFUNC(addHeartRateAdjustment),
|
||||
QFUNC(addToLog),
|
||||
QFUNC(addToTriageCard),
|
||||
QFUNC(addUnconsciousCondition),
|
||||
QFUNC(addVitalLoop),
|
||||
QFUNC(canAccessMedicalEquipment),
|
||||
QFUNC(canTreat),
|
||||
QFUNC(displayTriageCard),
|
||||
QFUNC(dropDownTriageCard),
|
||||
QFUNC(getTriageStatus),
|
||||
QFUNC(getUnconsciousCondition),
|
||||
QFUNC(hasItem),
|
||||
QFUNC(hasItems),
|
||||
QFUNC(hasTourniquetAppliedTo),
|
||||
QFUNC(isInMedicalFacility),
|
||||
QFUNC(isInMedicalVehicle),
|
||||
QFUNC(isMedic),
|
||||
QFUNC(isMedicalVehicle),
|
||||
QFUNC(itemCheck),
|
||||
QFUNC(selectionNameToNumber),
|
||||
QFUNC(setCardiacArrest),
|
||||
QFUNC(setDead),
|
||||
QFUNC(setHitPointDamage),
|
||||
QFUNC(showBloodEffect),
|
||||
QFUNC(treatment),
|
||||
QFUNC(treatmentAdvanced_bandage),
|
||||
QFUNC(treatmentAdvanced_CPR),
|
||||
QFUNC(treatmentAdvanced_CPRLocal),
|
||||
QFUNC(treatmentAdvanced_medication),
|
||||
QFUNC(treatmentAdvanced_medicationLocal),
|
||||
QFUNC(treatmentIV),
|
||||
QFUNC(treatmentIVLocal),
|
||||
QFUNC(unconsciousPFH),
|
||||
QFUNC(useItem),
|
||||
QFUNC(useItems)
|
||||
];
|
||||
|
||||
ADDON = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user