517 AddAmmo(leader, amTeleport, 100) |
517 AddAmmo(leader, amTeleport, 100) |
518 end |
518 end |
519 end |
519 end |
520 |
520 |
521 function AddHogs() |
521 function AddHogs() |
522 AddTeam(loc("011101001"), 0xFF0204, "ring", "UFO", "Robot", "cm_binary") |
522 AddTeam(loc("011101001"), -1, "ring", "UFO", "Robot", "cm_binary") |
523 cyborg = AddHog(loc("Unit 334a$7%;.*"), 0, 200, "cyborg1") |
523 cyborg = AddHog(loc("Unit 334a$7%;.*"), 0, 200, "cyborg1") |
524 |
524 |
525 AddTeam(loc("Natives"), 0x4980C1, "Bone", "Island", "HillBilly", "cm_birdy") |
525 AddTeam(loc("Natives"), -2, "Bone", "Island", "HillBilly", "cm_birdy") |
526 -- There are 3-4 natives in this mission |
526 -- There are 3-4 natives in this mission |
527 natives[1] = AddHog(nativeNames[leaksNum], 0, 100, nativeHats[leaksNum]) |
527 natives[1] = AddHog(nativeNames[leaksNum], 0, 100, nativeHats[leaksNum]) |
528 if m5DeployedNum ~= leaksNum and m8DeployedLeader == 0 then |
528 if m5DeployedNum ~= leaksNum and m8DeployedLeader == 0 then |
529 natives[2] = AddHog(nativeNames[m5DeployedNum], 0, 100, nativeHats[m5DeployedNum]) |
529 natives[2] = AddHog(nativeNames[m5DeployedNum], 0, 100, nativeHats[m5DeployedNum]) |
530 end |
530 end |
538 cannibalsLeft = cannibalsNum |
538 cannibalsLeft = cannibalsNum |
539 for i = 1, nativesNum do |
539 for i = 1, nativesNum do |
540 table.insert(players, natives[i]) |
540 table.insert(players, natives[i]) |
541 end |
541 end |
542 |
542 |
543 AddTeam(loc("Cannibals"), 0x4980C1, "Bone", "Island", "HillBilly", "cm_birdy") |
543 AddTeam(loc("Cannibals"), -2, "Bone", "Island", "HillBilly", "cm_birdy") |
544 for i = 1, cannibalsNum do |
544 for i = 1, cannibalsNum do |
545 cannibals[i] = AddHog(cannibalNames[i], 0, 100, "Zombi") |
545 cannibals[i] = AddHog(cannibalNames[i], 0, 100, "Zombi") |
546 table.insert(players, cannibals[i]) |
546 table.insert(players, cannibals[i]) |
547 end |
547 end |
548 playersNum = #players |
548 playersNum = #players |
549 playersLeft = playersNum |
549 playersLeft = playersNum |
550 |
550 |
551 AddTeam(loc("Hedge-cogs"), 0xFFFF01, "ring", "UFO", "Robot", "cm_cyborg") |
551 AddTeam(loc("Hedge-cogs"), -9, "ring", "UFO", "Robot", "cm_cyborg") |
552 for i = 1, cyborgsNum do |
552 for i = 1, cyborgsNum do |
553 cyborgs[i] = AddHog(cyborgNames[i], 2, 80, "cyborg2") |
553 cyborgs[i] = AddHog(cyborgNames[i], 2, 80, "cyborg2") |
554 end |
554 end |
555 |
555 |
556 if m8EnemyFled == 1 then |
556 if m8EnemyFled == 1 then |
557 AddTeam(loc("Leader"), 0xFFFF01, "ring", "UFO", "Robot", "cm_cyborg") |
557 AddTeam(loc("Leader"), -9, "ring", "UFO", "Robot", "cm_cyborg") |
558 if m8Scene == denseScene then |
558 if m8Scene == denseScene then |
559 leader = AddHog(loc("Dense Cloud"), 2, 200, nativeHats[denseNum]) |
559 leader = AddHog(loc("Dense Cloud"), 2, 200, nativeHats[denseNum]) |
560 elseif m8Scene == waterScene then |
560 elseif m8Scene == waterScene then |
561 leader = AddHog(loc("Fiery Water"), 2, 200, nativeHats[waterNum]) |
561 leader = AddHog(loc("Fiery Water"), 2, 200, nativeHats[waterNum]) |
562 elseif m8Scene == princessScene then |
562 elseif m8Scene == princessScene then |