Jump to content

He-Man

Developer
  • Posts

    808
  • Joined

  • Last visited

  • Days Won

    63

Status Updates posted by He-Man

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

    1. He-Man

      He-Man

      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};

×
×
  • Create New...