Crawling Fixes 1: Dragons and Borgs can't do the worm. (#39084)
* Init Commit * Remove unused code, fix stun visuals bug * Update Content.Shared/Stunnable/SharedStunSystem.cs * Some initial changes * first batch of changes * Commit * One line cleanup * KnockdownStatusEffect ain't worth it. * Fix 2 bugs * Fixes * Remove that actually, * Commit * Better solution * Alright final commit I think * Add better remarks * How the fuck did this not get pushed??? * Wait no why was my ryder trying to push that??? I didn't make that change! DON'T DO THAT!!! * Review * Don't log that --------- Co-authored-by: Princess Cheeseballs <66055347+Pronana@users.noreply.github.com> Co-authored-by: ScarKy0 <106310278+ScarKy0@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
4e29107c89
commit
55335cce0f
@@ -23,7 +23,6 @@ public sealed class StandingStateSystem : EntitySystem
|
||||
base.Initialize();
|
||||
SubscribeLocalEvent<StandingStateComponent, AttemptMobCollideEvent>(OnMobCollide);
|
||||
SubscribeLocalEvent<StandingStateComponent, AttemptMobTargetCollideEvent>(OnMobTargetCollide);
|
||||
SubscribeLocalEvent<StandingStateComponent, RefreshMovementSpeedModifiersEvent>(OnRefreshMovementSpeedModifiers);
|
||||
SubscribeLocalEvent<StandingStateComponent, RefreshFrictionModifiersEvent>(OnRefreshFrictionModifiers);
|
||||
SubscribeLocalEvent<StandingStateComponent, TileFrictionEvent>(OnTileFriction);
|
||||
}
|
||||
@@ -44,25 +43,19 @@ public sealed class StandingStateSystem : EntitySystem
|
||||
}
|
||||
}
|
||||
|
||||
private void OnRefreshMovementSpeedModifiers(Entity<StandingStateComponent> entity, ref RefreshMovementSpeedModifiersEvent args)
|
||||
{
|
||||
if (!entity.Comp.Standing)
|
||||
args.ModifySpeed(entity.Comp.FrictionModifier);
|
||||
}
|
||||
|
||||
private void OnRefreshFrictionModifiers(Entity<StandingStateComponent> entity, ref RefreshFrictionModifiersEvent args)
|
||||
{
|
||||
if (entity.Comp.Standing)
|
||||
return;
|
||||
|
||||
args.ModifyFriction(entity.Comp.FrictionModifier);
|
||||
args.ModifyAcceleration(entity.Comp.FrictionModifier);
|
||||
args.ModifyFriction(entity.Comp.DownFrictionMod);
|
||||
args.ModifyAcceleration(entity.Comp.DownFrictionMod);
|
||||
}
|
||||
|
||||
private void OnTileFriction(Entity<StandingStateComponent> entity, ref TileFrictionEvent args)
|
||||
{
|
||||
if (!entity.Comp.Standing)
|
||||
args.Modifier *= entity.Comp.FrictionModifier;
|
||||
args.Modifier *= entity.Comp.DownFrictionMod;
|
||||
}
|
||||
|
||||
public bool IsDown(EntityUid uid, StandingStateComponent? standingState = null)
|
||||
|
||||
Reference in New Issue
Block a user