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