gorshkov Posted April 12, 2013 Share Posted April 12, 2013 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 More sharing options...
jazzisparis Posted April 12, 2013 Share Posted April 12, 2013 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 More sharing options...
gorshkov Posted April 12, 2013 Author Share Posted April 12, 2013 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 More sharing options...
jazzisparis Posted April 12, 2013 Share Posted April 12, 2013 It's a New Vegas Script Extender function.Note that in order for the GECK to be able to compile this script, you must launch it via the NVSE launcher (see 'Installation' section in the linked page). Link to comment Share on other sites More sharing options...
Recommended Posts