Did this buff the damage of the weapon? I can't tell if it did, or if it just keeps doing so much better cause I'm using better ammo. Either way, really like this, always wished the Survivalist's rifle used a better ammo type
You don't know how to implement an ini I presume? Well im'a help you out. Here's how to check what number an ini setting is: https://geckwiki.com/index.php?title=GetINIFloat and an ini should be in config.
Explanation for smoother brains below:
Spoiler:
Show
This may seem confusing to you GetINIFloat keystring:string filename:stringKeystring is divided into : the first section is the, well INI section essentialy the [NameOfSection] and the second is the INI setting name
Filename is more obvious it checks the path to the folder which ini is stored in and then the ini's name with the .ini (relative to config folder)
so eg: command is GetINIFloat "Setting:fAmmoUseCheck" "MyFolder\MyFile.ini" The ini in this case looks like this[Setting] fAmmoUseCheck=1 This will return 1
and it's location (relative to Config (essentialy checking from the config folder)) MyFolder\MyFile.ini the MyFolder should be replaced with the name of your mods INI folder and then the ini's file name
so the code could be combined into a single file which the codes looks like thisSetWeaponAmmo AmmoList308 NVDLC02WeapServiceRifleUnique
;If basically checks if an condition is true hence the name ;Presuming it is. It does the chunk which ends at Endif. ;Otherwise it does not do that if chunk
If GetINIFloat "Setting:fAmmoUseCheck" "MyFolder\MyFile.ini" == 0 SetWeaponClipRounds 10 NVDLC02WeapServiceRifleUnique Endif
If GetINIFloat "Setting:fAmmoUseCheck" "MyFolder\MyFile.ini" == 1 SetWeaponClipRounds 15 NVDLC02WeapServiceRifleUnique Endif
If GetINIFloat "Setting:fAmmoUseCheck" "MyFolder\MyFile.ini" == 2 SetWeaponClipRounds 20 NVDLC02WeapServiceRifleUnique Endif NOTE: is read as EQUALS TO: = is read as IS EQUAL TO: ==
this ini thing could cut this mod into a single file with all the functionality
I had to use 110% of my brain power to figure this out but I finally understand enough of it to get it working. Mind if I upload a version using your code? You'll be credited ofc
15 comments
Explanation for smoother brains below:
This may seem confusing to you
GetINIFloat keystring:string filename:string
Keystring is divided into :the first section is the, well INI section essentialy the [NameOfSection] and the second is the INI setting name
Filename is more obvious
it checks the path to the folder which ini is stored in and then the ini's name with the .ini (relative to config folder)
so eg: command is
GetINIFloat "Setting:fAmmoUseCheck" "MyFolder\MyFile.ini"
The ini in this case looks like this
[Setting]
This will return 1fAmmoUseCheck=1
and it's location (relative to Config (essentialy checking from the config folder)) MyFolder\MyFile.ini
the MyFolder should be replaced with the name of your mods INI folder and then the ini's file name
so the code could be combined into a single file which the codes looks like this
SetWeaponAmmo AmmoList308 NVDLC02WeapServiceRifleUnique
NOTE:;If basically checks if an condition is true hence the name
;Presuming it is. It does the chunk which ends at Endif.
;Otherwise it does not do that if chunk
If GetINIFloat "Setting:fAmmoUseCheck" "MyFolder\MyFile.ini" == 0
SetWeaponClipRounds 10 NVDLC02WeapServiceRifleUnique
Endif
If GetINIFloat "Setting:fAmmoUseCheck" "MyFolder\MyFile.ini" == 1
SetWeaponClipRounds 15 NVDLC02WeapServiceRifleUnique
Endif
If GetINIFloat "Setting:fAmmoUseCheck" "MyFolder\MyFile.ini" == 2
SetWeaponClipRounds 20 NVDLC02WeapServiceRifleUnique
Endif
is read as EQUALS TO:
=
is read as IS EQUAL TO:==
this ini thing could cut this mod into a single file with all the functionality
Sorry, was watching a meme compilation
thank you!