equal
deleted
inserted
replaced
556 ) |
556 ) |
557 |
557 |
558 SetAmmoTexts(amAirAttack, loc("Place waypoint"), loc("Racer tool"), |
558 SetAmmoTexts(amAirAttack, loc("Place waypoint"), loc("Racer tool"), |
559 loc("Build an awesome race track by placing|waypoints which the hedgehogs have to|touch in any order to finish a round.") .. "|" .. |
559 loc("Build an awesome race track by placing|waypoints which the hedgehogs have to|touch in any order to finish a round.") .. "|" .. |
560 loc("Hedgehogs will start in the first waypoint.") .. "|" .. |
560 loc("Hedgehogs will start in the first waypoint.") .. "|" .. |
561 loc("Cursor: Place waypoint")) |
561 loc("Cursor: Place waypoint") .. "|" .. |
|
562 loc("Precise: Remove previous waypoint")) |
562 |
563 |
563 SetAmmoTexts(amSkip, loc("Finish waypoint placement"), loc("Racer tool"), |
564 SetAmmoTexts(amSkip, loc("Finish waypoint placement"), loc("Racer tool"), |
564 loc("Happy with your race track?|Then stop building and start racing!") .. "|" .. |
565 loc("Happy with your race track?|Then stop building and start racing!") .. "|" .. |
565 loc("Or let the next player place waypoints|if less than 2 waypoints have been placed.") .. "|" .. |
566 loc("Or let the next player place waypoints|if less than 2 waypoints have been placed.") .. "|" .. |
566 loc("Attack: Activate")) |
567 loc("Attack: Activate")) |
582 |
583 |
583 wpCount = wpCount + 1 |
584 wpCount = wpCount + 1 |
584 |
585 |
585 AddCaption(string.format(loc("Waypoint placed. Available points remaining: %d"), wpLimit-wpCount)) |
586 AddCaption(string.format(loc("Waypoint placed. Available points remaining: %d"), wpLimit-wpCount)) |
586 end |
587 end |
|
588 end |
|
589 end |
|
590 |
|
591 function onPrecise() |
|
592 if not racerActive and CurrentHedgehog ~= nil and GetCurAmmoType() == amAirAttack then |
|
593 DeletePreviousWayPoint() |
|
594 end |
|
595 end |
|
596 |
|
597 function DeletePreviousWayPoint() |
|
598 if wpCount > 0 then |
|
599 wpCount = wpCount - 1 |
|
600 wpX[wpCount] = nil |
|
601 wpY[wpCount] = nil |
|
602 wpCol[wpCount] = nil |
|
603 DeleteVisualGear(wpCirc[wpCount]) |
|
604 wpCirc[wpCount] = nil |
|
605 AddCaption(string.format(loc("Waypoint removed. Available points: %d"), wpLimit-wpCount)) |
|
606 else |
|
607 PlaySound(sndDenied) |
|
608 AddCaption(loc("No waypoint to be removed!")) |
587 end |
609 end |
588 end |
610 end |
589 |
611 |
590 function onSpecialPoint(x,y,flag) |
612 function onSpecialPoint(x,y,flag) |
591 if flag == 99 then |
613 if flag == 99 then |