[MOD] It's a Giant Beam!


#1

I was messing around trying to make a weapon like the Reflex Cannon from Robotech, and I came up with this. It would be neat if you could and an AOE affect to weapons so it destroyed… er, hit… everything in it’s path :). And maybe also damage over time for beams that have a long shot.

[code][config]
unlockcost = 0
lockable = 0
armour_penetration = 90
beam_duration = 5000
beamwidth = 250.0
blasttexture = “beam_red_atlas.dds”
category = “WEAPONS”
classname = “SIM_BeamWeaponModule”
color = 1,1,1
cost = 300
crew_required = 50
damage = 300
description = “It’s a huge BEAM!”
fire_interval = 10000
grain = “beam_red_atlas.dds”
guiname = “BIG Cruiser Beam Laser”
has_grain = 50
hitpoints = 200
icon = turret
min_range = 500
max_range = 1500
name = “BIG_cruiser_beamlaser”
optimum_range = 1000
powerconsumed = 50
shield_penetration = 60
size = “CRUISER”
sound = “data/sounds/cruiser_beamlaser.ogg”
soundvolume = 1.0
texture = “beam_red_atlas.dds”
tracking_speed = .6
turret_sprite = turret_las_v1
turretsize = 12.0
weight = 225
slot_type = TURRET

[dataitems]
0 = cost,DECIMAL
1 = weight,DECIMAL
2 = hitpoints,DECIMAL
3 = powerconsumed,DECIMAL
4 = max_range,DECIMAL
5 = damage,DECIMAL
6 = fire_interval,INTEGER
7 = tracking_speed,DECIMAL
8 = shield_penetration,DECIMAL
9 = armour_penetration,DECIMAL
10 = crew_required,INTEGER
11 = optimum_range,DECIMAL
12 = min_range,DECIMAL[/code]


#2

Oh, I also noticed this weapon causes a bug. If you go straight to ship design my game crashes with: “Turrent mapping not found [turret_plasma_v4]==>[empire]:…\src\SIM_Race.cpp 176”. If I go to a battle or a challenge first, then the ship designer it works. Have to delete the weapon to fix the bug. Not sure if something in it is messed up.


#3

O_O Holy… Shit… That’s a big beam…


#4

right when i start the game, it crashes with this error (because of the giant beam laser):

Unknown Slot Type for module:…\src\SIM_ShipModuleType.cpp 68

I looked at the module type for the laser and it said TURRET.

What’s the matter? How do i get it fixed?


#5

wait, nevermind, i saved it in rich text format, then i changed it to plain text, and it worked. I tested it out, and it’s awesome. :smiley: but, the death star superlaser (in another mod), unlike the BIG beam laser, can kill ANY ship in one shot.