Jump to content

Expanded Building Loot Spawn Files


General Zaroff

Recommended Posts

The building with MBG_Killhouse_2_InEditor may also be called land_mbg_killhouse_2 in your database or building scripts. This is why there's a second class construction in the CfgBuildingPos.hpp file that looks like this:

 

class land_mbg_killhouse_2: MBG_Killhouse_2_InEditor {};

 

... which tells the loot system to treat any instance of the building being called the second name the same as the first.

 

- e

Link to comment
Share on other sites

The building with MBG_Killhouse_2_InEditor may also be called land_mbg_killhouse_2 in your database or building scripts. This is why there's a second class construction in the CfgBuildingPos.hpp file that looks like this:

 

class land_mbg_killhouse_2: MBG_Killhouse_2_InEditor {};

 

... which tells the loot system to treat any instance of the building being called the second name the same as the first.

 

- e

Ahhh, so I should have left that part in, huh?

 

Thanks for your quick response! ;)

 

EDIT- So I just added all the code that was included in the script and pasted it into mine, and got the 'Waiting for Host' error. I noticed that the code has the building numbers a bit...off?:

 

class land_mbg_killhouse_3: MBG_Killhouse_3_InEditor {};
class MBG_Killhouse_4_InEditor : Military {
lootChance = 0.5;
lootPos[] = {
{-5.771,-4.366,-3.843},{-5.034,-0.855,-3.843},{-5.611,2.826,-3.843},{-5.56,6.752,-3.843},{0.806,4.743,-3.843},{6.688,6.477,-3.843},
{7.413,-0.894,-3.843},{4.744,1.314,-2.119},{0.52,-5.068,-0.543},{-2.378,-4.263,-0.543},{-2.25,-0.022,-0.543},{7.028,-0.581,-0.543},
{5.938,-3.238,-0.543},{-6.629,3.109,-0.543},{5.538,6.209,-0.543},{4.413,4.298,-0.543}
};
lootPosZombie[] = {
{-5.034,-0.85,-3.843},{5.538,6.2,-0.543},{7.413,-0.89,-3.843},{7.028,-0.58,-0.543}
};
};
 
The script changed the number from 3 to 4? Or is that for the last line of script before it? 
Link to comment
Share on other sites

Well, since you had previously been working with killhouse2 and its class names, and since you show above the redundant class name redefine for killhouse 3 and the spec for the editor version of killhouse 4 ..... there could be any of 3 issues.

 

First, in the process of grafting this code in, you misplaced or deleted a bracket or semicolon somewhere.

 

Second, the system might not like the re-spec of killhouse3, since you like don't have a class definition of MBG_Killhouse_3_InEditor anywhere if you're just using the snippet above.

 

Third, I believe killhouse4 has a definition in the default files, which sends that loot to a Residential class spec. Thus, if you grafted in the code above, you've redefined the spec for killhouse4. 

 

Your report file will give you more details when you have a failure to join or a failure to start completely. I'm betting it's a problem with a redefine of killhouse4. For that matter, if you grafted in everything new from my files there may be other redefines that you need to comment out. I can't remember what they are besides killhouse4 .... so check that report file. It will tell you what the first problem is at least and you can go from there.

 

- e

Link to comment
Share on other sites

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
  • Advertisement
  • Discord

×
×
  • Create New...