Firefight

Firefight

Not enough ratings
How to edit Weapons in files.
By Robloxian_WarMachine
Warning. if you do not remember or have the previous values and your game breaks try to reinstall the game to fix it.
   
Award
Favorite
Favorited
Unfavorite
How to access the files.


To get to the files and edit you first wanna go to "This PC" or your "Local Disk" then go to "Program Files (x86)" and find "Steam". Once in steam go to "steamapps" and click "common" there you will find the folder Firefight. Once in the folder click data to find four other folders (Surnames not counted) there is probably already a guide on how to edit Infantry and Vehicles so we will focus on "Weapons".

Program Files (x86) > Steam > steamapps > common > Firefight > Data > Weapons

in Weapons there is huge list of a variety of guns and these are used in vehicles, infantry, and even anti tank guns and artillery. I will be splitting these into 2 parts and these are:

1.Guns (These include AT guns and RPGs)

2.Cannons (These Include Auto Cannons)
How to edit the guns
This will teach you on how to edit and how some values of guns that can change how they work.

here are some things you should avoid changing since they don't affect or might break the gun:
(Crossed ones are not included)

1.<dimensions>
<calibre>7.92</calibre>
<barrel_length>63</barrel_length>

2.<shoot>
<sound_shoot>shoot_LMG</sound_shoot>
<rof>900</rof>
<reload>RELOAD_AUTOMATIC</reload>

3.<magazine>
<capacity>75</capacity>
<sound_reload>reload_magazine</sound_reload>

4.<usage>
<countries>GERMANY</countries>

Now lets start off with ROF or Rate of Fire and Magazine capacity will be using the MG 34 as an example:



This rate of fire is different from the Cannon rate of fire.




ROF will change the rate of fire of the gun like the MG 34's 900 rounds per minute.
to change the the rate of fire we first have to change the value of: <rof>900</rof> to make a change.

900 represents the rounds per minute it fires so we only have to change that value to create a faster or slower firing MG 34.

Next we have Magazine Capacity. Its pretty self explanatory just change the value of 75 in:
<capacity>75</capacity> to affect how much the magazine holds.

Note: This also works for AT guns, RPGs, Grenade Launchers and Other guns.
How to edit the cannons
This will teach you on how to edit and how some values of cannons that can change how they work.

here are some things you should avoid changing since they don't affect or might break the gun:
(Crossed ones are not included)

1.<dimensions>
<calibre>76</calibre>
<barrel_length>396</barrel_length>

2.<shoot>
<sound_shoot>shoot_cannon</sound_shoot>
<rof>12</rof>

3.<usage>
<countries>USA|FRANCE|ITALY|RUSSIA</countries>





Now lets start off with ROF as you know ROF stands for rate of fire. But the rate of fire on cannons is different from guns. cannons are used in vehicles or anti tank guns and the rate of fire is based on the reload of the gun and not how many rounds it fires.

We can get the base reload of the gun by dividing the value with 60 to get an accurate time.
for example: the 76mm m1a1 cannon has a rate of fire of 12. when we divide 60 with 12 we get the sum 5. so our reload will be 5 seconds on the gun.


Now lets move on to the Ammo.
The ammo shows the velocity, mass, and the HE filler of the different types of ammunition.
For example:
<speed> represents the velocity of the ammunition when fired (this can affect the trajectory)
<mass> represents the mass and weight of the ammunition (this can affect the trajectory)
<HE> represents the amount of filler the ammunition has (no value it means it has no filler)
(The scaling is unknown to me but im guessing that its in KG)

These will vary with the multiple types of ammunition the cannon has.
(recommended to not change the ammunition types)