@echo off
if not exist doom.wad goto error
if not exist dmgraph.exe goto error
if not exist %1\sposa1.gif goto error
echo creating backup of Sargent graphics
@echo on
md sargent
dmgraph sposa1 -e sargent\sposa1.gif
dmgraph sposa2a8 -e sargent\sposa2a8.gif
dmgraph sposa3a7 -e sargent\sposa3a7.gif
dmgraph sposa4a6 -e sargent\sposa4a6.gif
dmgraph sposa5 -e sargent\sposa5.gif
dmgraph sposb1 -e sargent\sposb1.gif
dmgraph sposb2b8 -e sargent\sposb2b8.gif
dmgraph sposb3b7 -e sargent\sposb3b7.gif
dmgraph sposb4b6 -e sargent\sposb4b6.gif
dmgraph sposb5 -e sargent\sposb5.gif
dmgraph sposc1 -e sargent\sposc1.gif
dmgraph sposc2c8 -e sargent\sposc2c8.gif
dmgraph sposc3c7 -e sargent\sposc3c7.gif
dmgraph sposc4c6 -e sargent\sposc4c6.gif
dmgraph sposc5 -e sargent\sposc5.gif
dmgraph sposd1 -e sargent\sposd1.gif
dmgraph sposd2d8 -e sargent\sposd2d8.gif
dmgraph sposd3d7 -e sargent\sposd3d7.gif
dmgraph sposd4d6 -e sargent\sposd4d6.gif
dmgraph sposd5 -e sargent\sposd5.gif
dmgraph spose1 -e sargent\spose1.gif
dmgraph spose2e8 -e sargent\spose2e8.gif
dmgraph spose3e7 -e sargent\spose3e7.gif
dmgraph spose4e6 -e sargent\spose4e6.gif
dmgraph spose5 -e sargent\spose5.gif
dmgraph sposf1 -e sargent\sposf1.gif
dmgraph sposf2f8 -e sargent\sposf2f8.gif
dmgraph sposf3f7 -e sargent\sposf3f7.gif
dmgraph sposf4f6 -e sargent\sposf4f6.gif
dmgraph sposf5 -e sargent\sposf5.gif
dmgraph sposg1 -e sargent\sposg1.gif
dmgraph sposg2g8 -e sargent\sposg2g8.gif
dmgraph sposg3g7 -e sargent\sposg3g7.gif
dmgraph sposg4g6 -e sargent\sposg4g6.gif
dmgraph sposg5 -e sargent\sposg5.gif
dmgraph sposh0 -e sargent\sposh0.gif
dmgraph sposi0 -e sargent\sposi0.gif
dmgraph sposj0 -e sargent\sposj0.gif
dmgraph sposk0 -e sargent\sposk0.gif
dmgraph sposl0 -e sargent\sposl0.gif
dmgraph sposm0 -e sargent\sposm0.gif
dmgraph sposn0 -e sargent\sposn0.gif
dmgraph sposo0 -e sargent\sposo0.gif
dmgraph sposp0 -e sargent\sposp0.gif
dmgraph sposq0 -e sargent\sposq0.gif
dmgraph sposr0 -e sargent\sposr0.gif
dmgraph sposs0 -e sargent\sposs0.gif
dmgraph spost0 -e sargent\spost0.gif
dmgraph sposu0 -e sargent\sposu0.gif
@echo off
echo changing sargent to Storm trooper.
@echo on
dmgraph sposa1 -s %1\sposa1.gif
dmgraph sposa2a8 -s %1\sposa2a8.gif
dmgraph sposa3a7 -s %1\sposa3a7.gif
dmgraph sposa4a6 -s %1\sposa4a6.gif
dmgraph sposa5 -s %1\sposa5.gif
dmgraph sposb1 -s %1\sposb1.gif
dmgraph sposb2b8 -s %1\sposb2b8.gif
dmgraph sposb3b7 -s %1\sposb3b7.gif
dmgraph sposb4b6 -s %1\sposb4b6.gif
dmgraph sposb5 -s %1\sposb5.gif
dmgraph sposc1 -s %1\sposc1.gif
dmgraph sposc2c8 -s %1\sposc2c8.gif
dmgraph sposc3c7 -s %1\sposc3c7.gif
dmgraph sposc4c6 -s %1\sposc4c6.gif
dmgraph sposc5 -s %1\sposc5.gif
dmgraph sposd1 -s %1\sposd1.gif
dmgraph sposd2d8 -s %1\sposd2d8.gif
dmgraph sposd3d7 -s %1\sposd3d7.gif
dmgraph sposd4d6 -s %1\sposd4d6.gif
dmgraph sposd5 -s %1\sposd5.gif
dmgraph spose1 -s %1\spose1.gif
dmgraph spose2e8 -s %1\spose2e8.gif
dmgraph spose3e7 -s %1\spose3e7.gif
dmgraph spose4e6 -s %1\spose4e6.gif
dmgraph spose5 -s %1\spose5.gif
dmgraph sposf1 -s %1\sposf1.gif
dmgraph sposf2f8 -s %1\sposf2f8.gif
dmgraph sposf3f7 -s %1\sposf3f7.gif
dmgraph sposf4f6 -s %1\sposf4f6.gif
dmgraph sposf5 -s %1\sposf5.gif
dmgraph sposg1 -s %1\sposg1.gif
dmgraph sposg2g8 -s %1\sposg2g8.gif
dmgraph sposg3g7 -s %1\sposg3g7.gif
dmgraph sposg4g6 -s %1\sposg4g6.gif
dmgraph sposg5 -s %1\sposg5.gif
dmgraph sposh0 -s %1\sposh0.gif
dmgraph sposi0 -s %1\sposi0.gif
dmgraph sposj0 -s %1\sposj0.gif
dmgraph sposk0 -s %1\sposk0.gif
dmgraph sposl0 -s %1\sposl0.gif
dmgraph sposm0 -s %1\sposm0.gif
dmgraph sposn0 -s %1\sposn0.gif
dmgraph sposo0 -s %1\sposo0.gif
dmgraph sposp0 -s %1\sposp0.gif
dmgraph sposq0 -s %1\sposq0.gif
dmgraph sposr0 -s %1\sposr0.gif
dmgraph sposs0 -s %1\sposs0.gif
dmgraph spost0 -s %1\spost0.gif
dmgraph sposu0 -s %1\sposu0.gif
@echo off
echo done!  Your old sargent graphics were stored in the SARGENT subdirectory
echo To restore your old graphics re-run this batch file using SARGENT as
echo the parameter.
echo Enjoy
echo for any questions or problems please contact the creator of these graphics
echo Philip Magnussen
echo email: p.magnussen@auckland.ac.nz
goto end
:error
@echo off
echo this batch file needs to be in your doom directory, along with Doom.wad
echo and Dmgraph.exe.  To use this file type 
echo strooper (path to the stormtrooper files)
echo eg. strooper c:\doom\strooper
:end
@echo on
