Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: Cyborg17 on August 31, 2011, 08:31:28 pm

Title: Beam Mis-firing (Resolved) :-)
Post by: Cyborg17 on August 31, 2011, 08:31:28 pm
Hey guys, I've been working on a couple beam cannons, but during fredding, the beam is being used to shoot down fighters and bombers.  It's pretty confusing since they are type 0 beams..... :confused:

Anyway, here's the table file:
Code: [Select]
;Fomorian Beam Cannons
;
$Name: SBlueK
$Model File:                    none ; laser1-1.pof
@Laser Bitmap:                  laserglow01
@Laser Color: 0, 0, 255
@Laser Length: 0.0
@Laser Head Radius: 0.60
@Laser Tail Radius: 0.60
$Mass: 500.0
$Velocity: 2000.0
$Fire Wait: 9.0
$Damage: 682
$Armor Factor: 1.0
$Shield Factor: 0.6
$Subsystem Factor: 3.0
$Lifetime: 4.0
$Energy Consumed: 0.30
$Cargo Size: 0.0
$Homing: NO
$LaunchSnd: 168
$ImpactSnd: 88
+Weapon Range: 4500
$Flags: ( "captial+" "huge "same turret cooldown" "pierce shields" "Big Ship" "Beam" )
$Icon: icongun05
$Anim: LoadGun07
$Impact Explosion: ExpMissileHit1
$Impact Explosion Radius: 10.0
$BeamInfo:
+Type: 0
+Life: 2.3
+Warmup: 3812
+Warmdown: 2851
+Radius: 20
+PCount: 20
+PRadius: 1.4
+PAngle: 60.0
+PAni: Particle_Blue
+Miss Factor: 1.0 1.1 1.2 1.3 1.4
+BeamSound: 164
+WarmupSound: 165
+WarmdownSound: 166
+Muzzleglow: BeamGlow9
+Shots: 0
+ShrinkFactor: 0
+ShrinkPct: 0
+Range: 4500
+Attenuation: .9

$Section:
+Index: 0
+Width: 12
+Texture: beam-dblue2
+RGBA Inner: 0 60 76 128
+RGBA Outer: 0 60 96 100
+Flicker: 0.15
+Zadd: 1.0
$Section:
+Index: 0
+Width: 12
+Texture: beam-dblue
+RGBA Inner: 163 163 199 1
+RGBA Outer: 210 210 255 125
+Flicker: 0.15
+Zadd: 0.0

Also, since I'm posting, does anybody know how to correctly index the beam sections?  Every time I edit them, I get an error.
Title: Re: Beam Mis-firing
Post by: Talon 1024 on August 31, 2011, 08:41:40 pm
Beam section indexes are only used when you are trying to edit an existing beam weapon, in which case the new data will override the old data.
Title: Re: Beam Mis-firing
Post by: Cyborg17 on August 31, 2011, 09:02:20 pm
Oh, thanks.  Now all the wiki entries make sense. >.>
Title: Re: Beam Mis-firing
Post by: Alan Bolte on August 31, 2011, 10:52:33 pm
Code: [Select]
$Flags: ( "captial+" "huge "same turret cooldown" "pierce shields" "Big Ship" "Beam" )You're missing a double quote after the huge flag.
Title: Re: Beam Mis-firing
Post by: pecenipicek on September 01, 2011, 01:27:44 am
also, misspelled "capital+"


its not "captial+", ya know?
Title: Re: Beam Mis-firing
Post by: Cyborg17 on September 01, 2011, 01:07:51 pm
Got it.  Testing now.

EDIT:  Thanks, guys.  It's all set.