v1.1.9 BETA
This commit is contained in:
parent
d68896f181
commit
4c333f5d15
31 changed files with 182 additions and 149 deletions
|
|
@ -70,8 +70,9 @@ namespace src.utils
|
|||
public class SettingsModel
|
||||
{
|
||||
public int GameMode { get; set; }
|
||||
public bool KillerSkillInfo { get; set; }
|
||||
public bool TeamMateSkillInfo { get; set; }
|
||||
public bool YourSkillChatInfo { get; set; }
|
||||
public bool KillerSkillChatInfo { get; set; }
|
||||
public bool TeamMateSkillChatInfo { get; set; }
|
||||
public bool SummaryAfterTheRound { get; set; }
|
||||
public bool DebugMode { get; set; }
|
||||
public string? AlternativeSkillButton { get; set; }
|
||||
|
|
@ -91,8 +92,9 @@ namespace src.utils
|
|||
public SettingsModel()
|
||||
{
|
||||
GameMode = (int)GameModes.NoRepeat;
|
||||
KillerSkillInfo = true;
|
||||
TeamMateSkillInfo = true;
|
||||
YourSkillChatInfo = true;
|
||||
KillerSkillChatInfo = true;
|
||||
TeamMateSkillChatInfo = true;
|
||||
SummaryAfterTheRound = true;
|
||||
DebugMode = true;
|
||||
AlternativeSkillButton = null;
|
||||
|
|
|
|||
|
|
@ -81,10 +81,11 @@ namespace src.utils
|
|||
if (player == null || !player.IsValid) return;
|
||||
var playerPawn = player.PlayerPawn.Value;
|
||||
if (playerPawn == null || !playerPawn.IsValid || playerPawn.CBodyComponent == null || playerPawn.CBodyComponent.SceneNode == null) return;
|
||||
if (scale <= 0) return;
|
||||
|
||||
playerPawn.CBodyComponent.SceneNode.GetSkeletonInstance().Scale = scale;
|
||||
Utilities.SetStateChanged(playerPawn, "CBaseEntity", "m_CBodyComponent");
|
||||
Server.NextFrame(() => playerPawn.AcceptInput("SetScale", playerPawn, playerPawn, scale.ToString()));
|
||||
Server.NextFrame(() => playerPawn.AcceptInput("SetScale", null, null, scale.ToString()));
|
||||
}
|
||||
|
||||
public static void CreateHEGrenadeProjectile(Vector pos, QAngle angle, Vector vel, int teamNum)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue