rott/kf_sources/HideMut/Classes.backup/stub_PC.uc
2026-07-14 20:27:09 +07:00

81 lines
2.0 KiB
Ucode

// stub KFPlayerController for hooks
class stub_PC extends KFPlayerController_Story;
// empty function stub
simulated function noop(){}
// always true bool
simulated function bool bTrue()
{
return true;
}
// =========================================================
// zed time sound effect switch
simulated function CheckZEDMessage()
{
if (!bHadZED && !class'Settings'.default.bHideZedTimeSounds)
{
ReceiveLocalizedMessage(class'KFMod.WaitingMessage', 5);
bHadZED = true;
SaveConfig();
}
}
simulated function ClientEnterZedTime()
{
if (class'Settings'.default.bHideZedTimeSounds)
return;
CheckZEDMessage();
if ( Pawn != none && Pawn.Weapon != none )
Pawn.Weapon.PlaySound(Sound'KF_PlayerGlobalSnd.Zedtime_Enter', SLOT_Talk, 2.0,false,500.0,1.1/Level.TimeDilation,false);
else
PlaySound(Sound'KF_PlayerGlobalSnd.Zedtime_Enter', SLOT_Talk, 2.0,false,500.0,1.1/Level.TimeDilation,false);
}
simulated function ClientExitZedTime()
{
if (class'Settings'.default.bHideZedTimeSounds)
return;
if ( Pawn != none && Pawn.Weapon != none )
Pawn.Weapon.PlaySound(Sound'KF_PlayerGlobalSnd.Zedtime_Exit', SLOT_Talk, 2.0,false,500.0,1.1/Level.TimeDilation,false);
else
PlaySound(Sound'KF_PlayerGlobalSnd.Zedtime_Exit', SLOT_Talk, 2.0,false,500.0,1.1/Level.TimeDilation,false);
}
// =========================================================
// show lobby menu if we press Esc during pending game state
exec function ShowMenu()
{
if (Level.GRI.bMatchHasBegun || PlayerReplicationInfo.bOnlySpectator)
super.ShowMenu();
else
ShowLobbyMenu();
}
// Steam Workshop
simulated function SyncSteamWorkshop()
{
log("> IM TRYING TO GET STEAM WORKSHOP FILES!!!!!");
EnumerateSubscribedSteamWorkshopFiles();
}
// The player wants to switch to weapon group number F.
exec function SwitchWeapon(byte F)
{
if (!class'a_WeaponManager'.static.checkVanillaSys(self, F))
return;
if (Pawn != none)
Pawn.SwitchWeapon(F);
}