132nd-vWing / OPBR-Brief

Operation Black Rain - Brief and projectpage
0 stars 0 forks source link

FEATURE: Set SAM's to "random" behaviour #10

Open 132ndNeck opened 5 years ago

132ndNeck commented 5 years ago

Request is to set certain SAM groups to operate in "random" behaviour (As opposed to the "trap" mode in Issue #8 )

In random mode the SAM group behaves in the following manner:

thebgpikester commented 5 years ago

first two points doable fairly simply by having these named with a prefix and have that script run a timer and flip the switches for move, nothing and illuminate.

The last one is the more challenging though. It's probably easier to abstract if any blue are in a certain range then switch on. Just SA6, SA8m SA11, SA15, SA19 named mobile-SAM-x mobiles = SET_GROUP:New():FilterPrefixes("mobile-SAM-"):FilterStart() Schedule

  1. For each SAM
  2. Any blue in range of me? If so, ROEWeaponsGreen()
  3. Roll dice. 50% on or 50%
  4. If on, stays on
  5. If off, moves ROEWeaponsRed() RouteToVec2(random point in small zone) Repeat every 60-180 seconds

wont be entirely accurate to the specification but that's the jist

132ndNeck commented 5 years ago

Would this be resource intensive for the server?

thebgpikester commented 5 years ago

probably OK, unless lots of them moving at once. But dont expect lots of sams doing this

132ndNeck commented 5 years ago

No, do not expect a lot of SAM groups to do this, but to have the ability, so that the players do not know 100% what to anticipate from the IADS, making it more lethal