[Help] Spectact do not work when player die.
Featured Replies
Сейчас на странице 0
- Нет пользователей, просматривающих эту страницу
A better way to browse. Learn more.
A full-screen app on your home screen with push notifications, badges and more.
Используя этот сайт, вы соглашаетесь Условия использования.
New day, new question ! Tosay I saw a bug in my mod since I have modified _menus.gsc, when a player die in SnD the camera is stuck on his body and he can't spectact his team. So I look in the code and found where is the bug but now.. I can't understand why it doesn't work.
Original thread.
beginClassChoice( forceNewChoice ) { assert( self.pers["team"] == "axis" || self.pers["team"] == "allies" ); team = self.pers["team"]; self openpopupMenu( game[ "menu_changeclass_" + team ] ); if ( !isAlive( self ) ) self thread maps\mp\gametypes\_playerlogic::predictAboutToSpawnPlayerOverTime( 0.1 ); }My new thread.
beginClassChoice( forceNewChoice ) { assert( self.pers["team"] == "axis" || self.pers["team"] == "allies" ); team = self.pers["team"]; // self openpopupMenu( game[ "menu_changeclass_" + team ] ); if ( !isAlive( self ) ) // self thread maps\mp\gametypes\_playerlogic::predictAboutToSpawnPlayerOverTime( 0.1 ); self thread maps\mp\gametypes\_playerlogic::spawnClient(); }With this new thread the mod work perfectly exept for the spectact thing.