mirror of
https://github.com/tribes2/SkillSector.git
synced 2026-03-07 06:20:35 +00:00
Update README.md to refocus on core components so I can finish this project and quit Tribes 2, minor changes
This commit is contained in:
parent
9ffd8008d4
commit
2bbf5c658f
4 changed files with 21 additions and 39 deletions
|
|
@ -37,6 +37,10 @@ function SkillSectorGame::missionLoadDone(%game) {
|
|||
function SkillSectorGame::initGameVars(%game) {
|
||||
}
|
||||
|
||||
function SkillSectorGame::onClientLeaveGame(%client) {
|
||||
CLWaypointWrangler(%client);
|
||||
}
|
||||
|
||||
// No longer dispatching 'primary' waypoints because they can't be made semi-permanent.
|
||||
function SkillSectorGame::clientMissionDropReady(%game, %client) {
|
||||
messageClient(%client, 'MsgClientReady',"", %game.class);
|
||||
|
|
@ -52,7 +56,6 @@ function SkillSectorGame::clientMissionDropReady(%game, %client) {
|
|||
DefaultGame::clientMissionDropReady(%game, %client);
|
||||
}
|
||||
|
||||
|
||||
function SkillSectorGame::gameOver(%game) {
|
||||
DefaultGame::gameOver(%game);
|
||||
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ function BankTeleporter::onCollision(%data, %obj, %collider) {
|
|||
messageClient(%collider.client, 'MsgStationDenied', '\c2Teleporter is recharging please stand by. ~wfx/powered/nexus_deny.wav');
|
||||
return;
|
||||
}
|
||||
messageClient(%collider.client, 'MsgTeleportStart', '\c2Teleporter is calculating transport coherence... ~wfx/misc/nexus_idle.wav');
|
||||
//messageClient(%collider.client, 'MsgTeleportStart', '\c2Teleporter is calculating transport coherence... ~wfx/misc/nexus_idle.wav');
|
||||
%collider.setVelocity("0 0 0");
|
||||
%collider.setMoveState(true);
|
||||
%collider.startFade(1000, 0, true);
|
||||
|
|
|
|||
|
|
@ -42,6 +42,11 @@ function WaypointWranglerZone::onLeaveTrigger(%this, %trigger, %obj) {
|
|||
function WaypointWranglerZone::onTickTrigger(%this, %trigger) {
|
||||
}
|
||||
|
||||
function CLWaypointWrangler(%client) {
|
||||
// cancel any ongoing waypoint wrangler scheduler
|
||||
cancel(%client.wwsched);
|
||||
}
|
||||
|
||||
function ShutdownWaypointWrangler() {
|
||||
%count = ClientGroup.getCount();
|
||||
for (%i = 0; %i < %count; %i++) {
|
||||
|
|
@ -112,9 +117,12 @@ function WWDispatch(%client, %zoneIndex) {
|
|||
for (%i = 1; %i < $WPZPoints[%zoneIndex, 0]+1; %i++) {
|
||||
showWaypoint(%client, $WPZPoints[%zoneIndex, %i]);
|
||||
}
|
||||
cancel(%client.wwsched); // can't be dispatched for more than one zone at once
|
||||
%client.wwsched = schedule(1900, 0, WWDispatch, %client, %zoneIndex);
|
||||
}
|
||||
|
||||
// This function is unnecessarily expensive, this lookup could be done by attaching the zone and index to the trigger.
|
||||
// I'm also too lazy to re-write it now
|
||||
function WWStartWaypointDispatch(%client, %zone) {
|
||||
// echo("zone count:" @ $WPZNextFree);
|
||||
for (%i = 0; %i < $WPZNextFree; %i++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue