interim commit - added more teleporters, preserved some SSWW information before it's nuked for the final impl

This commit is contained in:
loop 2025-10-20 02:37:55 +01:00
parent 4f0291118b
commit f38bbe3e40
5 changed files with 278 additions and 37 deletions

View file

@ -8,6 +8,42 @@
// Leave it on when editing the map, leave it off when playing the game.
$DEVMODE = 1;
// Load the various modes, datablocks and functions.
exec("scripts/SkillSectorTeleporter.cs");
exec("scripts/SkillSectorAimTrainer.cs");
exec("scripts/SkillSectorTractorBeam.cs");
exec("scripts/SkillSectorWaypointWrangler.cs");
package SkillSector {
function none() {}
};
function SkillSector::initGameVars(%game) {
AimTrainerInit();
WaypointWranglerInit();
}
// No longer dispatching 'primary' waypoints because they can't be made semi-permanent.
function SkillSector::clientMissionDropReady(%game, %client) {
messageClient(%client, 'MsgClientReady',"", %game.class);
// %game.resetScore(%client);
// for(%i = 1; %i <= %game.numTeams; %i++) {
// $Teams[%i].score = 0;
// messageClient(%client, 'MsgCTFAddTeam', "", %i, %game.getTeamName(%i), $flagStatus[%i], $TeamScore[%i]);
// }
//%game.populateTeamRankArray(%client);
//messageClient(%client, 'MsgYourRankIs', "", -1);
messageClient(%client, 'MsgMissionDropInfo', '\c0You are in mission %1 (%2).', $MissionDisplayName, $MissionTypeDisplayName, $ServerName);
// WWDispatchWaypoints(%client);
DefaultGame::clientMissionDropReady(%game, %client);
}
if ($DEVMODE) {
moveMap.bind(keyboard, "f5", dc);
moveMap.bind(keyboard, "f6", ssrl);
ObserverHUDWeaponList.delete();
}
// thanks DarkTiger (you can prob list them all via datablockGroup.getCount(); and iterate them all and do echo %obj.getName();)
function dumpDatablockNames() {
for (%i = 0; %i < datablockgroup.getCount(); %i += 1) {
@ -27,13 +63,3 @@ function ssrl() {
function dc() {
disconnect();
}
if ($DEVMODE) {
moveMap.bind(keyboard, "f5", disconnect);
ObserverHUDWeaponList.delete();
}
// Load the various modes, datablocks and functions.
exec("scripts/SkillSectorTeleporter.cs");
exec("scripts/SkillSectorAimTrainer.cs");
exec("scripts/SkillSectorTractorBeam.cs");