This commit is contained in:
Juzlus 2025-02-25 21:38:43 +01:00
parent 262f618b31
commit fc0d2a3265
18 changed files with 515 additions and 143 deletions

View file

@ -67,6 +67,9 @@ namespace jRandomSkills
if (attackerPawn == null || attackerPawn.Controller?.Value == null || victimPawn == null || victimPawn.Controller?.Value == null)
return HookResult.Continue;
if (attackerPawn.DesignerName != "player" || victimPawn.DesignerName != "player")
return HookResult.Continue;
CCSPlayerController attacker = attackerPawn.Controller.Value.As<CCSPlayerController>();
CCSPlayerController victim = victimPawn.Controller.Value.As<CCSPlayerController>();