Login  Register

Re: Dean Hall playing Kronskys SP?!

Posted by Above on Jan 01, 2013; 3:30pm
URL: http://kodabar-dayz-daizy-single-player-forum.163.s1.nabble.com/Dean-Hall-playing-Kronskys-SP-tp1893p1947.html

Niceonegunit wrote
Wow!

I just noticed something too!
UnPBO the dayz_code.pbo in DayZ. Go into compile and open up player_switchModel.sqf.

You'll see some coding for Single player already there!

It basically detects if you are in single player or not, and if you are, sets your player UID to 42. Looks like Rocket has started work, eh?

For those of you who do not want/cannot open the pbo, here is the raw code.

private ["_playerUID"];
	_playerUID = "";
	if (count playableUnits == 0 and isServer) then {
		//In Single Player
		isSinglePlayer = true;
		player sidechat "Single player Mode detected!";
		//_id = [42,"SinglePlayer"] spawn server_onPlayerConnect;
		_playerUID = "42";
	} else {
		_playerUID = getPlayerUID player;
	};
Oh yeah, didn't really bump into this myself. But it sure looks like he had some plans.