OK, so I made a new ballistic weapon called the Vulcan, (In this case "made" means made a table entry and then stole the effect from the Procyon insurgency. I'm going to need to ask permission to use it.) And I want it to have a range of 1800 meters. But, currently it can hit an Aten from 2400 metres out. How do I make it have a range of 1800 meters? (I know it has to do with a combination of life and velocity, i just don't have a formula for figuring this out.
Table Entry:
; ----------------------------------------------------------------------------------
; Vulcan
;
$Name: Vulcan
+Title: XSTR("GTW-84 Vulcan", -1)
+Description:
XSTR(
"Ballistic Weapon
Level 2 Hull Damage
Level 1 Shield Damage
Power Use 1W Very High ROF 2.5/s", -1)
$end_multi_text
+Tech Title: XSTR("GTW-84 Vulcan", -1)
+Tech Anim: Tech_GTW_ML-70
+Tech Description:
XSTR(
"GTW-84 Vulcan description: write me!", -1)
$end_multi_text
$Model File: none
@Laser Bitmap: newglo10
@Laser Glow: 2_laserglow03
@Laser Color: 125, 125, 125
@Laser Color2: 10, 10, 10
@Laser Length: 10.0
@Laser Head Radius: 0.2
@Laser Tail Radius: 0.2
$Mass: 0.2
$Velocity: 2500.0 ;; speed of the weapon (initially) -- may or may not
change
$Fire Wait: 0.1 ;; in seconds
$Damage: 9
$Armor Factor: 1.2
$Shield Factor: 0.5
$Subsystem Factor: 0.6
$Lifetime: 2.0 ;; How long this thing lives
$Energy Consumed: 0.10 ;; Energy used when fired
$Cargo Size: 0.01 ;; Amount of space taken up in weapon cargo
$Homing: NO
$LaunchSnd: 163 ;; The sound it makes when fired
$ImpactSnd: 162 ;; The sound it makes when it hits something
$Rearm Rate: 12.0
$Flags: ("in tech database" "player allowed" "stream" "ballistic")
$Trail:
+Start Width:0.2
+End Width:0.2
+Start Alpha:0.8
+End Alpha: 0.0
+Max Life: 0.25
+Bitmap: newmiss6
$Icon: iconflail
$Anim: flail2
$Impact Explosion: none
(I know there's no Vulcan D: I only need one Vulcan.)