Files
tbd-station-14/Content.Shared/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-06-03 11:46:59 +02:00
2020-11-22 18:38:07 +11:00
2020-10-30 11:25:26 +01:00
2020-12-18 00:21:43 +11:00
2020-10-26 23:19:46 +01:00
2020-08-30 11:16:29 +02:00
2020-12-13 23:28:20 +01:00
2020-12-13 23:28:20 +01:00
2020-09-02 12:07:54 +02:00
2020-10-16 20:36:20 +02:00
2020-12-13 16:00:49 +01:00
2020-10-31 21:56:46 +01:00
2020-12-13 23:28:20 +01:00
2020-07-30 23:45:28 +02:00
2020-10-28 23:51:43 +01:00
2020-06-19 15:20:59 +02:00
2020-10-13 13:40:05 +02:00