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'?
This commit is contained in:
Ssinssrigg 2020-10-05 08:45:21 -04:00 committed by GitHub
parent 2db4aa6211
commit da1676464c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.