diff --git a/audio/run.mp3 b/audio/run.mp3 new file mode 100644 index 0000000..83a175e Binary files /dev/null and b/audio/run.mp3 differ diff --git a/events.cmd b/events.cmd index 51a184b..33b71af 100644 --- a/events.cmd +++ b/events.cmd @@ -114,6 +114,8 @@ IF !S_CALC! EQU 0 ( ) ) +:: Specifically for Foxy +REM TITLE FOXY=%FOXY% S_TIMER_FOXY=%S_TIMER_FOXY% A_TIMER_FOXY=%A_TIMER_FOXY% IF !FOXY! GEQ 5 (ECHO.!STATES! | findstr /C:"doorL") >NUL && ( START /B "" CMD /C CALL ".\audiomanager.cmd" START knock2.mp3 sfx False 95 ^& EXIT >NUL 2>&1 @@ -126,7 +128,6 @@ IF !FOXY! GEQ 5 (ECHO.!STATES! | findstr /C:"doorL") >NUL && ( >refresh SET /P "=" refresh SET /P "=" NUL && ( - START /B "" CMD /C CALL ".\audiomanager.cmd" START knock2.mp3 sfx False 95 ^& EXIT >NUL 2>&1 - SET FOXY=0 - SET S_TIMER_FOXY=0 - DEL /Q ".\SEEN_FOXY" - ) || ( + IF !FOXY! GEQ 3 ( + IF !A_TIMER_FOXY! NEQ 31 SET A_TIMER_FOXY=31 + IF !S_TIMER_FOXY! EQU 1 ( + SET S_TIMER_FOXY=5 SET /A FOXY+=1 - DEL /Q ".\SEEN_FOXY" - ) - >refresh SET /P "=" refresh SET /P "=" NUL && ( + START /B "" CMD /C CALL ".\audiomanager.cmd" START knock2.mp3 sfx False 95 ^& EXIT >NUL 2>&1 + SET FOXY=0 + SET S_TIMER_FOXY=0 + DEL /Q ".\SEEN_FOXY" + ) || ( + SET /A FOXY+=1 + DEL /Q ".\SEEN_FOXY" + ) + >refresh SET /P "=" refresh SET /P "=" NUL 2>&1 + START /B "" CMD /C CALL ".\audiomanager.cmd" START run.mp3 sfx False 100 ^& EXIT >NUL 2>&1 SET /A FOXY+=1 ECHO.MO: !FOXY! FOXY, TIMER: !TIMER_FOXY! >refresh SET /P "=" refresh SET /P "=" NUL 2>&1 && ( + ECHO. [Q] Events safely stopped. + EXIT + ) || ( + ECHO.[-] Attempting to update the main process... + GOTO :FORCE_REFRESH + ) +) IF EXIST .\refresh ( TASKKILL /IM xcopy.exe /F >NUL 2>&1 && ( DEL /Q .\refresh @@ -239,7 +250,7 @@ IF EXIST .\refresh ( :: If survived 534 seconds, send a "win" signal to the main game (forced) :FORCE_REFRESH_ -IF !BATTERY! LEQ 0 EXIT +IF !BATTERY! LEQ -1 EXIT IF !TIMER! GEQ 534 ( IF NOT EXIST WIN BREAK>WIN TASKKILL /IM xcopy.exe /F || GOTO :FORCE_REFRESH_ diff --git a/main.bat b/main.bat index 981b004..b4d03ba 100644 --- a/main.bat +++ b/main.bat @@ -170,7 +170,7 @@ IF %VIEW%==CAMS ( IF %TAB% EQU 0 ECHO.Press TAB to mute voice call IF %CAMS_STATES%==_8_foxy ( BREAK>SEEN_FOXY - START /B "" CMD /C CALL ".\audiomanager.cmd" START running_fast3.mp3 sfx False 100 ^& EXIT >NUL 2>&1 + START /B "" CMD /C CALL ".\audiomanager.cmd" START run.mp3 sfx False 100 ^& EXIT >NUL 2>&1 ) ) REM TITLE [cams%CAMS_STATES%]