Skip to content

Commit

Permalink
fix gib torso
Browse files Browse the repository at this point in the history
  • Loading branch information
Rxup committed Nov 17, 2024
1 parent 3efedc5 commit 83082c2
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Content.Server/Body/Systems/BodySystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,19 @@ public override void Initialize()

SubscribeLocalEvent<BodyComponent, MoveInputEvent>(OnRelayMoveInput);
SubscribeLocalEvent<BodyComponent, ApplyMetabolicMultiplierEvent>(OnApplyMetabolicMultiplier);
SubscribeLocalEvent<BodyPartComponent, AttemptEntityGibEvent>(OnGibTorsoAttempt); // backmen: surgery
}

// start-backmen: surgery
private void OnGibTorsoAttempt(Entity<BodyPartComponent> ent, ref AttemptEntityGibEvent args)
{
if (ent.Comp.PartType == BodyPartType.Torso)
{
args.GibType = GibType.Skip;
}
}
// end-backmen: surgery

private void OnRelayMoveInput(Entity<BodyComponent> ent, ref MoveInputEvent args)
{
// If they haven't actually moved then ignore it.
Expand Down

0 comments on commit 83082c2

Please sign in to comment.