Commit Graph

236 Commits

Author SHA1 Message Date
deltanedas 5c98b350a2
megafauna elimination mission and fish salv faction (#16720)
Co-authored-by: deltanedas <@deltanedas:kde.org>
2023-05-25 22:23:20 +10:00
Moony e92a8fedab
Refactor stations to properly use entity prototypes. (stationsv3) (#16570)
* Update StationSpawningSystem.cs

Web-edit to allow feeding in an existing entity.

* Update StationSpawningSystem.cs

value type moment

* Update StationSpawningSystem.cs

* Oh goddamnit this is a refactor now.

* awawawa

* aaaaaaaaaaa

* ee

* forgot records.

* no records? no records.

* What's in a name?

* Sloth forcing me to do the refactor properly smh.

* e

* optional evac in test.

* tests pls work

* awa

---------

Co-authored-by: moonheart08 <moonheart08@users.noreply.github.com>
2023-05-19 15:45:09 -05:00
metalgearsloth befb0900cf
Proximity beeper optimisation (#16507) 2023-05-17 23:55:25 +10:00
metalgearsloth 66ae137b70
Tie NPC services to plans (#16451) 2023-05-15 16:18:18 +10:00
Leon Friedrich 263e1761fc
Move jobQueue to engine (#16443) 2023-05-15 12:47:12 +10:00
deltanedas 1ca9328c15
fix fish petting (#16094)
Co-authored-by: deltanedas <@deltanedas:kde.org>
2023-05-05 23:03:46 +10:00
20kdc ad76739cc3
Refactor: Chat transmission ranges (+ a little preparation for downstream fork functionality) (#16026) 2023-05-04 12:08:08 -07:00
Kara 133cbcbe88
Special digestion & kudzu-eating (#16061) 2023-05-04 12:49:25 +10:00
deltanedas aceb354945
emag medibot to make it poison patients (#15377)
Co-authored-by: deltanedas <@deltanedas:kde.org>
2023-05-02 18:00:57 +10:00
metalgearsloth ca07522c03
NPC utility queries (#15843) 2023-05-01 14:57:11 -04:00
metalgearsloth 638009f5d3
Cleanbot tweaks (#15821) 2023-05-02 00:30:15 +10:00
AJCM-git 878c7c0b85
Moves buckling and vehicles to shared, some cleanup (#15923) 2023-05-01 17:04:23 +10:00
metalgearsloth d51d74d934
Content fixes for timeoffsets (#15934) 2023-05-01 14:49:25 +10:00
metalgearsloth ab9b5ac0b2
Remove deprecated NPC debug buttons (#15824) 2023-04-29 16:47:10 +10:00
metalgearsloth fda607b2f6
Fix NPC awake assert (#15783) 2023-04-25 22:33:13 +10:00
metalgearsloth 9361b0b469
NPC obstacle fixes (#15645) 2023-04-22 18:57:19 +10:00
metalgearsloth e780c6a98a
Fix NPC door prying (#15605) 2023-04-21 15:05:29 +10:00
metalgearsloth 122350f19c
Salvage expeditions (#12745) 2023-04-20 10:43:13 +10:00
deltanedas 457af3ee30
pet dehydrated fish to make him nice to you (#14709)
* petting fish to make him nice to you

* fix fishe, refactor a bit

* fishe

* pro

* feedback, for now

* refactor

* pro

---------

Co-authored-by: deltanedas <@deltanedas:kde.org>
2023-04-13 18:17:25 -07:00
metalgearsloth 3840255ebb
Fix thindow pathing (#15349) 2023-04-12 23:50:07 +10:00
DrSmugleaf 34bcd042d1
Remove combat mode component reference (#15206) 2023-04-08 13:16:48 -07:00
metalgearsloth 9b616784ed
Fix NPC arrival distance for nodes (#15193) 2023-04-07 20:54:20 +10:00
Leon Friedrich 19277a2276
More DoAfter Changes (#14609)
* DoAfters

* Compact Clone()

* Fix mice and cuffables

* Try generalize attempt events

* moves climbabledoafter event to shared, fixes issue with climbable target

* Fix merge (cuffing)

* Make all events netserializable

* handful of doafter events moved

* moves the rest of the events to their respective shared folders

* Changes all mentions of server doafter to shared

* stop stripping cancellation

* fix merge errors

* draw paused doafters

* handle unpausing

* missing netserializable ref

* removes break on stun reference

* removes cuffing state reference

* Fix tools

* Fix door prying.

* Fix construction

* Fix dumping

* Fix wielding assert

* fix rev

* Fix test

* more test fixes

---------

Co-authored-by: keronshb <keronshb@live.com>
2023-04-02 21:13:48 -04:00
metalgearsloth b5a33ea7ab
Avoid NPCs getting stuck around tables (#14807) 2023-03-23 23:53:17 +11:00
metalgearsloth 4151b31b31
Clear cached NPC factions on refresh (#14762) 2023-03-22 15:58:23 +11:00
metalgearsloth e93d5113ad
Remove .Owner from melee weapons (#14600) 2023-03-12 15:56:05 +11:00
metalgearsloth 330bb7bb14
Remove gun .Owners (#14585) 2023-03-11 20:08:22 +11:00
metalgearsloth 6157dfa3c0
Salvage dungeons (#14520) 2023-03-10 16:41:22 +11:00
metalgearsloth 28dbbbb734
Add NPC stuck detection (#14410) 2023-03-05 16:13:09 +11:00
metalgearsloth 344238c0f1
Make NPC steering actually debuggable (#14142) 2023-02-17 12:30:10 +11:00
metalgearsloth 0a9da80058
Steering tweaks (#14140)
- Fix the direct-path so NPCs. This is most noticeable when moving diagonally on planetmaps (given the current pathfinder is cardinal)
- Reduce static collision avoidance weight and distance. This seems to reduce instances of getting stuck on railings.
2023-02-16 08:24:57 -06:00
metalgearsloth 99dfe5694a
More NPC steering tweaks (#14119) 2023-02-15 16:54:06 +11:00
Vordenburg 4183b5f449
Fire MeleeHitEvent on misses. (#12867)
* Fire MeleeHitEvent when there are no targets.

* Prevent certain weapons from activating if they had no hit entities on hit.

* Prevent miss events from firing when target is yourself or was deleted.

* Use .Value as Target is already known not to be null.

* uid changes

---------

Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
2023-02-13 12:55:39 +00:00
metalgearsloth c460757ab8
Always reload NPCs on prototype reload (#13999) 2023-02-09 01:01:27 +11:00
metalgearsloth 6b6c6b1c9f
Fix NPC prototype reloads (#13981) 2023-02-07 14:27:34 -07:00
metalgearsloth 2ea4538c3a
Don't reload NPCs unless necessary (#13978) 2023-02-07 17:35:32 +11:00
Visne c6d3e4f3bd
Fix warnings and code cleanup/fixes (#13570) 2023-01-19 13:56:45 +11:00
Jezithyr eeb5b17b34
Mobstate Refactor (#13389)
Refactors mobstate and moves mob health thresholds to their own component

Co-authored-by: DrSmugleaf <drsmugleaf@gmail.com>
2023-01-13 16:57:10 -08:00
metalgearsloth 243fd73db4
Update tilechangedevent to ref structs (#13383) 2023-01-09 13:45:21 +11:00
metalgearsloth 181e16db53
Reduce NPC static collision avoidance range (#13197) 2022-12-27 12:30:31 +11:00
metalgearsloth bc8f3dc0b0
Fix some NPC dancing (#13177)
- Bump the collision avoidance range, seemed okay compared to last time I tried. Means they shouldn't get caught by thindows
- Removed the steer frequency because I'm pretty sure that lead to dancing in some instances.
2022-12-24 18:35:00 -06:00
metalgearsloth f5e6628465
NPC separation adjustments (#13176) 2022-12-25 11:29:52 +11:00
metalgearsloth 4a37f7b917
Adjust NPC steering a bit (#13162) 2022-12-24 12:54:28 +11:00
metalgearsloth b78ca238c6
Add parallel NPC steering back in (#13159) 2022-12-24 12:37:58 +11:00
Pieter-Jan Briers a323671984
Changes for prototype load parallelization (#13066)
Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
2022-12-20 14:25:34 -08:00
metalgearsloth 95011a4a97
Force pathfinding graph for empty chunks (#12856)
* Force pathfinding graph for empty chunks

* im merging
2022-12-19 21:59:33 -06:00
metalgearsloth c656e051c2
Revert parallel steering (#13085) 2022-12-19 18:46:27 +11:00
metalgearsloth 8b177e83e5
Add VV to gridpathfinding comp (#13081) 2022-12-19 13:11:09 +11:00
Leon Friedrich 881a2b2ece
PopupSystem public methods rejig (#12830) 2022-12-19 08:41:47 +11:00
Pieter-Jan Briers 55c61b9c35
Config presets system. (#12824) 2022-12-16 23:26:24 +01:00
metalgearsloth a5b04b49b6
Fix NPC obstacle handling (#13007) 2022-12-15 15:30:28 +11:00
metalgearsloth 6fa9104ad7
Update content for pause event changes (#12970) 2022-12-14 11:55:51 +11:00
metalgearsloth 666d81a869
Ignore non-hard bodies for npc steering (#12990) 2022-12-12 04:20:13 -06:00
metalgearsloth 3b3963083b
Replace GridEntityId with Owner (#12743) 2022-12-12 14:59:02 +11:00
metalgearsloth 7910bd3ff4
Context steering for NPCs (#12915) 2022-12-12 14:33:43 +11:00
metalgearsloth 83fede79eb
Add simple miss chances for NPCs (#12978)
Doesn't consider juking potential but okay for now.
2022-12-11 07:37:09 -06:00
metalgearsloth f8a8b41976
Fix rat pathfinding (#12951)
Fixes https://github.com/space-wizards/space-station-14/issues/12950
2022-12-10 20:31:02 +11:00
metalgearsloth 540a3d9028
Increase NPC chase persistence (#12850) 2022-12-06 15:34:23 -08:00
metalgearsloth dd384c55a0
Pathfinder tweaks (#12848) 2022-12-06 15:33:44 -08:00
metalgearsloth 2ff2ba89a1
Fix NPCs stopping steering on 1 bad path (#12571) 2022-12-06 15:11:05 -08:00
metalgearsloth cc90f68f0f
Fix turrets not shooting in space (#12820)
* Fix turrets not shooting in space

* Faster target acquisition
2022-12-01 09:02:01 -06:00
Paul Ritter 3884c4d3db
serv4 + submodule update (#12740)
Co-authored-by: DrSmugleaf <DrSmugleaf@users.noreply.github.com>
2022-11-27 19:25:55 +01:00
metalgearsloth 5a6f30fb74
Fix another pathfinding invalid node slipping (#12739) 2022-11-24 18:28:17 +11:00
metalgearsloth fee44d13b2
Re-implement parallel for pathfinding crumbs (#12355) 2022-11-22 13:36:34 +11:00
metalgearsloth 6c76061887
Content changes for mapgrid kill (#12567) 2022-11-22 13:12:04 +11:00
metalgearsloth b749d0d275
Remove NPC IEntityManager resolves (#12648) 2022-11-18 22:07:52 +01:00
DrSmugleaf 7fbc2608e8
Remove redundant read-only VV from datafields (#12626) 2022-11-16 20:22:11 +01:00
Leon Friedrich 0b5a58001c
IListener and IRadio purge (#11980) 2022-11-15 15:09:27 +11:00
metalgearsloth ef56145308
Bump NPC melee range for steering (#12570) 2022-11-13 20:57:14 +11:00
Leon Friedrich 86ef8c5473
Make PathfindingSystem take a nap during large explosions (#12309) 2022-11-04 12:24:41 +11:00
metalgearsloth c0abea8047
Content side for removing IMap / IMapGrid comps (#12357) 2022-11-04 10:12:25 +11:00
metalgearsloth 4cb96dba6d
Clear path on exception (#12335)
Should hopefully avoid it spamming in future.
2022-11-01 20:12:50 -05:00
metalgearsloth 508b810137
Bandaid pathpoly neighbors for now (#12337) 2022-11-01 23:39:58 +11:00
metalgearsloth 4d51f786c6
Fix medibot exception (#12336) 2022-11-01 23:27:27 +11:00
metalgearsloth 41c8e382a4
Hotfix path empty frontier issue (#12334) 2022-11-01 22:50:35 +11:00
Leon Friedrich 0b8622e9e7
Misc content xform changes (#12166) 2022-10-24 00:19:51 -07:00
metalgearsloth 4a3df4f85a
Maybe fix pathfinding nullref (#12085) 2022-10-22 15:29:01 -07:00
metalgearsloth 4db3b30dc1
Sleep NPCs on attach (#12014) 2022-10-19 10:07:44 +11:00
metalgearsloth fa59983bd9
Bandaid medibots (#11718) 2022-10-13 21:36:29 +11:00
metalgearsloth 4e7f09ade5
Add dependency collection to serialization writes (#11570) 2022-10-03 20:29:14 +11:00
metalgearsloth f456ad911e
Pathfinder rework (#11452) 2022-09-30 14:39:48 +10:00
metalgearsloth f51248ecaa
Melee refactor (#10897)
Co-authored-by: metalgearsloth <metalgearsloth@gmail.com>
2022-09-29 15:51:59 +10:00
metalgearsloth 8871c445b8
Cleanup factions code (#11075)
Co-authored-by: Kara <lunarautomaton6@gmail.com>
2022-09-14 11:45:02 -07:00
metalgearsloth 78a4ab6eb2
Update for collision events by-ref (#10933) 2022-09-14 17:26:26 +10:00
Leon Friedrich 6b05861068
Fix pathfinding exception (#11228) 2022-09-14 17:06:24 +10:00
metalgearsloth 0286b88388
NPC refactor (#10122)
Co-authored-by: metalgearsloth <metalgearsloth@gmail.com>
2022-09-06 00:28:23 +10:00