mirror of
https://github.com/tribes2/SkillSector.git
synced 2026-02-25 17:43:42 +00:00
Interim commit - added basic AimTrainer logic but no time limit / scoring mechanism yet. Copied some of the Teleporter code from classic's MPB but don't need as much of the logic around available spawns
This commit is contained in:
parent
e9877b8104
commit
1e73ba4697
6 changed files with 989 additions and 2 deletions
34
scripts/SkillSectorGame.cs
Normal file
34
scripts/SkillSectorGame.cs
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
// 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");
|
||||
Loading…
Add table
Add a link
Reference in a new issue