153 |
153 |
154 -- WEAPON CRATES |
154 -- WEAPON CRATES |
155 -- Weapons which shouldn't be aded: |
155 -- Weapons which shouldn't be aded: |
156 -- Air attack, napalm, drillstrike: Overwritten weapons for the Construction Mode tools |
156 -- Air attack, napalm, drillstrike: Overwritten weapons for the Construction Mode tools |
157 -- Mine strike: Is currently broken |
157 -- Mine strike: Is currently broken |
158 -- Piano strike: Hog is resurrected by respawner |
158 -- Piano strike: Hog is resurrected by respawner. Not strictly prohibited, however. |
159 local atkArray = { |
159 local atkArray = { |
160 {amBazooka, 2*costFactor}, |
160 {amBazooka, 2*costFactor}, |
161 --{amBee, 4*costFactor}, |
161 --{amBee, 4*costFactor}, |
162 {amMortar, 1*costFactor}, |
162 {amMortar, 1*costFactor}, |
163 {amDrill, 3*costFactor}, |
163 {amDrill, 3*costFactor}, |
205 |
205 |
206 -- UTILITY CRATES -- |
206 -- UTILITY CRATES -- |
207 |
207 |
208 -- Utilities which shouldn't be added: |
208 -- Utilities which shouldn't be added: |
209 -- * Teleport: We have teleportation node |
209 -- * Teleport: We have teleportation node |
210 -- * Switch: Always infinite |
210 -- * Switch: Infinite in default Construction Mode weapons scheme |
211 -- * Girder, rubber: Requires construction station |
211 -- * Girder, rubber: Requires construction station |
212 -- * Resurrector: We have the resurrector structure for this |
212 -- * Resurrector: We have the resurrector structure for this |
213 |
213 |
214 -- Utilities which might be weird for this mode: |
214 -- Utilities which might be weird for this mode: |
215 -- * Tardis: Randomly teleports hog, maybe even into enemy clan's area |
215 -- * Tardis: Randomly teleports hog, maybe even into enemy clan's area |
710 for wpnIndex = 1, #utilArray do |
710 for wpnIndex = 1, #utilArray do |
711 AddAmmo(gear, utilArray[wpnIndex][1], 0) |
711 AddAmmo(gear, utilArray[wpnIndex][1], 0) |
712 end |
712 end |
713 |
713 |
714 AddAmmo(gear, amCMStructurePlacer, 100) |
714 AddAmmo(gear, amCMStructurePlacer, 100) |
715 AddAmmo(gear, amSwitch, 100) |
|
716 AddAmmo(gear, amSkip, 100) |
715 AddAmmo(gear, amSkip, 100) |
717 |
716 |
718 end |
717 end |
719 end |
718 end |
720 |
719 |
1487 -- Engine already placed hogs in fort mode |
1486 -- Engine already placed hogs in fort mode |
1488 if not fortMode then |
1487 if not fortMode then |
1489 FindPlace(gear, false, clanBoundsSX[GetHogClan(gear)], clanBoundsEX[GetHogClan(gear)],true) |
1488 FindPlace(gear, false, clanBoundsSX[GetHogClan(gear)], clanBoundsEX[GetHogClan(gear)],true) |
1490 end |
1489 end |
1491 |
1490 |
1492 |
|
1493 -- Add core ammo |
1491 -- Add core ammo |
1494 AddAmmo(gear, amCMStructurePlacer, 100) |
1492 AddAmmo(gear, amCMStructurePlacer, 100) |
1495 AddAmmo(gear, amSwitch, 100) |
|
1496 AddAmmo(gear, amSkip, 100) |
1493 AddAmmo(gear, amSkip, 100) |
1497 |
1494 |
1498 -- Remove the other special Construction Mode tools |
1495 -- Remove special Construction Mode stuff. |
|
1496 -- This stuff is added and removed dynamically based on |
|
1497 -- proximity to structures. |
1499 AddAmmo(gear, amCMObjectPlacer, 0) |
1498 AddAmmo(gear, amCMObjectPlacer, 0) |
1500 AddAmmo(gear, amCMCratePlacer, 0) |
1499 AddAmmo(gear, amCMCratePlacer, 0) |
1501 |
1500 AddAmmo(gear, amGirder, 0) |
1502 -- Mine strike is broken |
1501 AddAmmo(gear, amRubber, 0) |
|
1502 AddAmmo(gear, amTeleport, 0) |
|
1503 |
|
1504 -- Mine strike is broken, so we force-remove it |
1503 AddAmmo(gear, amMineStrike, 0) |
1505 AddAmmo(gear, amMineStrike, 0) |
|
1506 |
|
1507 -- Everything else is set by the weapon scheme. |
|
1508 -- Infinite switch is recommended. |
1504 end |
1509 end |
1505 |
1510 |
1506 function onGameStart() |
1511 function onGameStart() |
1507 |
1512 |
1508 trackTeams() |
1513 trackTeams() |