Hard Light Productions Forums
Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: krevett62 on February 17, 2015, 09:19:48 am
-
Hi, I'm trying to use a Burst Flak weapon for capship in a custom mod (like in BP), the entry is almost the same but the weapon fire continuously as if Fire wait was ignored. I really don't understand what is going wrong here...
$Name: SL-Burst Flak
$Model File: blip.pof
$Mass: 0.2
$Velocity: 800.0
$Fire Wait: 1.0
$Damage: 20
$Damage Type: Flak
$Shockwave Damage Type: Flak
$Blast Force: 25.0
$Inner Radius: 10.0
$Outer Radius: 20.0
$Shockwave Speed: 0.0
$Armor Factor: 1.0
$Shield Factor: 1.0
$Subsystem Factor: 0.2
$Lifetime: 1.5
$Energy Consumed: 0.0
$Cargo Size: 1.0
$Homing: NO
$LaunchSnd: 116
$ImpactSnd: 117
+Weapon Range: 1500
$Flags: ( "Big Ship" "Flak" "particle spew" "same turret cooldown" "small only" )
$Trail:
+Start Width: 3.0
+End Width: 0.0
+Start Alpha: 1.0
+End Alpha: 0.0
+Max Life: 0.10
+Bitmap: Flak_trail
$Impact Explosion: Exp20
$Impact Explosion Radius: 12.5
$Piercing Impact Explosion: exp06
$Piercing Impact Radius: 7.5
$Piercing Impact Velocity: 10
$Piercing Impact Splash Velocity: -10
$Piercing Impact Variance: 20000
$Piercing Impact Particles: 5
$Muzzleflash: standardflak
$Pspew:
+Count: 2
+Time: 1
+Vel: 0
+Radius: 2.0
+Life: 0.0125
+Scale: 0.025
+Bitmap: Cmuzzle_0001
$FOF: 5.0
$Shots: 6
It shoult fire six flak at a time once every second but instead it fires at an increased ROF (like 0.1 or 0.2 perhaps) making it absolutely overpowered!
-
$Shots: might not work for turrets.
try
http://www.hard-light.net/wiki/index.php/Weapons.tbl#.24Burst_Shots:
$Burst Shots:
FS2 Open, 3.6.11:
Defines the number of shots in a burst
Shots in a burst use shorter ( $Burst Delay: ) delay than usually
Syntax: Integer
$Burst Delay:
FS2 Open, 3.6.11:
Defines the time in milliseconds between the shots in a burst
Syntax: Integer
$Burst Flags:
FS2 Open, 3.6.11:
Defines the flags used to define the burst firing behaviour
Syntax: ( String String ), list of flags
Available burst flags:
"fast firing", acts as if same turret cooldown flag would be used between the shots in the burst.
"random length", makes AI to fire burst of random length (from 1 to burst shots).
you will also have much more control over the effect you are trying to achieve
-
Ok I found where the problem is: I mount this weapon on a turret with two firing points and the "salvo mode" flag (to have a 12 flak burst as in BP), but it seems that this flag do not work as intended with weapon having the $Shots optional line. When I remove the flag, the turret fire normally once evry second but with "salvo mode" enabled, fire wait seems to be broken with a multiple shot weapon.
Edit: It works as intended with burst shots setting the delay to 5ms even with salvo mode enabled!