parent
5d25082558
commit
a11cafb50a
9 changed files with 128 additions and 76 deletions
Binary file not shown.
@ -0,0 +1,2 @@ |
|||||||
|
[Settings] |
||||||
|
bFillBottleDelay = 1 |
@ -1,13 +1,16 @@ |
|||||||
if GetNVSEVersionFull < 6.2 |
if GetNVSEVersionFull < 6.25 |
||||||
MessageBoxEx "Bottle Rinse Repeat requires xNVSE 6.20+." |
MessageBoxEx "Bottle Rinse Repeat requires xNVSE 6.25+." |
||||||
|
return |
||||||
endif |
endif |
||||||
|
|
||||||
if GetPluginVersion "JohnnyGuitarNVSE" < 325 |
if GetPluginVersion "JohnnyGuitarNVSE" < 325 |
||||||
MessageBoxEx "Bottle Rinse Repeat requires JohnnyGuitar NVSE 3.25+." |
MessageBoxEx "Bottle Rinse Repeat requires JohnnyGuitar NVSE 3.25+." |
||||||
|
return |
||||||
endif |
endif |
||||||
|
|
||||||
if GetPluginVersion "JIP LN NVSE" < 55.70 |
if GetPluginVersion "JIP LN NVSE" < 55.70 |
||||||
MessageBoxEx "Bottle Rinse Repeat requires JIP LN 55.70+." |
MessageBoxEx "Bottle Rinse Repeat requires JIP LN 55.70+." |
||||||
|
return |
||||||
endif |
endif |
||||||
|
|
||||||
call EBxBootstrap |
CallAfterSeconds 0.8 EBxBootstrap 1 |
||||||
|
@ -0,0 +1,42 @@ |
|||||||
|
scn EBxActivateWaterSource |
||||||
|
|
||||||
|
ref rSource |
||||||
|
string_var sPrompt |
||||||
|
|
||||||
|
begin function {} |
||||||
|
|
||||||
|
SetGameMainLoopCallback EBxOnCrosshairTracker 0 |
||||||
|
|
||||||
|
SetOnControlDownEventHandler EBxOnControlDown 0 5 |
||||||
|
;SetOnControlUpEventHandler EBxOnControlUp 0 5 |
||||||
|
;EnableControl 5 |
||||||
|
|
||||||
|
let rSource := GetCrosshairRef |
||||||
|
|
||||||
|
if GetCrosshairWater |
||||||
|
let sPrompt := playerRef.AuxiliaryVariableGetString "*sDrinkPrompt" |
||||||
|
elseif eval IsFormValid rSource && (sPrompt := rSource.GetActivatorPrompt) == "" |
||||||
|
let sPrompt := playerRef.AuxiliaryVariableGetString "*sActivatePrompt" |
||||||
|
endif |
||||||
|
|
||||||
|
if GetUIFloat "HUDMainMenu\_DUIF3" > 0 ; DarnUI |
||||||
|
SetUIStringAlt "HUDMainMenu/InfoWrap/Info/justify_center_hotrect/string" $sPrompt |
||||||
|
else |
||||||
|
SetUIStringAlt "HUDMainMenu/Info/justify_center_hotrect/string" $sPrompt |
||||||
|
endif |
||||||
|
|
||||||
|
sv_destruct sPrompt |
||||||
|
|
||||||
|
if IsFormValid rSource |
||||||
|
|
||||||
|
MessageEx "filling bottles" |
||||||
|
|
||||||
|
call EBxFillFromObject rSource |
||||||
|
|
||||||
|
if rSource.HasScriptBlock 2 |
||||||
|
rSource.Activate playerRef 1 |
||||||
|
endif |
||||||
|
|
||||||
|
endif |
||||||
|
|
||||||
|
end |
@ -0,0 +1,10 @@ |
|||||||
|
scn EBxOnControlDown |
||||||
|
|
||||||
|
int iControl |
||||||
|
|
||||||
|
begin function { iControl } |
||||||
|
|
||||||
|
; start countdown |
||||||
|
playerRef.AuxiliaryVariableErase "*timer" |
||||||
|
|
||||||
|
end |
Loading…
Reference in new issue