Commit Graph

7 Commits

Author SHA1 Message Date
DamianX
4a5f2e40a8 Ported component AI to the new component system (#30751)
* wip new component ai

* wip 2

* he lives

* fixes

* comment
2021-09-22 14:30:47 -05:00
DamianX
5399c3b0f3 Fixed a bunch of linter warnings (#26360)
* Fixed a bunch of linter warnings

* Fix everything, maybe break something

* Fixed Time Stop not being cast by Arcane Golems

* Fixed arguments of remove_from_storage

* Fixed gun/afterattack arguments

* Fixed gun/Fire arguments

* Fixed arguments to candle/light and mob/emote

* Fixed arguments to simple_animal/revive, simple_animal/gib, robot/drop_item, mob/flash_eyes
2020-05-03 16:06:40 -03:00
ShiftyRail
9c776718c4 Fixes some runtimes with bots. (#26201) 2020-04-14 14:29:29 -03:00
ShiftyRail
a98d378854 AStar subsystem for bots (#26157)
* Adds an ASTAR pathing sub

Adds a little crab bot that Astar paths to wherever you click on the screen

Gunks up ASTAR with a bunch of debug (colouring tiles that are processed)

* Renames some variables for readability

Thanks to having renamed the variables, repairs the golden throne as the error was easier to find

* removes or locks away debug

* Astar path making sub

* Converts bots over to the new ASTAR logic, WIP as fixing race conditions

* Tear it down, and start again

* Fixes patrols and regular path making.

Cleanbots and floorbots now work.

Makes Old_target into a list of old targets, to avoid flip-flopping between two impossible tasks

* New arg for bots, step_for, int. Patrols and paths will make this many steps per call

Fixes farmbots

Fixes the cleanbots in ironchef and spessmart from doing weird stuff

* cleanbots

* Dracula bot

* ed bot, formatting

* ed bots, fixes

* medbots maybe

* mulebots part1

* trying to make it work

* mulebots part 2

* might help with a funtime

* it took me 8 hours to fix this stupid thing. also removes debug

* they're writing songs of love, but not for me :(

* less shit

* It WORKS mostly

* more details, less debugs

* AAAAH

* IT WORKS

* slowbots

* New subsystem, documentation

* Better

Co-authored-by: madmanmartian <lazyrobot@outlook.com>
2020-04-12 20:58:37 -05:00
MadmanMartian
3e6e7f1cee Component processing subsystem (#19506)
Moves component processing to a subsystem, rather than have to trawl through life and add something to fire it each time in every override that doesn't call the parent.
2018-08-31 10:33:52 -03:00
I-VAPE-VOX-CLOACA-EVERY-DAY-OF-MY-LIFE
8d5f78b8b0 Smooth movement for simple mobs, bots, ventcrawling, singulo, mechs, and motor wheelchairs (#19196)
* Smooth movement for mech eye

* Arguments for ForceMove

* Smooth motor wheelchairs

* Smooth ventcrawling eye

* Singularity uses smooth novement

* Simple mobs and simple bots use smooth movement
2018-08-08 17:56:35 -03:00
MadmanMartian
6ccd5c3019 Messing with component mobs further (#17770)
* moves the brain component to living-level. Makes some tweaks to NPC AI so they know they're being attacked by something

* that took a lot more than I expected to fix the melee

* adds the weapon throw attack. Fixes where you could only ever have one attack type for your NPC. Fixes a bad usr argument in throw.

* /*DOES NOT WORK*/
Changes mob function so it uses a movement component, rather than it being under the mob component.

Adds the Astar mob movement component.

Adds Receive and Return signal handling. moves get def zone to this system.

* movement through astar now works.

* cleanup of debug

* Damians requested changes

* That doesn't work.
2018-07-09 09:50:39 +02:00