Commit Graph

85 Commits

Author SHA1 Message Date
MistakeNot4892
d6fdf48a05 Tweaking drake AI further. 2022-08-27 15:41:07 +10:00
MistakeNot4892
0561e2a3c8 Tweaking drake AI. 2022-08-17 00:03:05 +10:00
MistakeNot4892
dcbf10e28a Added grafadreka.
More work on drakes.

Added grafadreka den site.

Working on refining drake AI.

Fixing drake languages.
2022-08-14 01:26:09 +10:00
spookerton
78db65f13f move some readme files in .dm sources into .md 2022-04-26 21:17:23 +01:00
Atermonera
21bd8477c7 Merge pull request #8531 from Spookerton/spkrtn/sys/global-agenda
updates all bare globals to use /global/ semantics, and all shared members to /static/
2022-04-24 19:56:07 -08:00
spookerton
beec187978 clean up odd list attribute order, add tests 2022-04-24 07:54:35 +01:00
spookerton
1ccb2df2de trivial 1:1 overlays -> overlay proc changes
NB. In some cases we go from a more complex image() to a single icon_state string and I assume this works for every case but do not care to check because of the sheer scale of extra fiddly effort. Buyer beware, not my code.
2022-04-24 07:50:21 +01:00
Sypsoti
8e92d375c4 AI code but cooler 2022-04-16 09:24:33 -08:00
Sypsoti
2fae0d653d several improvements: WIP 2022-04-16 09:24:33 -08:00
spookerton
c82c18769f improved fire loop behavior of SSai & SSaifast 2022-04-09 11:31:39 +01:00
Atermonera
9c3bc8a017 Adds sanity checks to ssai ai_holders 2022-01-18 18:01:49 -08:00
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