mirror of
https://github.com/Ragora/T2-BoL.git
synced 2026-03-03 20:40:22 +00:00
Initial commit.
This commit is contained in:
commit
9a05e8d86c
652 changed files with 154587 additions and 0 deletions
37
scripts/autoexec/staticWaypointFix.cs
Normal file
37
scripts/autoexec/staticWaypointFix.cs
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
// #autoload
|
||||
// #name = Static Waypoint Fix
|
||||
// #version = 1.0
|
||||
// #category = Fix
|
||||
// #warrior = Jsut
|
||||
// #description = Fixes static waypoints in the command circuit.
|
||||
|
||||
package JsutStaticWaypointFix
|
||||
{
|
||||
|
||||
function CommanderTree::processCommand(%this, %command, %target, %typeTag)
|
||||
|
||||
{
|
||||
|
||||
parent::processCommand(%this, %command, %target, %typeTag);
|
||||
|
||||
// special case?
|
||||
|
||||
if(%typeTag < 0)
|
||||
{
|
||||
switch$(getTaggedString(%command))
|
||||
{
|
||||
// waypoints: tree owns the waypoint targets
|
||||
case "CreateWayPoint":
|
||||
%target.settext(%this.currentWaypointID);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
activatePackage(JsutStaticWaypointFix);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue