Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Securitrons Need to be Patched
#24
One thing to keep in mind that bot code is one of the more janky piles of code, and the thing that checks to see if any specific thing is nearby is fairly expensive to run. For a bot to check if it bumped into another bot, there're a few ways we can go about this:

> Have the bot scan the contents of the tile its on every step and check if any of those things are the same type as the bot.

> Make a global list of all the bots' locations, and have the bots check this list if its location matches any of the other ones, as well as knowing which entry on the list is their own and disregarding that.

Then, run a proc that makes the bot fuck around, set a var that says it bumped into a bot, then unset that var in a few seconds so it doesnt keep bumping into the same bot endlessly.

At any rate, it'd probably be obnoxious to code wouldn't result in anything that'd fix the issues here.

I prefer how they used to work, that they were easy to avoid, group or not, but still needed to be avoided. I could change the way the stunner works to force the bot to stop, then run a fairly short actionbar to stun the person.
Reply


Messages In This Thread
Securitrons Need to be Patched - by Aligote - 10-14-2020, 11:40 AM
RE: SECURITRONS NEED TO BE PATCHED - by Sundance - 10-14-2020, 11:58 AM
RE: SECURITRONS NEED TO BE PATCHED - by Carbadox - 10-14-2020, 12:01 PM
RE: SECURITRONS NEED TO BE PATCHED - by Sundance - 10-14-2020, 12:07 PM
RE: SECURITRONS NEED TO BE PATCHED - by vampirate - 10-14-2020, 12:08 PM
RE: SECURITRONS NEED TO BE PATCHED - by KikiMofo - 10-14-2020, 12:31 PM
RE: SECURITRONS NEED TO BE PATCHED - by Aligote - 10-14-2020, 02:35 PM
RE: SECURITRONS NEED TO BE PATCHED - by vampirate - 10-14-2020, 03:19 PM
RE: SECURITRONS NEED TO BE PATCHED - by KikiMofo - 10-14-2020, 08:49 PM
RE: SECURITRONS NEED TO BE PATCHED - by Lady Birb - 10-14-2020, 09:20 PM
RE: Securitrons Need to be Patched - by Superlagg - 10-15-2020, 01:30 PM
RE: Securitrons Need to be Patched - by Superlagg - 10-18-2020, 12:22 PM
RE: Securitrons Need to be Patched - by Chayot - 10-15-2020, 02:31 PM
RE: Securitrons Need to be Patched - by vampirate - 10-16-2020, 07:12 AM
RE: Securitrons Need to be Patched - by jflan17 - 10-16-2020, 10:24 AM
RE: Securitrons Need to be Patched - by Mouse - 10-17-2020, 06:55 AM
RE: Securitrons Need to be Patched - by vampirate - 10-17-2020, 07:17 AM
RE: Securitrons Need to be Patched - by KikiMofo - 10-17-2020, 11:53 AM
RE: Securitrons Need to be Patched - by Superlagg - 10-17-2020, 01:15 PM

Forum Jump:


Users browsing this thread: 7 Guest(s)