Fixed: Changed medicClass to isMedic.

This commit is contained in:
Thomas Kooi 2015-01-25 16:05:09 +01:00
parent 69c45cf54d
commit 3c60af5a14
3 changed files with 5 additions and 6 deletions

View File

@ -119,7 +119,7 @@ ADD_TREATMENT_ADVANCED("STR_ACE_ACTION_SALINEIV_250ml","STR_ACE_ACTION_SALINEIV_
(GVAR(setting_aidKitRestrictions) == 2) ||
(GVAR(setting_aidKitRestrictions) == 3 && (!_hasOpenWounds))) exitwith {
((GVAR(setting_aidKitMedicsOnly) && [_caller] call FUNC(medicClass) || !GVAR(setting_aidKitMedicsOnly)));
((GVAR(setting_aidKitMedicsOnly) && [_caller] call FUNC(isMedic) || !GVAR(setting_aidKitMedicsOnly)));
};
false;
},TREATMENT_ADVANCED('ACE_personal_aid_kit'),'advanced'] call FUNC(addTreatmentOption);
@ -142,7 +142,7 @@ ADD_TREATMENT_ADVANCED("STR_ACE_ACTION_SALINEIV_250ml","STR_ACE_ACTION_SALINEIV_
_caller = _this select 0;
_target = _this select 1;
((GVAR(setting_allowStitching) == 0 && [_Caller] call FUNC(medicClass)) || GVAR(setting_allowStitching) == 1)
((GVAR(setting_allowStitching) == 0 && [_Caller] call FUNC(isMedic)) || GVAR(setting_allowStitching) == 1)
},TREATMENT_ADVANCED('ACE_surgical_kit'),'advanced'] call FUNC(addTreatmentOption);
// Airway Management

View File

@ -25,7 +25,7 @@ if (!local _target) exitwith{};
_airwayStatus = [_target,QGVAR(airway)] call EFUNC(common,getDefinedVariable);
if (_airwayStatus > 0) then {
if (!([_treatingPerson] call FUNC(medicClass))) then {
if (!([_treatingPerson] call FUNC(isMedic))) then {
_target setvariable [QGVAR(airwayTreated), true, true];
} else {
if (random (1) >= 0.35) then {

View File

@ -26,7 +26,6 @@ if (!isNull _logic) then {
_start = diag_tickTime;
if (!(["ACE_sys_medical"] call EFUNC(common,isModuleEnabled_F))) exitwith {};
// TODO Create functions for adding multiple magazines to a unit
// TODO Check if unit can store more magazines (ie backpack/vest/uniform are not full)
@ -57,7 +56,7 @@ if (!isNull _logic) then {
// TODO make this neat code.
switch (_setting) do {
case ALL_PLAYERS: {
_code = if ([player] call FUNC(medicClass)) then {
_code = if ([player] call FUNC(isMedic)) then {
_medicsLoadout;
} else {
_nonMedics;
@ -67,7 +66,7 @@ if (!isNull _logic) then {
player addEventhandler["Respawn", _code];
};
case ONLY_MEDICS: {
_code = if ([player] call FUNC(medicClass)) then {
_code = if ([player] call FUNC(isMedic)) then {
_medicsLoadout;
} else {
{};