Jump to content
Sign in to follow this  
BigEgg

[Release] BigEgg's NW Aircraft Trader

Recommended Posts

Since it seems that Gr8 decided to leak GG's old files on Github, it has come to my attention that a majority of the custom building additions that I made and put on GG are now being used on quite a few servers. Due to this, I might as well release them on here.

 

Below is the Air Dealer I made for NWAF, it is one of my favorites:

 

Pics:

http://imgur.com/a/gq9dq

 

Code:

 

private["_object", "_objects"];

_objects = [
    ["Land_Mil_ControlTower", [5037.8691, 9697.9629, 6.1035156e-005], 60.40699],
    ["C130J_wreck_EP1", [5016.1558, 9688.5039, 3.0517578e-005], -160.13626],
    ["76n6ClamShell", [5047.6226, 9682.001, 6.1035156e-005], 330.77472],
    ["MAP_t_pinusN2s", [5045.2441, 9708.0488, 0.00012207031], -15.16834],
    ["Mi8Wreck", [5047.7671, 9715.6377, -3.0517578e-005], -38.521976],
    ["MAP_t_pinusN2s", [5026.0566, 9697.4912, 6.1035156e-005], -15.16834],
    ["Land_covering_hut_big_EP1", [5042.3867, 9709.9385, 0], -142.72462],
    ["Land_Fire_barrel_burning", [5040.7744, 9707.665, -3.0517578e-005], 0],
    ["Land_Fire_barrel_burning", [5044.0742, 9712.1631, 3.0517578e-005], 0],
    ["MAP_SidewalkClearLong", [5034.7412, 9710.0078, 0], -30.368095],
    ["MAP_SidewalkClearLong", [5032.3755, 9714.0713, -6.1035156e-005], -30.533873],
    ["HeliHCivil", [5022.209, 9731.9844, 6.1035156e-005], -29.740984],
    ["FlagCarrierWhite_EP1", [5044.896, 9713.5879, 6.1035156e-005], 0],
    ["Land_Ind_TankSmall", [5026.7256, 9711.9209, 3.0517578e-005], -30.01861]
];

{
    _object = createVehicle[_x select 0, _x select 1, [], 0, "CAN_COLLIDE"];
    _object setDir(_x select 2);
    _object setPos(_x select 1);
    _object addEventHandler["HandleDamage", {
        false
    }];
    _object enableSimulation false;
}
count _objects;

private["_trader", "_traders"];
_traders = [
    ["Worker2", [5042.2383, 9710.0039, -339], -52.404758]
];

{
    _trader = createAgent[_x select 0, _x select 1, [], 0, "CAN_COLLIDE"]; {
        _trader removeMagazine _x
    }
    count magazines _trader;
    removeAllItems _trader;
    removeAllWeapons _trader;
    removeBackpack _trader;
    _trader switchMove "AmovPercMstpSlowWrflDnon";
    _trader setcaptive true;
    _trader setDir(_x select 2);
    _trader setVehicleInit "this disableAI 'ANIM'; this disableAI 'AUTOTARGET'; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0; this allowDamage false;";
    _trader setUnitAbility 0.6;
    _trader enableSimulation false;
}
count _traders;

processInitCommands;

Just call it like you do with your other building files.

 

Original Beidi file:

https://drive.google.com/file/d/0B80xnidB7gMdck9DbGFYWDhFcXc/view?usp=sharing

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...