Commit Graph

130 Commits

Author SHA1 Message Date
metalgearsloth
330bb7bb14 Remove gun .Owners (#14585) 2023-03-11 20:08:22 +11:00
metalgearsloth
28dbbbb734 Add NPC stuck detection (#14410) 2023-03-05 16:13:09 +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
2ea4538c3a Don't reload NPCs unless necessary (#13978) 2023-02-07 17:35:32 +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
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
metalgearsloth
c656e051c2 Revert parallel steering (#13085) 2022-12-19 18:46:27 +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
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
2ff2ba89a1 Fix NPCs stopping steering on 1 bad path (#12571) 2022-12-06 15:11:05 -08:00
metalgearsloth
ef56145308 Bump NPC melee range for steering (#12570) 2022-11-13 20:57:14 +11: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
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
metalgearsloth
0286b88388 NPC refactor (#10122)
Co-authored-by: metalgearsloth <metalgearsloth@gmail.com>
2022-09-06 00:28:23 +10:00