We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17024d0 commit 2bd111eCopy full SHA for 2bd111e
code/Player/Player.cs
@@ -141,6 +141,11 @@ public void Respawn()
141
142
Controller = new WalkController();
143
144
+ // TODO: Facepunch issue, need to set the water level, unable to remove the component without getting a null ref.
145
+ // If the player respawns directly from water the water effect component doesn't get removed.
146
+ if ( Components.TryGet<Sandbox.Component.WaterEffectComponent>( out var waterComponent ) )
147
+ waterComponent.WaterLevel = 0;
148
+
149
CreateHull();
150
CreateFlashlight();
151
DressPlayer();
0 commit comments