| 778 | } |
| 779 | |
| 780 | void respawnself() |
| 781 | { |
| 782 | if( m_mp(gamemode) ) addmsg(SV_TRYSPAWN, "r"); |
| 783 | else |
| 784 | { |
| 785 | if(team_isspect(player1->team)) |
| 786 | { |
| 787 | addmsg(SV_SWITCHTEAM, "ri", m_teammode ? teamatoi(BotManager.GetBotTeam()) : rnd(2)); |
| 788 | } |
| 789 | showscores(false); |
| 790 | setscope(false); |
| 791 | lasthit = 0; |
| 792 | spawnplayer(player1); |
| 793 | player1->lifesequence++; |
| 794 | player1->weaponswitch(player1->primweap); |
| 795 | player1->weaponchanging -= player1->weapons[player1->gunselect]->weaponchangetime/2; // 2011jan16:ft: for a little no-shoot after spawn |
| 796 | } |
| 797 | } |
| 798 | |
| 799 | inline const char * spawn_message() |
| 800 | { |
no test coverage detected