[minipost] ArmA2 – GLT_F16Mod wreck compatibility workaround

This article is directly related to the Malden Domination mission for ArmA2 CWR2 mod where I added the F16 mod to extend the plane selection. However this F16 mod has one wreck incompatibility that has to be addressed directly by this workaround.

*for GLT_F16 mod there was an issue inside this mod that didn’t spawned plane wrecks properly causing that the plane was unable to go through the wreck repair or even wreck deletion from the map and I had to edit the mode pbo itself to create a workaround. As this is hopefully temporary and I cannot host the whole mod here, this is a quick and simple guide how to modify the @GLT_F16 mod (best download from Six Updater).

Steps to modify F16 mod into workable wrecks:

Step1. Unpbo the glt_f16.pbo file so that you have this file converted to a “glt_f16” directory.

Unpacked glt_f16.pbo as "glt_f16" directory

Step2. Go to directory glt_f16/src/ where you will find a file wrecker.sqf and open this file with notepad you will find this script:

_plane = _this select 0;
_plane setVehicleAmmo 0;
waituntil {(abs(velocity _plane select 0) < 0.1) && (abs(velocity _plane select 1) < 0.1)&& (abs(velocity _plane select 2) < 0.1)};
_wrecktype = "GLT_Falcon_MRWreck";
_pos = getpos _plane;
_dir = (getdir _plane) + 180;
if (! surfaceIsWater [(_pos select 0), (_pos select 1)]) then {
    if (alive (driver _plane)) then {(driver _plane) action ["eject", _plane]};
  {deleteVehicle _x} forEach (crew _plane);
    deletevehicle _plane;
    _wreck = _wrecktype createVehicle _pos;
    _wreck setdir _dir;
    _wreck setpos _pos;
    _wreck setdammage 1;
};

Step 3. Change it to this:

_plane = _this select 0;
_plane setVehicleAmmo 0;
waituntil {(abs(velocity _plane select 0) < 0.1) && (abs(velocity _plane select 1) < 0.1)&& (abs(velocity _plane select 2) < 0.1)};
_wrecktype = "GLT_Falcon_MRWreck";
_pos = getpos _plane;
_dir = (getdir _plane) + 180;
if (! surfaceIsWater [(_pos select 0), (_pos select 1)]) then {
    if (alive (driver _plane)) then {(driver _plane) action ["eject", _plane]};
  {deleteVehicle _x} forEach (crew _plane);
    //deletevehicle _plane;
    //_wreck = _wrecktype createVehicle _pos;
    //_wreck setdir _dir;
    //_wreck setpos _pos;
    //_wreck setdammage 1;
};

Step 4. Convert the directory “glt_f16” back to file glt_f16.pbo overwriting the original file and you are DONE! Wreck should now work correctly.

---
Peter Havrila , published on

One comment ...

Comments are closed.