2019-08-29 00:22:33 -05:00
|
|
|
function ExampleModule::onCreate(%this)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function ExampleModule::onDestroy(%this)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2022-05-31 00:26:20 -05:00
|
|
|
//This is called when the server is initially set up by the game application
|
2019-09-02 16:13:24 -05:00
|
|
|
function ExampleModule::initServer(%this)
|
2019-08-29 00:22:33 -05:00
|
|
|
{
|
2024-09-01 23:26:10 -05:00
|
|
|
%this.queueExec("./scripts/shared/ExampleGameMode");
|
2019-08-29 00:22:33 -05:00
|
|
|
}
|
|
|
|
|
|
2022-05-31 00:26:20 -05:00
|
|
|
//This is called when the server is created for an actual game/map to be played
|
2019-08-29 00:22:33 -05:00
|
|
|
function ExampleModule::onCreateGameServer(%this)
|
|
|
|
|
{
|
2022-05-31 00:26:20 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//This is called when the server is shut down due to the game/map being exited
|
2019-08-29 00:22:33 -05:00
|
|
|
function ExampleModule::onDestroyGameServer(%this)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2022-05-31 00:26:20 -05:00
|
|
|
//This is called when the client is initially set up by the game application
|
2019-08-29 00:22:33 -05:00
|
|
|
function ExampleModule::initClient(%this)
|
|
|
|
|
{
|
2024-09-01 23:26:10 -05:00
|
|
|
%this.queueExec("./scripts/client/inputCommands");
|
2022-05-31 00:26:20 -05:00
|
|
|
|
|
|
|
|
//client scripts
|
|
|
|
|
exec("./scripts/client/defaultkeybinds");
|
2025-12-12 20:11:18 -07:00
|
|
|
|
2024-09-01 23:26:10 -05:00
|
|
|
%this.queueExec("./scripts/shared/ExampleGameMode");
|
2019-08-29 00:22:33 -05:00
|
|
|
}
|
|
|
|
|
|
2022-05-31 00:26:20 -05:00
|
|
|
//This is called when a client connects to a server
|
2019-08-29 00:22:33 -05:00
|
|
|
function ExampleModule::onCreateClientConnection(%this)
|
|
|
|
|
{
|
2022-05-31 00:26:20 -05:00
|
|
|
ExampleMovemap.push();
|
2019-08-29 00:22:33 -05:00
|
|
|
}
|
|
|
|
|
|
2022-05-31 00:26:20 -05:00
|
|
|
//This is called when a client disconnects from a server
|
2019-08-29 00:22:33 -05:00
|
|
|
function ExampleModule::onDestroyClientConnection(%this)
|
|
|
|
|
{
|
2022-03-27 03:05:48 -05:00
|
|
|
}
|