Skip to content

Commit

Permalink
fix: teleport directly to player
Browse files Browse the repository at this point in the history
  • Loading branch information
derkalle4 committed Nov 21, 2024
1 parent 813b63a commit 09d7f25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Parachute+Utilities.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ private int SpawnProp(CCSPlayerController player, string model, float scale = 1.
// spawn it
prop.DispatchSpawn();
prop.SetModel(model);
prop.Teleport(new Vector(-999, -999, -999));
prop.Teleport(player.Pawn.Value.AbsOrigin!, player.Pawn.Value.AbsRotation!);
prop.AnimGraphUpdateEnabled = false;
prop.CBodyComponent!.SceneNode!.Scale = scale;
// set team color
Expand Down

0 comments on commit 09d7f25

Please sign in to comment.