-
Notifications
You must be signed in to change notification settings - Fork 0
/
Plutonium Modern Warfare 3.bat
77 lines (66 loc) · 2.76 KB
/
Plutonium Modern Warfare 3.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
@echo off
>nul chcp 65001
cd /d "%~dp0"
title Plutonium Modern Warfare 3
color 0A
taskkill /f /im "plutonium-launcher-win32.exe" 2>nul
call :title
echo Checking for updates...
echo.
ping -n 5 "plutonium-archive.getserve.rs" >nul 2>&1
if %errorlevel% equ 1 echo Connection Failed.
if %errorlevel% equ 0 (
for /f "tokens=1,* delims=:" %%a in ('curl -ks "https://api.github.com/repos/ineedbots/iw5_bot_warfare/releases/latest" ^| findstr "browser_download_url"') do (
echo %%b | findstr "*bw*.zip" >nul 2>&1
if %errorlevel% equ 0 (
curl -sLo "bot_warfare.zip" %%b
powershell -noprofile -command "expand-archive -path 'bot_warfare.zip' -destinationpath 'Plutonium Modern Warfare 3\storage\iw5' -force"
del /f /q "bot_warfare.zip"
)
)
if not exist "teknomw3_files-main.zip" (
curl -sLo "teknomw3_files-main.zip" "https://github.com/M4RCK5/teknomw3_files/archive/refs/heads/main.zip"
powershell -noprofile -command "expand-archive -path 'teknomw3_files-main.zip' -destinationpath '.'"
xcopy /s /q /y /i "teknomw3_files-main" "." >nul 2>&1
rd /s /q "teknomw3_files-main"
)
if not exist "plutonium-updater.exe" (
curl -sLo "plutonium-updater.zip" "https://github.com/mxve/plutonium-updater.rs/releases/latest/download/plutonium-updater-x86_64-pc-windows-msvc.zip"
powershell -noprofile -command "expand-archive -path 'plutonium-updater.zip' -destinationpath '.'"
del /f /q "plutonium-updater.zip"
)
if exist "plutonium-updater.exe" (
plutonium-updater --no-color -qfd "Plutonium Modern Warfare 3" -e bin/plutonium-launcher-win32.exe -e bin/steam_api64.dll -e bin/VibeCheck.exe -e games/t4sp.exe -e games/t4mp.exe -e storage/t4 -e games/t5sp.exe -e games/t5mp.exe -e storage/t5 -e games/t6zm.exe -e games/t6mp.exe -e storage/t6
color 0A
)
)
timeout /t 5
:start
set player_name=Plutonium
set /p player_name=<player_name.txt
call :title
echo Player: %player_name%
echo.
echo 1-Player Name
echo 2-Modern Warfare 3 Multiplayer
echo 3-Modern Warfare 3 Cooperative
echo.
choice /c 123 /n /m "Choose an option: "
call :title
if %errorlevel% equ 1 for /f "delims=" %%i in ('
powershell -NoProfile -Command "$input = Read-Host 'Player Name [a-zA-Z0-9 -_.]'; $filtered = ($input.ToCharArray() | Where-Object { $_ -match '[a-zA-Z0-9 -_.]' }) -join ''; if ($filtered) { $filtered } else { 'Plutonium' }"
') do set "player_name=%%i" && (echo %%i)>player_name.txt & goto :start
if %errorlevel% equ 3 (
start TeknoMW3.exe
exit
)
echo Start a private match and join using "/connect IP".
timeout /t 5
start /wait "" /d "Plutonium Modern Warfare 3" /b "bin\plutonium-bootstrapper-win32.exe" iw5mp "%cd%" -nocurses -lan -offline -name "%player_name%"
exit
:title
cls
echo.
echo ----Plutonium LAN----
echo.
goto :eof