Gravity anomaly rework (#24452)
* balance * gorilla gauntlet fix * magboots update * some more buff * randomwalk speed scales with severity * nerf * content * Revert "content"
This commit is contained in:
@@ -71,6 +71,7 @@ public sealed class MeleeThrowOnHitSystem : EntitySystem
|
||||
(body.BodyType & (BodyType.Dynamic | BodyType.KinematicController)) == 0x0)
|
||||
return;
|
||||
|
||||
comp.PreviousStatus = body.BodyStatus;
|
||||
comp.ThrownEndTime = _timing.CurTime + TimeSpan.FromSeconds(comp.Lifetime);
|
||||
comp.MinLifetimeTime = _timing.CurTime + TimeSpan.FromSeconds(comp.MinLifetime);
|
||||
_physics.SetBodyStatus(body, BodyStatus.InAir);
|
||||
@@ -82,7 +83,7 @@ public sealed class MeleeThrowOnHitSystem : EntitySystem
|
||||
private void OnThrownShutdown(Entity<MeleeThrownComponent> ent, ref ComponentShutdown args)
|
||||
{
|
||||
if (TryComp<PhysicsComponent>(ent, out var body))
|
||||
_physics.SetBodyStatus(body, BodyStatus.OnGround);
|
||||
_physics.SetBodyStatus(body,ent.Comp.PreviousStatus);
|
||||
var ev = new MeleeThrowOnHitEndEvent();
|
||||
RaiseLocalEvent(ent, ref ev);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user