Commit Graph

235 Commits

Author SHA1 Message Date
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