v1.21.1.b8

This commit is contained in:
Juzlus 2026-04-26 10:36:05 +02:00
parent abd3aed8fd
commit 10dbf6629e
77 changed files with 1507 additions and 974 deletions

View file

@ -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);
});
}