Disabling VATS?

Post » Tue May 17, 2011 4:37 am

I'm getting much better at figuring out how to script things on my own (mostly due to all the great tutoring I have received here in the past year), but this one has me stumped.

I'm trying to figure out how to prevent the player from opening the VATS menu when one of there arms are crippled.
this is as far as I've gotten:

 If (Player.GetAv RightAttackCondition == 0 || Player.GetAV LeftAttackCondition == 0) 		if GetVATSMode == 1


I've searched both the GECK wiki and the FOSE commands, but I cannot figure out a way that would actually prevent the VATS menu from opening. I'm wondering if menumode might be the way to go, but I still cannot figure out how to prevent VATS from opening.

Any help with this is greatly appreciated!
User avatar
Jose ordaz
 
Posts: 3552
Joined: Mon Aug 27, 2007 10:14 pm

Post » Tue May 17, 2011 12:21 am

I'm getting much better at figuring out how to script things on my own (mostly due to all the great tutoring I have received here in the past year), but this one has me stumped.

I'm trying to figure out how to prevent the player from opening the VATS menu when one of there arms are crippled.
this is as far as I've gotten:

 If (Player.GetAv RightAttackCondition == 0 || Player.GetAV LeftAttackCondition == 0) 		if GetVATSMode == 1


I've searched both the GECK wiki and the FOSE commands, but I cannot figure out a way that would actually prevent the VATS menu from opening. I'm wondering if menumode might be the way to go, but I still cannot figure out how to prevent VATS from opening.

Any help with this is greatly appreciated!


Maybe just disable the VATs control key if an arm is disabled
http://fose.silverlock.org/fose_command_doc.html#DisableControl
User avatar
Marlo Stanfield
 
Posts: 3432
Joined: Wed May 16, 2007 11:00 pm

Post » Tue May 17, 2011 5:17 am

Thanks RickerHK for your reply, but that didn't seem to work . . . the VATS menu just opened normally and remained open until I closed it.
User avatar
Guy Pearce
 
Posts: 3499
Joined: Sun May 20, 2007 3:08 pm

Post » Tue May 17, 2011 8:30 am

Well it's not quite what you asked for, but I've been working on a mod for crippled limbs and I've been playing around with different ways to restrict action points.

No AP = No VATS?? :shrug:

(Granted you could still activate it but you won't be able to do anything with it)
User avatar
Dan Stevens
 
Posts: 3429
Joined: Thu Jun 14, 2007 5:00 pm

Post » Tue May 17, 2011 7:23 am

Thanks SteveDog,

That's actually a good idea, that I might try with other conditions.

But I'm trying to prevent the VATS menu from opening at all, if you have a crippled arm. The reason is mostly due to a VATS bug that seems to pop up when an arm is crippled.
User avatar
luis ortiz
 
Posts: 3355
Joined: Sun Oct 07, 2007 8:21 pm

Post » Tue May 17, 2011 7:40 am

Thanks RickerHK for your reply, but that didn't seem to work . . . the VATS menu just opened normally and remained open until I closed it.


it works for me at the console:
disablecontrol 16

enablecontrol 16


I haven't tried it in a script, though.
User avatar
mike
 
Posts: 3432
Joined: Fri Jul 27, 2007 6:51 pm

Post » Tue May 17, 2011 6:45 am

Thanks RickerHK!

That did the trick very nicely. :)
User avatar
josie treuberg
 
Posts: 3572
Joined: Wed Feb 07, 2007 7:56 am


Return to Fallout 3