Zed fixes #16

Merged
dkanus merged 24 commits from :fpfix into master 2022-03-03 15:43:35 +03:00
Showing only changes of commit 79b9151c66 - Show all commits

View File

@ -491,15 +491,17 @@ simulated function ClientChangeWeapon(NiceWeapon newWeap){
// Validate that client is not hacking. // Validate that client is not hacking.
function bool CanBuyNow() function bool CanBuyNow()
{ {
local NicePlayerController niceController; local NiceGameType NiceGT;
niceController = NicePlayerController(Controller); NiceGT = NiceGameType(Level.Game);
if (niceController == none) if (NicePlayerController(Controller) == none)
return false; return false;
if (NiceGameType(Level.Game) != none && NiceGameType(Level.Game).NicePackMutator != none if (NiceGT != none && NiceGT.NicePackMutator != none
&& NiceGameType(Level.Game).NicePackMutator.bIsPreGame) && NiceGT.NicePackMutator.bIsPreGame)
return true; return true;
return Super.CanBuyNow();
// skip Scrn code!
return super(KFPawn).CanBuyNow();
} }
// Overridden to not modify dual pistols' weapon group // Overridden to not modify dual pistols' weapon group