v1.21.1.b8
This commit is contained in:
parent
abd3aed8fd
commit
10dbf6629e
77 changed files with 1507 additions and 974 deletions
|
|
@ -165,7 +165,11 @@ namespace src.utils
|
|||
|
||||
skeleton.Scale = scale;
|
||||
playerPawn.AcceptInput("SetScale", null, null, scale.ToString(CultureInfo.InvariantCulture));
|
||||
Server.NextWorldUpdate(() => Utilities.SetStateChanged(player.PlayerPawn.Value!, "CBaseEntity", "m_CBodyComponent"));
|
||||
|
||||
Server.NextWorldUpdate(() => {
|
||||
if (playerPawn == null || !playerPawn.IsValid) return;
|
||||
Utilities.SetStateChanged(playerPawn, "CBaseEntity", "m_CBodyComponent");
|
||||
});
|
||||
}
|
||||
|
||||
public static Vector? GetSpawnPointVector(CCSPlayerController player, bool enemySpawn = false)
|
||||
|
|
@ -224,6 +228,7 @@ namespace src.utils
|
|||
if (pawn.Health <= 0)
|
||||
Server.NextFrame(() =>
|
||||
{
|
||||
if (pawn == null || !pawn.IsValid) return;
|
||||
pawn?.CommitSuicide(false, true);
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue