diff --git a/Classes/Settings.uc b/Classes/Settings.uc index 4b1308b..f3faac0 100644 --- a/Classes/Settings.uc +++ b/Classes/Settings.uc @@ -20,4 +20,8 @@ var() config bool bAllowZedTime; // all traders var() config bool bAllTradersOpen; -var() config string bAllTradersMessage; \ No newline at end of file +var() config string bAllTradersMessage; + +// dosh +var() config float fDoshThrowDelay; +var() config int iDoshThrowMinAmount; \ No newline at end of file diff --git a/Classes/hookPawn.uc b/Classes/hookPawn.uc index 8dfbbb9..2ff21d1 100644 --- a/Classes/hookPawn.uc +++ b/Classes/hookPawn.uc @@ -70,13 +70,13 @@ exec function TossCash(int Amount) local Vector TossVel; local Actor A; - // NEW check! and 0.3 sec delay between throws + // NEW check! use delay between throws if (Level.TimeSeconds < class'hookPawn'.default.cashtimer || PlayerReplicationInfo == none) return; - class'hookPawn'.default.cashtimer = Level.TimeSeconds + 0.3f; + class'hookPawn'.default.cashtimer = Level.TimeSeconds + class'Settings'.default.fDoshThrowDelay; - // 30 dosh at min - Amount = clamp(Amount, 30, int(Controller.PlayerReplicationInfo.Score)); + // min dosh amount to throw + Amount = clamp(Amount, class'Settings'.default.iDoshThrowMinAmount, int(Controller.PlayerReplicationInfo.Score)); // if (Amount<=0) // Amount = 50; diff --git a/Configs/KFPatcherSettings.ini b/Configs/KFPatcherSettings.ini index 12037fd..abd0dcb 100644 --- a/Configs/KFPatcherSettings.ini +++ b/Configs/KFPatcherSettings.ini @@ -13,4 +13,6 @@ bShowPerk=true bAllowZedTime=false bAllTradersOpen=true bAllTradersMessage="^wAll traders are ^ropen^w!" -bBuyEverywhere=true \ No newline at end of file +bBuyEverywhere=true +fDoshThrowDelay=0.3 +iDoshThrowMinAmount=30 \ No newline at end of file