mirror of
https://github.com/tribes2/SkillSector.git
synced 2026-02-25 17:43:42 +00:00
interim commit - added more teleporters, preserved some SSWW information before it's nuked for the final impl
This commit is contained in:
parent
4f0291118b
commit
f38bbe3e40
5 changed files with 278 additions and 37 deletions
|
|
@ -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");
|
||||
Loading…
Add table
Add a link
Reference in a new issue