Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Common / Medical - Fix loading patients into turret only seats #7980

Merged
merged 2 commits into from
Nov 15, 2020

Conversation

BaerMitUmlaut
Copy link
Member

@BaerMitUmlaut BaerMitUmlaut commented Nov 2, 2020

When merged this pull request will:

I tested this with the AH-6 and eject only did not work before. This might fix this problem on other vehicles, too, not sure what causes it.

@BaerMitUmlaut BaerMitUmlaut added the kind/bug-fix Release Notes: **FIXED:** label Nov 2, 2020
@BaerMitUmlaut BaerMitUmlaut changed the title Fix loading patients into turret only seats Common / Medical - Fix loading patients into turret only seats Nov 3, 2020
@jonpas jonpas added this to the 3.13.5 milestone Nov 7, 2020
@PabstMirror
Copy link
Contributor

Not working with MBT_04

loadPersonLocal line 24 is wrong (I think this is my fault from an old PR), it should be:

if ((_vehicle emptyPositions "cargo" > 0) && {!(_unit getVariable ['ACE_isUnconscious', false]) || {(getNumber (configFile >> "CfgVehicles" >> (typeOf _vehicle) >> "ejectDeadCargo")) == 0}}) then {

this was causing cargo loading path to always happen based on ejectDeadCargo, ignoring if there was room

@PabstMirror PabstMirror merged commit ad75c7c into master Nov 15, 2020
@PabstMirror PabstMirror deleted the fix-turret-patient-loading branch November 15, 2020 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug-fix Release Notes: **FIXED:**
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fnc_loadperson.sqf / fnc_loadpersonlocal.sqf Can't load patient into the co-pilot seat of an AH-6
5 participants