Chainsaw Squirrel

( SOLVED ) A3xai launchers disappear issue

11 posts in this topic

I know A3XAI is no longer supported by anyone really , but I cant seem to get launchers to not disappear on AI death.. I thought the option to remove ammo from vehicle was the same as launchers from AI .. I had it set to 0 .. but launchers still went poof .. turned it to 1 and still poof ... I dont think I missing anything .. any thought, or ideas 
Or did they never have the option for launchers to disappear on their death  ?? 

Edited by Chainsaw Squirrel

Share this post


Link to post
Share on other sites

Unpack the a3xai.pbo file.

Locate the file:  \a3xai\compile\A3XAI_unit_events\A3XAI_handleDeathEvent.sqf.

Rem out (or remove if you want) the following lines starting around line 52 (ish).
 

if !(isNull _victim) then {
    //{
    //    if (_x in A3XAI_launcherTypes) exitWith {
    //        if (_x in (weapons _victim)) then {
    //            _victim removeWeapon _x;
    //        } else {
    //            _launcherItem = _x;
    //            {
    //                if (_launcherItem in weaponCargo _x) exitWith {
    //                    deleteVehicle _x;
    //                    if (A3XAI_debugLevel > 1) then {diag_log format ["A3XAI Debug: Deleted WeaponHolderSimulated containing launcher %1.",_launcherItem];};
    //                };
    //            } forEach ((getPosATL _victim) nearObjects ["WeaponHolderSimulated",10]);
    //        };
    //    };
    //} forEach ((_victim getVariable ["loadout",[[],[]]]) select 0);
    
    //{
    //    if (_forEachIndex > 0) then {
    //        _victim removeMagazines _x;
    //    };
    //} forEach ((_victim getVariable ["loadout",[[],[]]]) select 1);

    if (_vehicle isEqualTo (_unitGroup getVariable ["assignedVehicle",objNull])) then {

Profit.

  • Like 1

Share this post


Link to post
Share on other sites
Advertisement
24 minutes ago, Chainsaw Squirrel said:

Thanks bro ...  I knew there was a way .. don't know why he did not include a statement to to keep or remove launcher .. but this is the same thing .. thanks  

Face had tons of plans for this code, but we all know where that went.  Shame.  Best AI code out there.

  • Like 2

Share this post


Link to post
Share on other sites
10 minutes ago, Chainsaw Squirrel said:

Hmm first time seeing that .. sweet .. is this just another repost of the original or has been updated ??

It's had a handful of updates to increase compatibility with the current Exile version and a few bugs squashed.

  • Like 4

Share this post


Link to post
Share on other sites
20 hours ago, kuplion said:

It's had a handful of updates to increase compatibility with the current Exile version and a few bugs squashed.

Thank you for updating this and I see the Editor tool is included, Cool.

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.