Adding M2 Turret to Traders?

JackCisco

New Member
Hi!


As some people may know the DZMS uses M2 turrets in the large missions.
I would like to add these to traders, then use a logistics script so they may be transported.

However after adding it to the traders like this in the HeroWeapons.hpp:
Code:
    class M2StaticMG_base {
        type = "trade_any_vehicle";
        buy[] = {1,"ItemBriefcase100oz"};
        sell[] = {1,"ItemGoldBar10oz"};
    };


The RPT shows this:
Code:
15:47:09 "EPOCH SERVERTRADE: Player: [AW] Joe (76561198136905503) bought a M2StaticMG_base in/at Hero Trader for 1x ItemBriefcase100oz"
15:47:14 "PUBLISH: Attempt 3ae8dd00# 1069408: arrow_down_large_ep1.p3d REMOTE"
15:47:14 "HIVE: WRITE: "CHILD:308:11:M2StaticMG_base:0:2980:[267,[12915.7,12760.7,0.00296021]]:[]:[]:1:1291571276070355:""
15:47:22 "HIVE: WRITE: "CHILD:388:1291571276070355:""
15:47:22 "CUSTOM: Selected "6669""
15:47:22 Cannot create entity with abstract type M2StaticMG_base (scope = private?)
15:47:22 Cannot create non-ai vehicle M2StaticMG_base,
15:47:22 "PUBLISH: B 1-1-B:1 ([AW] Joe) REMOTE Bought M2StaticMG_base with ID "1291571276070355""

After I buy it, and obviously nothing spawns.
I have tried M2HD_mini_TriPod too, only to get the same error.

Any ideas on why this is happening? It is confusing to me that it can be spawned in missions but not when brought through a trader. I also couldn't find anything about spawning this in while looking through DZMS files.
Or any better methods?

This was merely an experiment and I have truly no idea if it will actually work. Thought it would be cool to use these as base defense, seeing as I have been shot out of my helicopter several times by AI.
If not then I guess the only other option will be to lift a RHIB onto your base or an M2 HWMMV.
 
i like this idea :) if you use Advanced alchemy building you could add it to that maybe,

anyway i would try using M2StaticMG_US_EP1 instead of M2StaticMG_base
 
Ah yes that would probably be a much better way to add it. Then it will be fixed in a spot and prevent people moving it where ever they want.
And it works with that class name. I couldn't seem to get that out of a google search, or I was being blind. Interestingly though, it actually locks the turret. Would perhaps be an interesting feature so you need a key to use it, however limiting the areas they can be deployed to plot pole zones only would be a greater desire.

Tomorrow I shall add it to the Advanced Alchemy Building script and see how that works.

Thanks! :D
 
@FallingSheep

This is confusing me so much.

I get this error:
3289a2ea60.png


But in my description.ext:
2ef2022cb6.png


My brain just says.. "wut."


The edits I made to the files to add turrets to Advanced Alchemical Building:

1d5b3efb99.png


822ff8aff8.png

04a6b16bc3.png


32fed31d8b.png

605c197abf.png


My brain is literally fuzzed at that error. I haven't made any changes to the description.ext and even with undoing all the changes shown above I still get the error and the server wont boot..


EDIT:
I shoved the } on the end of the line to see what would happen. It works. I have absolutely no clue why. Now I just need to figure out what is causing no categories to come up in topaz...

Can't seem to find what would cause it no categories to appear..
 
Last edited:
@FallingSheep

This is confusing me so much.

I get this error:
3289a2ea60.png


But in my description.ext:
2ef2022cb6.png


My brain just says.. "wut."


The edits I made to the files to add turrets to Advanced Alchemical Building:

1d5b3efb99.png


822ff8aff8.png

04a6b16bc3.png


32fed31d8b.png

605c197abf.png


My brain is literally fuzzed at that error. I haven't made any changes to the description.ext and even with undoing all the changes shown above I still get the error and the server wont boot..


EDIT:
I shoved the } on the end of the line to see what would happen. It works. I have absolutely no clue why. Now I just need to figure out what is causing no categories to come up in topaz...

Can't seem to find what would cause it no categories to appear..
can yo post your description.ext
 
Back
Top