Automatic Respawns

Questions or HOWTOs about the above? Post 'em here...
Post Reply
User avatar
Zehra
Private First Class
Private First Class
Posts: 914
Joined: Sun Oct 18, 2015 3:36 pm
Location: Within the BZFS API and Beyond it
Contact:

Automatic Respawns

Post by Zehra »

Here's a small and simple modification which allows you to respawn automatically.

Head over to 'LocalPlayer.cxx' and find this section of code:

Code: Select all

setStatus(PlayerState::DeadStatus);
	location = Dead;
	if (isAutoPilot()) {
	  CMDMGR.run("restart");
	}
      }
Change it to the code below:

Code: Select all

setStatus(PlayerState::DeadStatus);
	location = Dead;
	if (1) { // Always true, so always automatically respawn
	  CMDMGR.run("restart");
	}
      }
And that's how to have automatic respawns.

-Zehra
Those who are critical of me, I'll likely be the same of them. ~Zehra
The decisions we make are the ones we look forward too and the ones we regret. ~Zehra
There's a difference between knowing my name and knowing me, one shows respect to my name and the other is to who I am. ~Zehra

See where I've last been active at Strayers.
Visit BZList.net for a modern HTML5 server stats site.

Click here to view the 101 Leaderboard & Score Summaries Last updated 2021-01-12 (YYYY-MM-DD)
Latest 101 thread
Post Reply