Commit Graph

225 Commits

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