Torque3D/Templates/BaseGame/game/core
JeffR c5ae9af0ae Core now spawns a ControlObject directly, with callbacks allowing overriding of values to control what spawns (and what occurs afterwards) to tie several tracking variables to a given client connection.
By default this list of variables would be:
%this.spawnClass = "Camera";
%this.spawnDBType = "CameraData";
%this.spawnDataBlock = "Observer";
%this.playerSpawnGroups = "PlayerSpawnPoints PlayerDropPoints";
%this.spawnPoint = "";
%this.spawnLocation = "0 0 0";

Also adds several callbacks so that these values can be overridden by modules and gamemodes, kicked off from the %client.spawnControlObject(); command :
callOnModules("setSpawnObjectType", "Game", %this);
callGamemodeFunction("setSpawnObjectType", %this);

callOnModules("setSpawnPoint", "Game", %this);
callGamemodeFunction("setSpawnPoint", %this);

callOnModules("onPostSpawn", "Game", %this);
callGamemodeFunction("onPostSpawn", %this);

This is to ensure that a game mode can supersede modules, but even modules can dictate spawn behaviors for minimalist implementations and drop-in interop support
2024-12-21 02:11:35 -06:00
..
clientServer Core now spawns a ControlObject directly, with callbacks allowing overriding of values to control what spawns (and what occurs afterwards) to tie several tracking variables to a given client connection. 2024-12-21 02:11:35 -06:00
console Streamlined baseUI profiles 2023-12-18 23:49:13 -06:00
gameObjects misc asset bit cleanups 2023-03-07 15:15:12 -06:00
gui hook up baseline button audio 2024-08-06 08:37:53 -05:00
lighting doc correction 2024-02-23 12:39:26 -06:00
postFX remove glowbin as it's own render pass 2024-05-30 17:29:42 -05:00
rendering fix misbehaving imposter display 2024-08-28 10:33:12 -05:00
sfx - Added a companion global var array for $AudioChannelsName[x] as well as utilizing $AudioChannelCount for keeping better tabs on the active defined audio channels. This allows modules to establish new channels more easily 2024-01-01 01:42:53 -06:00
utility Adds utility function and method to be able to enact a load of subscenes at a specific world position 2024-10-04 00:10:26 -05:00
core.module followup: readd, and rename the module.ScriptFile entries to thier lower case 2021-07-20 12:15:05 -05:00
core.tscript followup: readd, and rename the module.ScriptFile entries to thier lower case 2021-07-20 12:15:05 -05:00
settings.xml Bloom Tweaks & OpenGL Support 2022-08-26 18:05:25 -05:00