| 298 | | elseif modOptions.commtype == 'cat' then |
| 299 | | for name, ud in pairs(UnitDefs) do |
| 300 | | local unitname = ud.unitname |
| 301 | | if (unitname == "armcom" or unitname == "corcom") then |
| 302 | | ud.maxdamage = 4000 |
| 303 | | ud.energymake = 8 |
| 304 | | ud.explodeas = "COMMANDER_BLAST_CAT" |
| 305 | | ud.selfdestructas = "COMMANDER_BLAST_CAT" |
| 306 | | ud.featuredefs.dead.metal = 3500 |
| 307 | | ud.featuredefs.dead2.metal = 3500 |
| 308 | | end |
| 309 | | |
| 310 | | if (unitname == "corllt") then |
| 311 | | ud.description = "Light Plasma Accelerator" |
| 312 | | end |
| 313 | | |
| 314 | | if (unitname == "corhlt") then |
| 315 | | ud.description = "High-Energy Plasma Accelerator" |
| 316 | | end |
| 317 | | |
| 318 | | end --for |
| | 298 | elseif modOptions.commtype == 'cat' then |
| | 299 | |
| | 300 | for name, ud in pairs(UnitDefs) do |
| | 301 | local unitname = ud.unitname |
| | 302 | if (unitname == "armcom" or unitname == "corcom") then |
| | 303 | ud.maxdamage = 3500 |
| | 304 | ud.explodeas = "COMMANDER_BLAST_CAT" |
| | 305 | ud.selfdestructas = "COMMANDER_BLAST_CAT" |
| | 306 | ud.featuredefs.dead.metal = 3500 |
| | 307 | ud.featuredefs.dead2.metal = 3000 |
| | 308 | ud.candgun = true |
| | 309 | end |
| | 310 | end --for |
| | 311 | |