Files
tbd-station-14/Content.Server/GameObjects/Components
Morshu32 19bd739b0d PreventCollision with strap component while buckled to it (#2694)
* AvoidCollision if collided entity is the one that the character is buckled to

* Attempt to PreventCollision after the player is unbuckled but still colliding with StrapComponent

* Moved PreventCollide to the Shared script.

* Add WakeBody to keep updating the physics collision while being on a collidable strap component.

* Addressed some of metalgearsloth's suggestions:
- Made EntityBuckledTo,IsOnStrapEntityThisFrame and DontCollide not virtual
-Made EntityBuckledTo nullable
-Don't call update on Paused BuckleComponents
-Removed EntityBuckledTo variable declaration in BuckleComponent because it's not needed anymore
-Call TryUnbuckle if (!IsOnStrapEntityThisFrame && DontCollide) to set BuckledTo entity to null.

* Formatting

Co-authored-by: DrSmugleaf <DrSmugleaf@users.noreply.github.com>

* Formatting

Co-authored-by: DrSmugleaf <DrSmugleaf@users.noreply.github.com>

* Formatting again :P

Co-authored-by: DrSmugleaf <DrSmugleaf@users.noreply.github.com>

* Formatting

Co-authored-by: DrSmugleaf <DrSmugleaf@users.noreply.github.com>

* Formatting

Co-authored-by: DrSmugleaf <DrSmugleaf@users.noreply.github.com>

* Renamed variable EntityBuckledTo to LastEntityBuckledTo

* As per DrSmugLeaf suggestion: Added [ComponentDependency] to the Body variable.

Co-authored-by: DrSmugleaf <DrSmugleaf@users.noreply.github.com>
2020-12-18 20:12:53 +01:00
..
2020-12-01 17:05:19 +01:00
2020-12-05 21:48:11 +01:00
2020-12-18 00:21:43 +11:00
2020-11-22 18:38:07 +11:00
2020-12-07 14:52:55 +01:00
2020-12-07 14:52:55 +01:00
2020-12-07 14:52:55 +01:00
2020-12-13 23:28:20 +01:00
2020-12-07 14:52:55 +01:00
2020-12-13 23:28:20 +01:00
2020-11-11 00:46:13 +01:00
2020-10-28 23:51:43 +01:00
2020-12-13 16:00:49 +01:00
2020-09-21 01:49:40 +02:00
2020-11-10 15:22:19 +11:00
2020-12-07 14:52:55 +01:00
2020-11-10 15:22:19 +11:00
2020-10-26 23:19:46 +01:00
2020-10-13 13:40:05 +02:00
2020-07-30 03:22:26 +02:00
2020-12-07 14:52:55 +01:00