Jump to content

Script not performing tasks even though it's conditions are valid?


Sweet6Shooter

Recommended Posts

So I've got this script to redo a bunch of the stats on the SMMG and Minigun, to go along with a rechamber.

The problem is, it just... won't do the stuff inside the config ini checks. I've used GetINIFloat in game to see if it's just not finding the ini or something, but all the values are visible to the console in game when I check them.

The "script update" and "game restarted" prints are totally firing, so it's not that the script isn't tied to it's startup quest.

Any ideas? This thing is basically ready to release once this dumb issue goes away and I can test it.

scn sssSCPTMinigunSMMGRechambers

begin Gamemode
printc "script update"
	if GetGameRestarted
printc "game restarted"

		if GetINIFloat "Settings:sSMMG" "Rechamber Config.ini" == 1
			NVDLC04WeapSMMG.setweaponammo AmmoList556mm
printc "ammo set smmg"
			NVDLC04WeapSMMG.setattackdamage 17
			NVDLC04WeapSMMG.setweaponminspread 0.6
			setweaponfirerate 12.5, NVDLC04WeapSMMG
			NVDLC04WeapSMMG.setweaponcritchance 1.0
			NVDLC04WeapSMMG.setweaponcritdamage 12
			SetPickupSound NVDLC04WeapSMMG UIItemGunsBigUp
			SetPutDownSound NVDLC04WeapSMMG UIItemGunsBigDown
			SetWeaponShellCasingModel NVDLC04WeapSMMG "weapons\2handautomatic\assaultrifleshellcasing.nif"

			LListClear NVDLC04WithAmmoSMMGSpecial
			LeveledListAddForm NVDLC04WithAmmoSMMGSpecial NVDLC04CondSMMGNPC 1 1 1.0
			LeveledListAddForm NVDLC04WithAmmoSMMGSpecial Ammo556mmArmorPiercing 1 1 1.0
			LeveledListAddForm NVDLC04WithAmmoSMMGSpecial Ammo556mmArmorPiercing75 1 25 1.0
			LeveledListAddForm NVDLC04WithAmmoSMMGSpecial Case556mm75 1 18 1.0

			LListClear NVDLC04WithAmmoSMMG
			LeveledListAddForm NVDLC04WithAmmoSMMG NVDLC04CondSMMGNPC 1 1 1.0
			LeveledListAddForm NVDLC04WithAmmoSMMG Ammo556mm 1 1 1.0
			LeveledListAddForm NVDLC04WithAmmoSMMG Ammo556mm75 1 25 1.0
			LeveledListAddForm NVDLC04WithAmmoSMMG Case556mm75 1 18 1.0

			NVDLC04Road02Crate.baseremoveitem LootAmmo10mmDouble 99
			NVDLC04Road02Crate.baseadditem LootAmmo556mmDouble 15

			if GetINIFloat "Settings:sSMMGScript" "Rechamber Config.ini" == 1
				NVDLC04WeapSMMG.setscript sssSCPTSMMGBurstFire
			elseif GetINIFloat "Settings:sSMMGScript" "Rechamber Config.ini" == 2
				NVDLC04WeapSMMG.setscript sssSCPTSMMGRechamber
			elseif GetINIFloat "Settings:sSMMGScript" "Rechamber Config.ini" == 3
				NVDLC04WeapSMMG.setscript sssSCPTSMMGRechamberBurst
			endif
		endif
		
		if GetINIFloat "Settings:sSMMGSoundChange" "Rechamber Config.ini" == 1
			SetWeaponSound NVDLC04WeapSMMG 0 WPNRifleAssaultFire3D
			SetWeaponSound NVDLC04WeapSMMG 1 WPNRifleAssaultFire3DDist
			SetWeaponSound NVDLC04WeapSMMG 2 WPNRifleAssaultFire2D
		endif
			
			
		if GetINIFloat "Settings:sMinigun" "Rechamber Config.ini" == 1
			WeapMinigun.setweaponammo AmmoList308
