Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spawn protocol revamp #1159

Open
wants to merge 1 commit into
base: development
Choose a base branch
from

Conversation

Azaezel
Copy link
Contributor

@Azaezel Azaezel commented Dec 16, 2023

core now spawns a controlobject direct, with callbacks allowing injection of config values to control what spawns (and what occurs afterwards) tie serveral tracking variables to a given client connection. by default this list would be:
%this.spawnClass = "Camera";
%this.spawnDBType = "CameraData";
%this.spawnDataBlock = "Observer";
%this.playerSpawnGroups = "PlayerSpawnPoints PlayerDropPoints";
%this.spawnPoint = "";
%this.spawnLocation = "0 0 0";
add several callbacks so that these values can be overridden kicking off from the %client.spawnControlObject(); command :
callOnModules("onControlObjectTypePick", "Game", %this);
callGamemodeFunction("onControlObjectTypePick", %this);
callOnModules("onSpawnPointPick", "Game", %this);
callGamemodeFunction("onSpawnPointPick", %this);
callOnModules("onSpawnAppendPick", "Game", %this);
callGamemodeFunction("onSpawnAppendPick", %this);
this is to ensure that a game mode can supercede modules

core now spawns a controlobject direct, with callbacks allowing injection of config values to control what spawns (and what occurs afterwards)
tie serveral tracking variables to a given client connection. by default this list would be:
    %this.spawnClass = "Camera";
    %this.spawnDBType = "CameraData";
    %this.spawnDataBlock = "Observer";
    %this.playerSpawnGroups = "PlayerSpawnPoints PlayerDropPoints";
    %this.spawnPoint = "";
    %this.spawnLocation = "0 0 0";
add several callbacks so that these values can be overridden kicking off from the   %client.spawnControlObject(); command :
    callOnModules("onControlObjectTypePick", "Game", %this);
    callGamemodeFunction("onControlObjectTypePick", %this);
    callOnModules("onSpawnPointPick", "Game", %this);
    callGamemodeFunction("onSpawnPointPick", %this);
    callOnModules("onSpawnAppendPick", "Game", %this);
    callGamemodeFunction("onSpawnAppendPick", %this);
this is to ensure that a game mode can supercede modules
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant