Jump to content

Changing weapon fire behaviour in VATS?


gorshkov

Recommended Posts

I've created a weapon that fires 26 rounds per second. So far, so good. But in vats, it fires up to 10 rounds - even when the target is killed on the *first* round, and I'd like it to stop.

 

Ideally, what I'd like to do is have it fire a short burst of 3 rounds for every time I tell it to take a shot within vats.

 

I'm at a loss as to how to to it. I've found some global variables that control burst time in vats, etc, but I'm loathe to change global variables just for my one weapon, and I can't see any way to set it/unset it when I enter vats with this particular weapon.

 

Anybody have any ideas?

Link to comment
Share on other sites

You can attach a script to your weapon which will handle that:

scn SetVATSBurstScript

short	bEquipped
short	bExitVATS

begin OnEquip player

	set bEquipped to 1

end

begin OnUnequip player

	set bEquipped to 0

end

begin MenuMode

	if bEquipped && MenuMode 1056 && (bExitVATS == 0)
		SetNumericGameSetting fVATSShotBurstTime 0.11
		set bExitVATS to 1
	endif

end

begin GameMode

	if (GetVATSMode == 0) && bExitVATS
		SetNumericGameSetting fVATSShotBurstTime 0.43
		set bExitVATS to 0
	endif

end

 

Alternatively, you can use JIP Selective-Fire (see link in my signature), which also allows you to set for each weapon the number of rounds that are fired per VATS action.

Link to comment
Share on other sites

Brilliant! Thank you. I was on the right track, and had figured that out myself, through experimentation - but I coudln't find any way to set the variable within a script, and I didn't want to change it permanently..

 

Where is "SetNumericGameSetting" and other such creatures documented? I looked here in the forums, the GECK wiki, and the nvse documentation and didn't see much of anything.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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