printc "ammo set minigun"
			WeapMinigun.setattackdamage 18
			setweaponfirerate 17, WeapMinigun
			WeapMinigun.setweaponcritdamage 18
			SetPickupSound WeapMinigun UIItemGunsBigUp
			SetPutDownSound WeapMinigun UIItemGunsBigDown
			SetWeaponItemModValue WeapMinigun 1 0.2
			SetWeaponShellCasingModel WeapMinigun "Projectiles\762mmCasing.NIF"

			SentryBotMinigun2HR.setweaponammo Ammo308

			HVBrokenWeapMinigun.setweaponammo Ammo308

			WeapNVMinigunUnique.setweaponammo AmmoList308
			WeapNVMinigunUnique.setattackdamage 19
			setweaponfirerate 24, WeapNVMinigunUnique
			WeapNVMinigunUnique.setweaponcritdamage 19
			SetPickupSound WeapNVMinigunUnique UIItemGunsBigUp
			SetPutDownSound WeapNVMinigunUnique UIItemGunsBigDown
			SetWeaponShellCasingModel WeapNVMinigunUnique "Projectiles\762mmCasing.NIF"

			NVDLC04SentryBotMinigun2HR20.setweaponammo AmmoList308
			NVDLC04SentryBotMinigun2HR30.setweaponammo AmmoList308
			NVDLC04SentryBotMinigun2HR40.setweaponammo AmmoList308
			NVDLC04SentryBotMinigun2HR50.setweaponammo AmmoList308
			
			NVProspectorMaleWDEADDevilsThroat.baseremoveitem ammo5mm 999
			NVProspectorMaleWDEADDevilsThroat.baseadditem ammo30875 233
			
			LListClear WithAmmoMiniGunNPC
			LeveledListAddForm WithAmmoMiniGunNPC CondMinigunNPC 1 1 1.0
			LeveledListAddForm WithAmmoMiniGunNPC Ammo308 1 25 1.0
			LeveledListAddForm WithAmmoMiniGunNPC Ammo30875 1 55 1.0
			LeveledListAddForm WithAmmoMiniGunNPC Case30875 1 24 1.0
			
			LListClear ClipMinigun240
			LeveledListAddForm ClipMinigun240 Ammo308 1 60 1.0
			LeveledListAddForm ClipMinigun240 Ammo30875 1 60 1.0

			LListClear WithAmmoMiniGunSupermutant
			LeveledListAddForm WithAmmoMiniGunSupermutant CondMinigunSupermutant 1 1 1.0
			LeveledListAddForm WithAmmoMiniGunSupermutant Ammo308 1 20 1.0
			LeveledListAddForm WithAmmoMiniGunSupermutant Ammo30875 1 40 1.0
			LeveledListAddForm WithAmmoMiniGunSupermutant Case30875 1 60 1.0

			LListClear WithAmmoMiniGunLoot
			LeveledListAddForm WithAmmoMiniGunLoot CondMinigunLoot 1 1 1.0
			LeveledListAddForm WithAmmoMiniGunLoot Ammo308 1 20 1.0
			LeveledListAddForm WithAmmoMiniGunLoot Ammo30875 1 40 1.0
			LeveledListAddForm WithAmmoMiniGunLoot Case30875 1 60 1.0

			LListClear WithAmmoMiniGunChupacabraNightkin
			LeveledListAddForm WithAmmoMiniGunChupacabraNightkin WeapMinigun 1 1 0.12
			LeveledListAddForm WithAmmoMiniGunChupacabraNightkin Ammo308 1 20 1.0
			LeveledListAddForm WithAmmoMiniGunChupacabraNightkin Ammo30875 1 40 1.0
			LeveledListAddForm WithAmmoMiniGunChupacabraNightkin Case30875 1 60 1.0

			LListClear WithAmmoMiniGunLootSpecial
			LeveledListAddForm WithAmmoMiniGunLootSpecial CondMinigunLoot 1 1 1.0
			LeveledListAddForm WithAmmoMiniGunLootSpecial Ammo308ArmorPiercing 1 20 1.0
			LeveledListAddForm WithAmmoMiniGunLootSpecial Ammo308ArmorPiercing75 1 40 1.0
			LeveledListAddForm WithAmmoMiniGunLootSpecial Case30875 1 60 1.0

			CrSentryBotMG.baseremoveitem ammo5mm 999
			CrSentryBotMG.baseremoveitem ammo5mm75 999
			CrSentryBotMG.baseadditem ammo308 30
			CrSentryBotMG.baseadditem ammo30875 30

			CrSentryBotMGHard.baseremoveitem ammo5mm 999
			CrSentryBotMGHard.baseremoveitem ammo5mm75 999
			CrSentryBotMGHard.baseadditem ammo308 40
			CrSentryBotMGHard.baseadditem ammo30875 40

			V22Koch.baseremoveitem ammo5mm 999
			V22Koch.baseremoveitem ammo5mm75 999
			V22Koch.baseadditem ammo308 30
			V22Koch.baseadditem ammo30875 30

			NVDLC03CrSentryBot01.baseremoveitem ammo5mm 999
			NVDLC03CrSentryBot01.baseremoveitem ammo5mm75 999
			NVDLC03CrSentryBot01.baseadditem ammo308 30
			NVDLC03CrSentryBot01.baseadditem ammo30875 30

			NVDLC03CrSentryBot01Respawn.baseremoveitem ammo5mm 999
			NVDLC03CrSentryBot01Respawn.baseremoveitem ammo5mm75 999
			NVDLC03CrSentryBot01Respawn.baseadditem ammo308 30
			NVDLC03CrSentryBot01Respawn.baseadditem ammo30875 30

			NVDLC03CrSentryBot01Respawn.baseremoveitem ammo5mm 999
			NVDLC03CrSentryBot01Respawn.baseremoveitem ammo5mm75 999
			NVDLC03CrSentryBot01Respawn.baseadditem ammo308 30
			NVDLC03CrSentryBot01Respawn.baseadditem ammo30875 30

			NVDLC03CrSentryBotBoss.baseremoveitem ammo5mm 999
			NVDLC03CrSentryBotBoss.baseremoveitem ammo5mm75 999
			NVDLC03CrSentryBotBoss.baseadditem ammo308 50
			NVDLC03CrSentryBotBoss.baseadditem ammo30875 50

			NVDLC04CrSentryBotMGArmy01.baseremoveitem ammo5mm 999
			NVDLC04CrSentryBotMGArmy01.baseremoveitem ammo5mm75 999
			NVDLC04CrSentryBotMGArmy01.baseadditem ammo308 50
			NVDLC04CrSentryBotMGArmy01.baseadditem ammo30875 50

			BMMinigunTrunk.baseremoveitem ammo5mm75 999
			BMMinigunTrunk.baseadditem ammo30875 100
			if GetINIFloat "Settings:sMinigunScript" "Rechamber Config.ini" == 1
				NVDLC04WeapSMMG.setscript sssSCPTMinigunRechamber
			endif
		endif

		if GetINIFloat "Settings:s9mmGreaseGun" "Rechamber Config.ini" == 1
			setweaponfirerate 24, WeapNV9mmSubmachineGun
		endif
		if GetINIFloat "Settings:s9mmGreaseGunScript" "Rechamber Config.ini" == 1
			WeapNV9mmSubmachineGun.setscript sssSCPTGreaseGunJunkRounds
		endif
	endif

end
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...