Thread: rate of fire?
View Single Post
Old 02-12-2007, 12:57 AM   #2
Slocket
Junior Member
 
Join Date: Jan 2006
Posts: 309
It is in the HardPoints.xml. Note there are total four of those Lasers to be modified to whatever you want on that hardpoint for weapons and firing characteristics. Also the recharge rate can be a random number from a given minimum to maximum.

If you look up the Projectile.xml listed "Proj_Ship_Medium_Laser_Cannon_Green", you can change the damage also.

The random nature of the recharge rate can be applied to other ships that have a fixed recharge rate, to add some random lucky shots into the mix.

The delay between the number of shots (5) is the Pulse delay value (0.2) seconds. The total time before the next volley is from 2 to 3 seconds (related to amount of energy left maybe or just random).

excerpt:

<!-- Hard points for the Tartan Cruiser -->

<HardPoint Name="HP_Tartan_Cruiser_00">
<Type> HARD_POINT_WEAPON_LASER </Type>
<Is_Targetable>No</Is_Targetable>
<Is_Destroyable>No</Is_Destroyable>

<Damage_Type> Damage_Tartan_Cruiser </Damage_Type>
<Fire_Bone_A>MuzzleA_00</Fire_Bone_A>
<Fire_Bone_B>MuzzleA_00</Fire_Bone_B>
<Fire_Cone_Width>65.0</Fire_Cone_Width>
<Fire_Cone_Height>45.0</Fire_Cone_Height>
<Fire_Projectile_Type>Proj_Ship_Medium_Laser_Canno n_Green</Fire_Projectile_Type>
<Fire_Min_Recharge_Seconds>2.0</Fire_Min_Recharge_Seconds>
<Fire_Max_Recharge_Seconds>3.0</Fire_Max_Recharge_Seconds>
<Fire_Pulse_Count>5</Fire_Pulse_Count>
<Fire_Pulse_Delay_Seconds>0.2</Fire_Pulse_Delay_Seconds>
<Fire_Range_Distance>1000.0</Fire_Range_Distance>
<Fire_SFXEvent>Unit_Empire_Ship_Laser_Fire</Fire_SFXEvent>

<Fire_Inaccuracy_Distance> Fighter, 5.8 </Fire_Inaccuracy_Distance>
<Fire_Inaccuracy_Distance> Bomber, 5.3 </Fire_Inaccuracy_Distance>
<Fire_Inaccuracy_Distance> Transport, 1.0 </Fire_Inaccuracy_Distance>
<Fire_Inaccuracy_Distance> Corvette, 10.0 </Fire_Inaccuracy_Distance>
<Fire_Inaccuracy_Distance> Frigate, 70.0 </Fire_Inaccuracy_Distance>
<Fire_Inaccuracy_Distance> Capital, 30.0 </Fire_Inaccuracy_Distance>
<Fire_Inaccuracy_Distance> Super, 30.0 </Fire_Inaccuracy_Distance>
<Allow_Opportunity_Fire_When_Targeting>False</Allow_Opportunity_Fire_When_Targeting>
</HardPoint>

Last edited by Slocket; 02-12-2007 at 01:12 AM.
Slocket is offline   you may: quote & reply,