Serious Sam Fusion 2017 (beta)

Serious Sam Fusion 2017 (beta)

355 ratings
Weapon Resources Database
   
Award
Favorite
Favorited
Unfavorite
Content: Weapons
File Size
Posted
Updated
69.295 MB
27 May, 2017 @ 1:40am
30 Apr, 2024 @ 8:28am
249 Change Notes ( view )

Subscribe to download
Weapon Resources Database

In 1 collection by NSKuber
Weapon Resources for event
47 items
Description
DESCRIPTION
This is a mod, containing some tables and template properties holders for all existing weapon resources.

Right now, I have many mods ("Custom Weapons Management", "Random Weapon Swap", "Loot mod", many) , that use pretty universal format of tables with information about weapons. Updating three (and possibly more in the future) mods every time new weapon comes out on the workshop is not very convenient, so I decided to cut out similar parts containing information about weapons into this separate mod, so I can only update one mod when I need to add another weapon.

If you're a modder, you can use this too for your mod. Read below for more detailed info.
Tables for Startup script are in "globals" table, and for world scripts are in "worldGlobals" table.
List of currently supported weapons: https://pastebin.com/6nY2aP2U

What tables are there:

globals/worldGlobals.DBWeapons - number-string table (array) containing internal names of all weapons included.

globals/worldGlobals.DBWeaponNames - string-string table, which returns common weapon name for given internal name. For example, worldGlobals.DBWeaponNames["AutoShotgun"] == "Devastator".

(tables without B at the end contain info about HD versions of weapons, with B - about BFE versions)

globals/worldGlobals.DBWeaponParamsPaths and DBWeaponParamsPathsB - string-string tables, which returns path to weapon parameters file for given internal name. For example, worldGlobals.DBWeaponParamsPaths["SingleShotgun"] == "Content/SeriousSamHD/Databases/Weapons/SingleShotgunWeapon.ep".

globals/worldGlobals.DBWeaponItemPaths and DBWeaponItemPathsB - string-string table, which returns path to weapon item parameters file for given internal name. If there is no weapon item for this weapon, returns nil.
For example, worldGlobals.DBWeaponItemPaths["SingleShotgun"] == "Content/SeriousSamHD/Databases/GenericItems/Weapons/SingleShotgun.ep".

globals/worldGlobals.DBWeaponAmmoPaths and DBWeaponAmmoPathsB - string-array table, which returns array, containing paths to weapon ammo parameters files for given internal name. If there are no ammo items for this weapon, returns nil.
For example, worldGlobals.DBWeaponAmmoPathsB["AssaultRifle"] == {"Content/SeriousSam3/Databases/Items/Ammo/Bullets.ep","Content/SeriousSam3/Databases/Items/Ammo/Bullets_Clip.ep","Content/SeriousSam3/Databases/Items/Ammo/Bullets_Closed.ep"},

globals/worldGlobals.DBWeaponAmmo and DBWeaponAmmoB - string-array table, which returns n-element array, containing information about weapon ammo type for given internal name. First element of the array is the amount of ammunition received when picking weapon item, (n-2)-th element of the array is the maximum ammo, (n-1)-th element is a string, characterizing ammo type of given weapon (this string is added manually and may not coincide with ammo type file name), n-th element is the "Shoot to reload" number (0 if weapon doesn't have reload).
Elements from second, to (n-3)-th specify the amount of ammunition received when picking ammo items listed in worldGlobals.DBWeaponAmmoPaths(B) table (in same order as they are listed in that table).
If weapon doesn't use ammo, then this table returns {-1,-1,-1,"",*} table.
For example, worldGlobals.DBWeaponAmmoB["bDoubleShotgun"] == {10,10,5,10,100,"bShells",0}.
This means, that BFE Double Shotgun uses ammo of type "bShells", that you receive 10 ammo on picking Double shotgun weapon, 10, 5 and 10 ammo on picking ammo items, it has 100 max ammo and no reloading.

There are also Template properties holders, located in "Content/SeriousSamFusion/Scripts/Templates/WeaponDatabase/"
Each template is named same as corresponding internal weapon name, and has up to two templates: weapon item with spawner and ammo item with spawner.
41 Comments
d1974 15 May, 2022 @ 11:31am 
@T4NG maybe its not possible
T4NG 15 May, 2022 @ 10:23am 
Can I ask you to add all the melee weapons, flamethrower and serious bomb from "Serious Sam 4 & Siberian Mayhem Weapons Pack"
Schenni 31 Aug, 2021 @ 11:30am 
The makers of the SS4 weapons pack said, that you'll include the SS4 minigun ammo and I just wanted to ask when It'll be?
NB1HoneyBadger 10 Jul, 2021 @ 3:09pm 
Please add Rocket Range 2 weapons to the list. Thank U.
NB1HoneyBadger 23 Apr, 2021 @ 8:50am 
Hi NSKuber. Please, add GF Vector to list. Thank You.
NB1HoneyBadger 17 Dec, 2020 @ 9:20pm 
Dear NSKuber. Please add Gothic Field Vector to Weapon Resource Database. Thank you, and Happy Holidays.
Windows_TAHK 28 Nov, 2020 @ 1:19pm 
А добавишь пожалуйста "Minishark (Weapon Resource)"?
NB1HoneyBadger 17 Oct, 2020 @ 11:57am 
Gothic Field Kriss Super V is missing, or not added to list?
Windows_TAHK 13 Oct, 2020 @ 1:26pm 
Спасибо!
NSKuber  [author] 13 Oct, 2020 @ 9:44am 
Добавил дробовик из GF (и пушки из Дума).