Aircraft Carrier loot positions.

lazyink

Valued Member!
Staff member
I finally managed to get the loot positions for the LHD , and after the loot positions, new loot table and loot classs for the carrier were added to the hpp files, the LHD does spawn zombies in the water, but no loot that I can find.

I have a feeling that I need to define the class somewhere else, but apart from that, I have no idea why this is spawning z's but no loot!

Any ideas?
 
Maybe it is spawning the loot into the water? Not on the surface but on the ground.
 
It shouldn't be. The loot positions are for inside the LHD , not a map worldspace, so the loot should spawn relative to the LHD rather than to the ground.
 
Just to explain what I have done,

I have added the LHD loot positions to the CfgBuildingPos.hpp

Code:
    class Land_LHD_house_1: Carrier {
        lootPos[] = {{7.03467,-3.85144,55.80088},{-5.24951,-4.0293,55.87479},{-8.35547,-15.0105,56.19898},{1.46973,-7.62476,56.14285},{10.3423,-3.7583,74.0386},{5.56738,-4.36592,74.4561},{18.0376,-4.50415,73.7435},{8.18262,-16.6764,80.7902},{9.92041,-10.7733,80.0377},{12.0806,-16.1384,80.4988},{15.751,-19.5176,66.8451}};
        lootChance = 1;
    };
    class Land_LHD_2: Carrier {
        lootPos[] = {{-18.7207,21.0803,76.7471}};
        lootChance = 1;
    };
    class Land_LHD_6: Carrier {
        lootPos[] = {{-3.03564,-16.5674,82.8217},{-6.69873,-16.3793,83.1615}};
        lootChance = 1;
    };
    class Land_LHD_elev_R: Carrier {
        lootPos[] = {{20.1255,-0.354858,85.3469}};
        lootChance = 1;
    };
    class Land_LHD_house_2: Carrier {
        lootPos[] = {{-1.80127,-5.62732,55.92738},{-5.84717,6.41016,55.52392},{15.5205,-1.38013,62.4102},{9.66016,-1.55664,62.5189},{12.7695,4.48242,62.255},{14.9766,13.6207,61.6659},{19.1577,14.4927,61.5493},{21.1787,9.00769,65.6585},{12.9468,18.5112,70.4233},{9.4082,-1.43701,71.4673},{17.3555,-8.15857,74.4478},{13.8301,-4.60852,78.821},{-16.9253,-19.6313,63.1851},{10.0269,-18.606,63.6471}};
        lootChance = 1;
    };
    class Land_LHD_1: Carrier {
        lootPos[] = {{15.1196,16.3479,76.7699},{19.4146,-3.37622,75.7863},{-14.3667,15.4812,76.303}};
        lootChance = 1;
    };

Then I have added the class Carrier to CfgBuildingLoot.hpp:

Code:
class Carrier: Default {
        zombieChance = 0;
        minRoaming = 0;
        maxRoaming = 0;
        zombieClass[] = {"z_soldier_pilot"};
        lootChance = 1;
        lootPos[] = {};
        lootType[] = {
            {"M4SPR","weapon",0.01},
            {"M4A1_HWS_GL_SD_Camo","weapon",0.01},
            {"M16A4_ACG_GL","weapon",0.05},
            {"M24_des_EP1","weapon",0.02},
            {"M4A1_RCO_GL","weapon",0.08},
            {"M16A2","weapon",0.05},
            {"M16A2GL","weapon",0.05},
            {"M249_DZ","weapon",0.01},
            {"M9SD","weapon",0.02},
            {"Skin_Sniper1_DZ","magazine",0.02},
            {"Skin_Camo1_DZ","magazine",0.03},
            {"Skin_Soldier1_DZ","magazine",0.04},
            {"M4A1_Aim","weapon",0.02},
            {"M24","weapon",0.02},
            {"M1014","weapon",0.07},
            {"DMR","weapon",0.02},
            {"M4A1","weapon",0.05},         
            {"G36C_camo","weapon",0.03},
            {"G36A_camo","weapon",0.03},
            {"G36K_camo","weapon",0.03},
            {"glock17_EP1","weapon",0.07},
            {"M240_DZ","weapon",0.03},
            {"M4A1_AIM_SD_camo","weapon",0.04},
            {"M16A4_ACG","weapon",0.05},
            {"M4A1_HWS_GL_camo","weapon",0.02},
            {"Mk_48_DZ","weapon",0.02},
            {"M4A3_CCO_EP1","weapon",0.03},
            {"AmmoBoxSmall_556","object",0.04},
            {"AmmoBoxSmall_762","object",0.02},
            {"ItemFlashlightRed","military",0.05},
            {"ItemKnife","military",0.05},
            {"ItemGPS","weapon",0.03},
            {"Binocular_Vector","military",0.05},
            {"DZ_CivilBackpack_EP1","object",0.08}, // 24
            {"DZ_Backpack_EP1","object",0.07}, // 24
            {"PipeBomb","magazine",0.03},
            {"M40A3","weapon",0.02},
            {"30Rnd_556x45_G36SD","magazine",0.05},
            {"","carrier",0.70},
            {"","military",0.50}
        };
    };

Finally, I have also added a loot class, again called carrier, to the CfgLoot.hpp

Code:
    carrier[] = {
            {"ItemBandage",0.3},
            {"ItemPainkiller",0.1},
            {"ItemBloodbag",0.1},
            {"ItemSodaCoke",0.5},
            {"FoodCanBakedBeans",0.5},
            {"ItemAntibiotic",0.5}
    };

As the deck of the carrier sits at about 50m, I adjusted the Z heights to be the default+50m, but still no luck!

Any ideas?
 
i am working very hard on unbanning things serverside and adding them to the server ive tried and failed a lot of times but i will keep trying and then i will share it with the community .
 
why do you set lootChance in the lootpos file while it's already defined in the carrier class?
 
I am also working on this to create loot on the boat....but even though i set the height of the spawned loot....they spawn at the bottom of the ocean....
Go to the nose of the ship (maybe 10-20m further) and get in the water (use god mode so you dont die) then wait for the wave to come to eye level and look bellow the ship.....That where all my loot is :/

I used a different approach than editing cfgvehicles...i copied the helli crash script and created a new .sqf that i run...that will spawn a care package on the ship.....But like i said...its at the bottom of the ocean.
 
Yes would recomnend looking into breaking point codes, i am working on making vehicles stay on the carrier after restart
 
I suggest you look at the breaking point code :) they have added in an aircraft carrier with loot.
(I can always hope for a response)
Looking around I see that breaking point moved on to Arma3. They don't seem to have the arma2 code around anymore. Does anyone happen to have the carrier code form breaking point?
 
Back
Top