Commit Graph

74 Commits

Author SHA1 Message Date
Verkister
c9873ff9ed Fixes some unseen combat ai jank (#8116)
* Fixes some unseen combat ai jank

haha lack of exit consition go brrrr

* wow the conflict resolve editor is a piece of crap
2021-06-13 20:31:27 -09:00
Aronai Sieyes
26940c7e12 Various small fixes (#8112)
* Make nurse spiders forget target

* Tweak or break AI

* Fixes ice edges

* Allow better mapped-in marker beacons

* Allow mapped-in graffiti

* Add spaceship hull corners

* Improve hull corner color finding slightly
2021-05-29 10:08:39 -09:00
Neerti
fdabe51ee8 Linter Introduction + Cleanup (#8085)
* Adds linter defines to repo.

* Uncomments linter defines already in the code.

* Resolves unreachable code linter errors.

* Nukes decade+ old syndie specops code except for computer since that's mapped in?????

* Resolves procs has no parent linter error.

* Proc signature fixes

* Bad comments

* "In" danger

* Type safety

* Implied nested list abuse

* Top level ..() usage

* Sleepy coder typos

* Invalid kwargs calls

* Pointless returns

* Linter hacks (see full message)

Byond doesn't care and it has no effect but linter doesn't like var/proc
for holding references to procs, despite that it's valid byond code.

Also, the linter seems to have serious issues figuring out relative
proc names. This commit is a sort of take-it-or-leave-it thing. It's not
required, it just cuts down on warnings, but this code is valid DM code.

* WHATEVER THIS IS

* Trick dreamchecker linter into ignoring this file's sins in it's weird use of vars

* Fix list decoration syntax - Its a list, not list of lists

- To declare that a var is a list you can `var/list/blah = list()` syntax or the `var/blah[0]` syntax.  Both do exactly the same thing. But if you do `var/list/blah[0]` that is just like doing `var/list/list/blah = list()`

* Hopefully stops the ai holder subtype folder from going quantum and sometimes changes capitalization over time, and incidentally causing 20+ linter errors.

* Fixes unwrapped negated object in list linter error.

* Resolves colon-like list accessing linter error.

* Turns linter on in linter config.

* Fixes closet indentation properly and cleans up suit storage unit switch.

Co-authored-by: Aronai Sieyes <arokha@arokha.com>
Co-authored-by: Leshana <Leshana@users.noreply.github.com>
2021-05-25 18:17:26 -09:00
atermonera
485e5f6549 Simplemobs seek lost targets 2021-04-26 01:50:03 -09:00
atermonera
4196b10f03 Non-mobs aren't allies 2021-03-22 20:27:10 -09:00
Unknown
b51471b739 Add mass edit functionality to ai_holder datums
Ports https://github.com/VOREStation/VOREStation/pull/9737 from VOREStation
2021-02-21 11:24:52 -05:00
Rykka
0f9cf07d7c Fixes Mercs threaten timers, and threaten sounds
The default "threaten" timer was 3 seconds, meaning that as soon as world.time advanced beyond that, the merc would shoot you. If there's TIDI/lag or other issues, you'd immediately end up getting shot.

30 seconds is more reasonable, allows you time to back away from the merc without being shot at, and it keeps the mercs from being cheesed easily.

This also fixes the merc aggression sounds. Actual voicelines incoming once I get help from a contributor!

Mercs are also SMART now and will not move if confused/disoriented.
2020-08-23 18:57:51 -04:00
Neerti
e3d24906d9 Fixes Arachnophobia Exploit (#7410)
* Fixes arachnophobia exploit.

* Forgot to remove copypasta.
2020-08-06 21:08:00 -07:00
Rykka
28a7698b9e Port lots of things that had to wait on alerts
Adds a HUD for observers
Adds a HUD for rigs and mechs
Adds up/down buttons for AI hud
Add more tg style alerts
Fix some bugs with the tg alerts
Improve icon_states usage by caching it
Redo how respawning works, add a button to ghost hud for it
2020-07-30 16:23:32 -04:00
Aronai Sieyes
ad75bb86bd Alter playsound paradigm 2020-05-19 11:06:28 -04:00
Atermonera
8c938c5302 Merge pull request #7120 from Verkister/patch-37
Fixes player control not disabling mob AI
2020-05-15 17:56:36 -07:00
Aronai Sieyes
a8f3a0a7a0 Refactor move/click code 2020-05-15 10:49:27 -04:00
Verkister
e0d1520116 Fixes player control not disabling mob AI
Fixes #7073
2020-05-08 23:48:41 +03:00
Unknown
a730fea8d6 Missing fix 2020-05-03 13:09:40 -04:00
Unknown
752d7df6ac Fixes some Xenobio bugs
- Slimes now switch to friendly intent if pacified or disciplined
- Fixes a bug where slimes sometimes did not get AI when spawned in
2020-05-03 13:04:17 -04:00
Aronai Sieyes
c170436256 Refactor AI into two subsystems 2020-04-27 10:11:49 -04:00
Mechoid
001d5b091f Merge branch 'master' of https://github.com/PolarisSS13/Polaris into ATaleofBlobsandMen
# FixConflicts:
#	polaris.dme
2020-04-09 22:55:42 -07:00
Atermonera
1c23cabe04 Fixes slime enrage message (#6890)
* /datum/ai_holder/simple_mob/xenobio_slime doesn't tell everyone it's angry

* non-red slimes still give big warning on enrage
2020-03-29 14:54:20 -07:00
Mechoid
cf5d750519 Blobwork, Human mobs with AIs can attack, AI mobs consider blobs to be enemies unless they're Blob faction. 2020-03-20 12:29:40 -07:00
Aronai Sieyes
a3ef4b7f71 Remove unintentional debug statement 2020-03-18 09:54:55 -04:00
Aronai Sieyes
255c0970ca AI, give up breaking things if there's nothing to break 2020-03-17 21:58:16 -04:00
Atermonera
a5b0c9126a Merge pull request #6789 from VOREStation/pol-busysignal
Moving AI busy check so it's performed less and more centrally
2020-03-05 12:13:42 -08:00
Aronai Sieyes
74e71454bd Fix AI busy 2020-03-05 00:04:07 -05:00
Aronai Sieyes
149215995b AI Tweak bugfixes (#6779) 2020-03-03 12:52:52 -08:00
Aronai Sieyes
5eb30f0017 Further improve buildmode "RTS" ai mode 2020-02-23 11:54:05 -05:00
Aronai Sieyes
8e973f5e4e Readd some AI features
Like calling for help and investigating the last known position of enemies
2020-02-23 11:53:55 -05:00
Aronai Sieyes
717a4cc585 Add buildmode AI status indicators 2020-02-23 11:52:34 -05:00
Atermonera
176444e1a7 Merge pull request #6512 from Verkister/patch-29
Sanity check for orphaned ai_holder runtimes
2019-11-05 13:36:49 -09:00
Verkister
12d7ee897c Update ai_holder_movement.dm 2019-11-01 08:15:00 +02:00
Verkister
992400c215 Sanity check for orphaned ai_holder runtimes
Seems like ai_holder datums take their own sweet time deleting themselves after losing their parent mobs, causing a ton of null holder runtimes during that time window. Now they should be able to sense that their holder mob is gone and avoid that.
2019-10-31 20:26:24 +02:00
Verkister
2ab1d9cfb8 Fixes simplemobs wandering when grabbed.
The mobs that are not supposed to wander when pulled now also stop wandering when pulled with a grab.
2019-10-31 12:03:29 +02:00
Nalarac
9f1443c792 Melee Mobs Can Attack with Pointblank
If a mob has pointblank, but isn't ranged, it can now attack again.
2019-07-18 14:02:08 -05:00
Atermonera
bf6d5f8542 Merge pull request #6282 from Mechoid/TryToFixSlimes
Try to fix slimes and Prometheans.
2019-07-11 19:56:53 -08:00
Mechoid
009152a3f0 Try to fix slimes. 2019-07-08 19:58:21 -07:00
Andrew
86a1b63307 Actually make handle_corpse do something
Whoops
2019-07-08 18:45:08 -05:00
Andrew
c6b040db7b Allows AI to Acknowledge Corpses
Creates the var "handle_corpse"
2019-07-08 18:35:47 -05:00
Mechoid
4429fd7ecb Sif Animal Expansion 1 (#6038)
* Begins work on the Sivian animal expansion.

* Adds the Leech, Shimm, Duck, Raccoon, Frostfly, Glitterfly, and Kururak.

* Changelog.

* FixFix

* Fix possible slur, fix leech.

* Fixfix2
2019-05-21 16:57:34 -07:00
Heroman3003
535349dcce Fixes ai priority targeting 2019-04-25 10:21:44 +10:00
Mechoid
29c5ee05e3 Xenobio slimes now get grudges against Prometheans that attack them, making them valid targets for that slime as long as it lives. 2019-04-21 16:06:17 -07:00
Novacat
4acb50dabd Ports Stasis Cages from Baystation (#6017)
* Ports Stasis Cages from Baystation
2019-03-30 11:55:09 -07:00
PrismaticGynoid
e66937931d Adds 3 new crashed escape pod PoIs 2019-03-15 17:33:45 -07:00
Neerti
d5983795a2 Fixes blast door issue, and slimesky being considered unjustified. (#5966) 2019-02-18 00:56:05 -08:00
Neerti
a91fe1e9a5 Fixes turrets and makes mob AI shooting a little smarter. 2019-02-10 23:30:58 -05:00
Neerti
9527ab2568 Fixes some AI bugs. (#5895)
* Fixes some AI bugs.

* Fixes new bug introduced in this PR.
2019-01-23 10:54:01 -06:00
Anewbe
152f76c64b Attackers uses strings, not references 2019-01-18 16:51:03 -06:00
Anewbe
59d954fd59 Fixes a few mob AI bugs 2019-01-15 16:50:07 -06:00
Atermonera
61df5b880b Merge pull request #5762 from kevinz000/initialize_caps
Capitalizes initialize() to Initialize() because Destroy() is capitalized
2018-12-08 15:44:41 -08:00
Neerti
5e2d8bbdee Merge pull request #5756 from Anewbe/mob_ai_fixes
Fixes a few AI bugs
2018-12-07 12:43:59 -05:00
kevinz000
c2c688c4c8 caps 2018-12-06 18:34:37 -08:00
Neerti
ac5fdfcd9e Fixes several bugs with AI mobs 2018-12-04 19:00:21 -05:00