Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cls
- $dir_root = "D:\wolftrue"
- $gamestart_cfg = "D:\wolftrue\wolfcam-ql\gamestart.cfg"
- $wolfcam = "D:\wolftrue\wolfcamql.exe"
- $wolfcam_oargs = "+set fs_homepath `"D:\wolftrue`" +exec cap.cfg +demo "
- $demos = @(
- ("demo01.dm_73","12:37-12:54"),
- ("demo02.dm_73","02:37-02:54"),
- ("demo03.dm_73","03:17-03:24"),
- ("demo04.dm_73","03:17-03:24"),
- ("demo05.dm_73","03:17-03:24"),
- ("demo06.dm_73","03:17-03:24"),
- ("demo07.dm_73","03:17-03:24"),
- ("demo08.dm_73","03:17-03:24"),
- ("demo09.dm_73","03:17-03:24"),
- ("demo10.dm_73","03:17-03:24"),
- ("demo11.dm_73","03:17-03:24")
- )
- cd $dir_root
- foreach ($demo in $demos)
- {
- $time_s = $demo[1].split('-')[0]
- $time_e = $demo[1].split('-')[1]
- $dummystring = "seekclock "+$time_s+"; video avi; at "+$time_e+" quit"
- echo "wcstatsresetall" | Out-File $gamestart_cfg -Encoding default
- echo $dummystring | Out-File $gamestart_cfg -Encoding default -Append
- $wolfcam_margs = $wolfcam_oargs+$demo[0]
- Start-Process $wolfcam -ArgumentList $wolfcam_margs
- Start-Sleep -s 10
- while (@(get-process "wolfcamql").count -ge 4) { Start-Sleep -s 10 }
- }
- while (@(get-process "wolfcamql").count -ge 1) { Start-Sleep -s 10 }
- echo "wcstatsresetall" | Out-File $gamestart_cfg -Encoding default
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement