SkillSector/scripts/SkillSectorGame.cs

34 lines
966 B
C#

// SkillSector game has a README.md, read that instead.
// author: loop
// date: 10/2025
// url: https://github.com/tribes2/SkillSector
// Allows you to modify AimTrain placeholder entities.
// Don't leave it on or AimTrain will be a bunch of statues that do nothing.
$DEVMODE = 1;
// 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) {
echo("Datablock " @ %i @ " named " @ datablockgroup.getObject(%i).getName());
}
}
// DEVMODE reload/test function
function ssrl() {
exec("scripts/SkillSectorGame.cs");
findAndReplacePlaceholders();
}
function dc() {
disconnect();
}
if ($DEVMODE) {
moveMap.bind(keyboard, "f5", disconnect);
}
// Load the various modes, datablocks and functions.
exec("scripts/SkillSectorTeleporter.cs");
exec("scripts/SkillSectorAimTrainer.cs");