MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / MultiResetSettings

Function MultiResetSettings

Descent3/multi_server.cpp:2808–2822  ·  view source on GitHub ↗

Resets the settings that a server uses

Source from the content-addressed store, hash-verified

2806
2807// Resets the settings that a server uses
2808void MultiResetSettings() {
2809 strcpy(Netgame.scriptname, "Anarchy.d3m");
2810 strcpy(Netgame.connection_name, "Direct TCP~IP");
2811 strcpy(Netgame.mission, "fury.mn3");
2812 strcpy(Netgame.name, "Generic D3 Game");
2813
2814 Netgame.packets_per_second = 10;
2815 Netgame.respawn_time = 60;
2816 Netgame.flags = NF_RANDOMIZE_RESPAWN;
2817 Netgame.max_players = 8;
2818 Netgame.difficulty = 2;
2819
2820 // Clear MOTD
2821 Multi_message_of_the_day[0] = 0;
2822}
2823
2824#define LEVEL_SPAN 10.0f
2825

Callers 1

LoadServerConfigFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected