Cleanup
This commit is contained in:
@@ -38,7 +38,8 @@ abstract class PlayerComp implements UnitController, Entityc, Syncc, Timerc, Dra
|
||||
transient @Nullable NetConnection con;
|
||||
|
||||
@ReadOnly Team team = Team.sharded;
|
||||
@SyncLocal boolean admin, typing, shooting, boosting;
|
||||
@SyncLocal boolean typing, shooting, boosting;
|
||||
boolean admin;
|
||||
@SyncLocal float mouseX, mouseY;
|
||||
String name = "noname";
|
||||
Color color = new Color();
|
||||
|
||||
@@ -239,7 +239,7 @@ abstract class UnitComp implements Healthc, Physicsc, Hitboxc, Statusc, Teamc, I
|
||||
}
|
||||
|
||||
//simulate falling down
|
||||
if(dead){
|
||||
if(dead || health <= 0){
|
||||
//less drag when dead
|
||||
drag = 0.01f;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user