equal
deleted
inserted
replaced
27 |
27 |
28 -- i think the remainder 0 .456 sec of the tracktime isnt getting reset on newturn |
28 -- i think the remainder 0 .456 sec of the tracktime isnt getting reset on newturn |
29 |
29 |
30 -- update feedback |
30 -- update feedback |
31 |
31 |
|
32 ------- |
|
33 -- 0.2 |
|
34 ------- |
|
35 |
|
36 -- allow gameflags |
|
37 -- extend time to 90s |
|
38 -- remove other air-attack based weps |
|
39 -- turn off water rise for sd |
|
40 |
32 ----------------------------- |
41 ----------------------------- |
33 -- SCRIPT BEGINS |
42 -- SCRIPT BEGINS |
34 ----------------------------- |
43 ----------------------------- |
35 |
44 |
36 loadfile(GetDataPath() .. "Scripts/Locale.lua")() |
45 loadfile(GetDataPath() .. "Scripts/Locale.lua")() |
367 ---------------------------------- |
376 ---------------------------------- |
368 -- GAME METHODS / EVENT HANDLERS |
377 -- GAME METHODS / EVENT HANDLERS |
369 ---------------------------------- |
378 ---------------------------------- |
370 |
379 |
371 function onGameInit() |
380 function onGameInit() |
372 GameFlags = gfInfAttack + gfSolidLand + gfInvulnerable |
381 GameFlags = GameFlags + gfInfAttack + gfInvulnerable |
373 CaseFreq = 0 |
382 CaseFreq = 0 |
374 Delay = 1000 -- doh |
383 TurnTime = 90000 |
|
384 WaterRise = 0 |
375 end |
385 end |
376 |
386 |
377 |
387 |
378 function onGameStart() |
388 function onGameStart() |
379 RebuildTeamInfo() |
389 RebuildTeamInfo() |
456 gameBegun = false |
466 gameBegun = false |
457 racerActive = false -- newadd |
467 racerActive = false -- newadd |
458 end |
468 end |
459 |
469 |
460 AddAmmo(CurrentHedgehog, amTardis, 0) |
470 AddAmmo(CurrentHedgehog, amTardis, 0) |
|
471 AddAmmo(CurrentHedgehog, amDrillStrike, 0) |
|
472 AddAmmo(CurrentHedgehog, amMineStrike, 0) |
|
473 AddAmmo(CurrentHedgehog, amNapalm, 0) |
|
474 AddAmmo(CurrentHedgehog, amPiano, 0) |
461 |
475 |
462 end |
476 end |
463 |
477 |
464 function onGameTick() |
478 function onGameTick() |
465 |
479 |
550 function onGearResurrect(gear) |
564 function onGearResurrect(gear) |
551 |
565 |
552 AddVisualGear(GetX(gear), GetY(gear), vgtBigExplosion, 0, false) |
566 AddVisualGear(GetX(gear), GetY(gear), vgtBigExplosion, 0, false) |
553 |
567 |
554 -- if the player stops and "dies" or flies into water, stop him racing |
568 -- if the player stops and "dies" or flies into water, stop him racing |
555 if gear == CurrentHedgehog then |
569 --[[if gear == CurrentHedgehog then |
556 DisableTumbler() |
570 DisableTumbler() |
557 ShowMission(loc("RACER"), |
571 ShowMission(loc("RACER"), |
558 loc("TRACK FAILED!"), |
572 loc("TRACK FAILED!"), |
559 loc("WINNING TIME: ") .. bestTimeComment, -amSkip, 4000) |
573 loc("WINNING TIME: ") .. bestTimeComment, -amSkip, 4000) |
560 end |
574 end]] |
561 |
575 |
562 end |
576 end |
563 |
577 |
564 function onGearAdd(gear) |
578 function onGearAdd(gear) |
565 |
579 |
585 cGear = nil |
599 cGear = nil |
586 end |
600 end |
587 |
601 |
588 end |
602 end |
589 |
603 |
590 function onAmmoStoreInit() |
604 --[[function onAmmoStoreInit() |
591 SetAmmo(amRope, 9, 0, 0, 0) |
605 SetAmmo(amRope, 9, 0, 0, 0) |
592 SetAmmo(amJetpack, 9, 0, 0, 0) |
606 SetAmmo(amJetpack, 9, 0, 0, 0) |
593 SetAmmo(amSkip, 9, 0, 0, 0) |
607 SetAmmo(amSkip, 9, 0, 0, 0) |
594 end |
608 end]] |
595 |
609 |
596 |
610 |