If you intend on creating other mods, please read this too as there are other parts that might be important.
most of this is copy-pasted from my own Discord message so it may be a bit messy.
Most of this pertains to the closed testing period, so I don’t know if there has been any changes to how weapons work since then.
Also, I will be referencing an Uzi mod I made a lot.
`firearms_rifles` and `firearms_pistols` houses the actual weapon files per se. If you want to create a gun that uses the same ammo, same way of attacking as the default rifles then you will only have to edit this.
`firearms_ammo` is the type of ammo the weapons have. You can just reuse the ones meant for the rifles but if you are creating something new, then this one is important. It defines the firerate of the weapon, sound radius of the weapon, crit chance of the weapon etc etc
`firearms_attacktypes` is how the soldiers use the weapons. So for like say the M4 say at <25m they will use attacktype RangersRapidfire, for <INFm they will use RangersCarbineaimedfire. This file will allow you to create new files that determine how much bullets the ranger will waste at close range and at long range, how accurate he is, how long he will aim. So for example I made the uzi low damage with no rng, but he wastes a lot of bullets at cqb so it is kind of effective. There is also a crit chance thing which I assume is in addition to the other values
Both `firearms_rifles` and `firearms_pistols` reference `firearms_ammo` and `firearms_attacktypes`. they also reference other things which I will get into in a moment
For game files like in `equipment`, you will have to put the `@firearm_uzi_name` in there. The text you put afterwards is what the game will display.
Here is another example of a weapon description from the closed testing build that conveniently explains something else.
For 3d models and textures, there is not much to do there because there is no documentation of how to export from blender to their proprietary formant, and also none for the other way around.
the UI icons are using .dds format. you can open this with I think some photoshop or the latest version of gimp. IDK why though but the files are all upside down.
DONT FORGET! You need to add your sound file to `sounds_library.xml` for each channel you can list different sound files, which I think is how the gunshot sound effect variety is done. Always remember though that `firearms_rifles` has max of 4 or so sound files for gunshot variety.
If you do not add anything to that xml file your game will crash upon trying to play that sound
- Survivalist: Invisible Strain – How to Make Custom Equipment
- Teardown: All Forms of Modding Guide
- OpenTTD: How to Install the DOS Graphics & Sound Effects & Music
- Puyo Puyo Tetris 2: How to Edit Cutscene Dialog and Other in-game Text
- Valheim: Better Object Pickup Notification (How to Install PickupDisplay Mod)