This is included in Dubby's F3C, but I'm surprised to find that nobody's made a mod to do it seperately.
I tried to script it myself, but it didn't work particularly well. Once the AP runs out, it oftentimes get stuck at/below Zero. It can also cause the player to get "stuck" in VATS after he shoots as the enemy wails on him.
I tried to script it myself, but it didn't work particularly well. Once the AP runs out, it oftentimes get stuck at/below Zero. It can also cause the player to get "stuck" in VATS after he shoots as the enemy wails on him.
Code:
Scriptname MovementAPScript
short baseAP
short lowAP
short regen1
short regen2
begin GameMode
set baseAP to Player.getbaseactorvalue ActionPoints
set lowAP to baseAP/10
//Set Regen speed to be affected by Agility
set regen1 to Player.GetActorValue Agility
set regen2 to 0.8*regen1
SetNumericGameSetting fActionPointsRestoreRate regen2
//disable firing and pipboy below the AP threshhold
if Player.getactorvalue ActionPoints < lowAP
disableplayercontrols 0 1 1 0 0 0 0
endif
if Player.getactorvalue ActionPoints [Greater than]= lowAP
enableplayercontrols 0 1 1 0 0 0 0
endif
END