From da1676464c59ccd92e0a8087f77d2a3efee40ce0 Mon Sep 17 00:00:00 2001 From: Ssinssrigg Date: Mon, 5 Oct 2020 08:45:21 -0400 Subject: [PATCH] Update Ext_T_AutoFireHelper.uc Woo! Confirmed that the make.sh script works as intended, both for compiling and for testing. Above compiled successfully, allowed survivalist to autofire with 9mm / MP7 / AR-15 / SG-500 / HX25 / GS Start revolver / Spitfire, allowed GS to autofire with GS starter revolver + spitfire but not with MP7. Should be fully functional like this. Thank you for the guidance! As an aside - Do you have any advice for finding out the names of variables like AssociatedPerkClass, or just 'look around until you find it in an appropriate class'? --- ServerExt/Classes/Ext_T_AutoFireHelper.uc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ServerExt/Classes/Ext_T_AutoFireHelper.uc b/ServerExt/Classes/Ext_T_AutoFireHelper.uc index 3a0ee3e..5db791a 100644 --- a/ServerExt/Classes/Ext_T_AutoFireHelper.uc +++ b/ServerExt/Classes/Ext_T_AutoFireHelper.uc @@ -26,7 +26,7 @@ function Timer() } simulated function Tick( float Delta ) { - if( WorldInfo.NetMode==NM_DedicatedServer || PawnOwner==None || PawnOwner.InvManager==None || KFWeapon(PawnOwner.Weapon)==None || KFWeapon(PawnOwner.Weapon).GetWeaponPerkClass(AssociatedPerkClass)!=AssociatedPerkClass ) + if( WorldInfo.NetMode==NM_DedicatedServer || PawnOwner==None || PawnOwner.InvManager==None || KFWeapon(PawnOwner.Weapon)==None || KFWeapon(PawnOwner.Weapon).GetWeaponPerkClass(AssociatedPerkClass)!=AssociatedPerkClass && AssociatedPerkClass != class'KFPerk_Survivalist' ) return; // Find local playercontroller. @@ -52,4 +52,4 @@ defaultproperties Components.Empty() RemoteRole=ROLE_SimulatedProxy bOnlyRelevantToOwner=true -} \ No newline at end of file +}