Why it dosen't work when I press Esc ?
where is the problem ?
Code:class TPSHUD extends HUD; var config string MapName; var TPSGFx_QuickMenu quickMovie; var bool bInventoryIsLocked; exec function toggleQuickMenu() { if (MapName == "TPSLevel_Test01" ) { if ( quickMovie != none && quickMovie.bMovieIsOpen ) { quickMovie.PlayCloseAnimation(); } else { if( quickMovie == None ) { quickMovie = new class'TPSGFx_QuickMenu'; quickMovie.MovieInfo = SwfMovie'MainMenu.MainMenuE01'; quickMovie.bEnableGammaCorrection = false; quickMovie.LocalPlayerOwnerIndex = class'Engine'.static.GetEngine().GamePlayers.Find(LocalPlayer(PlayerOwner.Player)); quickMovie.SetTimingMode(TM_Real); quickMovie.SetViewScaleMode(SM_NoScale); } PlayerOwner.SetPause(true); quickMovie.Start(); } } if (MapName == "TPSLevel_Test02" ) { if ( quickMovie != none && quickMovie.bMovieIsOpen ) { quickMovie.PlayCloseAnimation(); } else { if( quickMovie == None ) { quickMovie = new class'TPSGFx_QuickMenu'; quickMovie.MovieInfo = SwfMovie'MainMenu.MainMenuE02'; quickMovie.bEnableGammaCorrection = false; quickMovie.LocalPlayerOwnerIndex = class'Engine'.static.GetEngine().GamePlayers.Find(LocalPlayer(PlayerOwner.Player)); quickMovie.SetTimingMode(TM_Real); quickMovie.SetViewScaleMode(SM_NoScale); } PlayerOwner.SetPause(true); quickMovie.Start(); } } }




Reply With Quote
You can also test it by typing "toggleQuickMenu" in the console while the game is running.




Bookmarks