Jump to content

Advanced Basebuilding settings


He-Man

Recommended Posts

I changed some codes for Basebuilding, because the following Problems:

- A Group can build as much Shelfes, Lockboxes, Safes... as they want. I wanted a config for this

- I wanted a more detailed config for building elements.

- When building the last building element (300/300 for example), the element stucks, jammer overloaded comes up an the building element can't be remooved until restart

- When building a 2nd lockbox outside the jammer range, same as above. The second lockbox stucks instant after creating.

 

Now I made these changes:

- override the first "if !(_objType call EPOCH_isBuildAllowed) exitWith{};" in EPOCH_simulSwap and EPOCH_staticMove. This is necessary, because the Check comes up, before the Element has changed from finished element to simulated element. So it will be count as a finished Element at this point.

- added "if !(_objType call EPOCH_isBuildAllowed) exitWith{true};" in EPOCH_fnc_SelectTargetBuild (because I override it in EPOCH_simulSwap.

- added a config ARRAY!!! for buildingCountArray and storagecountArray in CfgEpochClient

- buildingCountArray[] = {x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x}; buildingcountlimit: - 1st number: group consists 1 player / 2nd number group consists 2 player...

- storagecountArray[] = {x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x}; same as above, but for storages

- inserted a building limit for storages (Tipi, Shelfes, Lockboxes, Safes, Workbenches)

- inserted foundations in _objectCount

- added building limit to Frequency overloaded message

known issues:

- When creating second lockbox outside jammer od 300/300 element inside jammer, after a few seconds (10s counter!) the element falls down. But it is useable / removeable now.

 

my cfgepochclient.hpp entry as an example:

buildingCountArray[] = {80,80,140,140,140,200,200,200,200,300,300,300,300,300,300,300};

storagecountArray[] = {10,20,30,40,50,60,70,80,90,100,110,120,130,140,150,160};

 

Is it possible to include this in the next  build?

In standard settings, you can set the variables to a high level, so without changing them, they have no effect. 

Here you can find the files:

EPOCH_isBuildAllowed.sqf: http://pastebin.com/sQdVUKyx

EPOCH_fnc_SelectTargetBuild.sqf: http://pastebin.com/VZbF3L24

EPOCH_simulSwap.sqf: http://pastebin.com/KUkMGvS1

EPOCH_staticMove.sqf: http://pastebin.com/4M71u0B6

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...