v1.0.4
This commit is contained in:
parent
6422436252
commit
714624d96a
45 changed files with 488 additions and 141 deletions
|
|
@ -20,11 +20,20 @@ namespace jRandomSkills
|
|||
|
||||
public static void NewRound()
|
||||
{
|
||||
foreach (var player in playersFOV.Keys)
|
||||
DisableSkill(player);
|
||||
playersFOV.Clear();
|
||||
foreach (var player in Utilities.GetPlayers())
|
||||
SkillUtils.CloseMenu(player);
|
||||
}
|
||||
|
||||
public static void PlayerDeath(EventPlayerDeath @event)
|
||||
{
|
||||
var player = @event.Userid;
|
||||
if (player == null) return;
|
||||
DisableSkill(player);
|
||||
}
|
||||
|
||||
public static void OnTick()
|
||||
{
|
||||
if (Server.TickCount % 32 != 0) return;
|
||||
|
|
@ -64,7 +73,6 @@ namespace jRandomSkills
|
|||
|
||||
if (!playersFOV.ContainsKey(enemy))
|
||||
playersFOV.Add(enemy, enemy.DesiredFOV);
|
||||
Server.PrintToChatAll($"FOV: {enemy.DesiredFOV}");
|
||||
enemy.DesiredFOV = customFOV;
|
||||
Utilities.SetStateChanged(enemy, "CBasePlayerController", "m_iDesiredFOV");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue