equal
deleted
inserted
replaced
394 cyborgsNum = cyborgsNum - 1 |
394 cyborgsNum = cyborgsNum - 1 |
395 end |
395 end |
396 HideHedge(cyborg) |
396 HideHedge(cyborg) |
397 end |
397 end |
398 |
398 |
399 function SetupEvents() |
|
400 end |
|
401 |
|
402 function SetupAmmo() |
399 function SetupAmmo() |
403 AddAmmo(cyborgs[1], amBazooka, 100) |
400 AddAmmo(cyborgs[1], amBazooka, 100) |
404 AddAmmo(cyborgs[1], amGrenade, 100) |
401 AddAmmo(cyborgs[1], amGrenade, 100) |
405 AddAmmo(cyborgs[1], amClusterBomb, 100) |
402 AddAmmo(cyborgs[1], amClusterBomb, 100) |
406 AddAmmo(cyborgs[1], amSniperRifle, 1) |
403 AddAmmo(cyborgs[1], amSniperRifle, 1) |
480 function onGameStart() |
477 function onGameStart() |
481 GetVariables() |
478 GetVariables() |
482 SetupAmmo() |
479 SetupAmmo() |
483 SetupPlace() |
480 SetupPlace() |
484 AnimationSetup() |
481 AnimationSetup() |
485 SetupEvents() |
|
486 AddAnim(startAnim) |
482 AddAnim(startAnim) |
487 AddFunction({func = AfterStartAnim, args = {}}) |
483 AddFunction({func = AfterStartAnim, args = {}}) |
488 end |
484 end |
489 |
485 |
490 function onGameTick() |
486 function onGameTick() |
501 if GetGearType(gear) == gtHedgehog then |
497 if GetGearType(gear) == gtHedgehog then |
502 if GetHogTeamName(gear) == loc("Biomechanic Team") then |
498 if GetHogTeamName(gear) == loc("Biomechanic Team") then |
503 cyborgsLeft = cyborgsLeft - 1 |
499 cyborgsLeft = cyborgsLeft - 1 |
504 end |
500 end |
505 end |
501 end |
506 end |
|
507 |
|
508 function onGearAdd(gear) |
|
509 end |
502 end |
510 |
503 |
511 function onAmmoStoreInit() |
504 function onAmmoStoreInit() |
512 SetAmmo(amSkip, 9, 0, 0, 0) |
505 SetAmmo(amSkip, 9, 0, 0, 0) |
513 SetAmmo(amSwitch, 9, 0, 0, 0) |
506 SetAmmo(amSwitch, 9, 0, 0, 0) |
543 end |
536 end |
544 end |
537 end |
545 end |
538 end |
546 end |
539 end |
547 |
540 |
548 function onGearDamage(gear, damage) |
|
549 end |
|
550 |
|
551 function onPrecise() |
541 function onPrecise() |
552 if GameTime > 2500 and AnimInProgress() then |
542 if GameTime > 2500 and AnimInProgress() then |
553 SetAnimSkip(true) |
543 SetAnimSkip(true) |
554 return |
544 return |
555 end |
545 end |