(svn r248) -Feature: console script files "exec myscript.file"

-Feature: console logging (of debug messages with *developer = 2 and debug_level #) to text-files "script test.txt"
-Feature: server and client are auto-executing "on_server.scr" and "on_client.scr" scripts
This commit is contained in:
darkvater
2004-09-14 16:10:20 +00:00
parent 6d55489368
commit d48ce392b2
5 changed files with 134 additions and 41 deletions

View File

@@ -1730,6 +1730,7 @@ bool NetworkCoreConnectGame(const byte* b, unsigned short port)
_networking = NetworkConnect(b, port);
if (_networking) {
NetworkLobbyShutdown();
IConsoleCmdExec("exec scripts/on_client.scr 0");
} else {
if (_networking_override)
NetworkLobbyShutdown();
@@ -1760,6 +1761,8 @@ bool NetworkCoreStartGame()
_networking = true;
NetworkGameFillDefaults(); // clears the network game info
_network_game.players_on++; // the serverplayer is online
// execute server initialization script
IConsoleCmdExec("exec scripts/on_server.scr 0");
return true;
}