Commit Graph

18 Commits

Author SHA1 Message Date
Pieter-Jan Briers ccea85136b
Random spontaneous cleanup PR (#25131)
* Use new Subs.CVar helper

Removes manual config OnValueChanged calls, removes need to remember to manually unsubscribe.

This both reduces boilerplate and fixes many issues where subscriptions weren't removed on entity system shutdown.

* Fix a bunch of warnings

* More warning fixes

* Use new DateTime serializer to get rid of ISerializationHooks in changelog code.

* Get rid of some more ISerializationHooks for enums

* And a little more

* Apply suggestions from code review

Co-authored-by: 0x6273 <0x40@keemail.me>

---------

Co-authored-by: 0x6273 <0x40@keemail.me>
(cherry picked from commit 68ce53ae17985876d6d112b764b2144964a9f42e)
2024-02-18 23:02:29 +01:00
Morb f657e29547 Disable SSD indicator for NPC (#20027)
* Make ActiveNPCComponent shared

* Check if entity have ActiveNPC component

* Make networked

* Fix path

* fix
2023-09-27 21:59:12 +02:00
metalgearsloth c31c848afd
Shooting NPCs and more (#18042)
* Add pirate shooting

* Shooting working

* Basics working

* Refactor time

* More conversion

* Update primitives

* Update yml

* weh

* Building again

* Draft

* weh

* b

* Start shutdown

* Starting to take form

* Code side done

* is it worky

* Fix prototypes

* stuff

* Shitty working

* Juke events working

* Even more cleanup

* RTX

* Fix interaction combat mode and compquery

* GetAmmoCount relays

* Fix rotation speed

* Juke fixes

* fixes

* weh

* The collision avoidance never ends

* Fixes

* Pause support

* framework

* lazy

* Fix idling

* Fix drip

* goobed

* Fix takeover shutdown bug

* Merge fixes

* shitter

* Fix carpos
2023-08-01 19:48:56 -05:00
metalgearsloth b4033d557b
NPC steering tweaks (#17911)
- Slightly less twitchy in melee.
- Resteer less.
- More aggressive in pursuing running away targets.
2023-07-09 13:20:20 -06:00
metalgearsloth 68480af109
Update content vectors to numerics (#17759) 2023-07-08 14:08:32 +10:00
Nemanja 37d3056809
Events all over melee (#16997) 2023-06-07 13:26:45 -07:00
metalgearsloth ca07522c03
NPC utility queries (#15843) 2023-05-01 14:57:11 -04:00
DrSmugleaf 34bcd042d1
Remove combat mode component reference (#15206) 2023-04-08 13:16:48 -07: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 666d81a869
Ignore non-hard bodies for npc steering (#12990) 2022-12-12 04:20:13 -06: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 540a3d9028
Increase NPC chase persistence (#12850) 2022-12-06 15:34:23 -08:00
metalgearsloth ef56145308
Bump NPC melee range for steering (#12570) 2022-11-13 20:57: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 0286b88388
NPC refactor (#10122)
Co-authored-by: metalgearsloth <metalgearsloth@gmail.com>
2022-09-06 00:28:23 +10:00