-
Posts
808 -
Joined
-
Last visited
-
Days Won
63
Content Type
Profiles
Forums
Articles
Status Updates posted by He-Man
-
Hi vbawol,
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.
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