Film
by Brain^Virus
⤓ Download · 1.1 KBScreenshot dumping script. Made by Brain^Virus
- Filename
FILM.CS- Size
- 1.1 KB (listed 1.1KB)
- Type
- CS
- Developer
- Brain^Virus
- Date
- 2009-01-14 (theexiled upload)
- Format
- ASCII text, with CRLF line terminators
Readme — FILM.CS (from the archive itself)
// r33t screenshot dumping script
// produced by Brain^Virus, r33t scr1p70r
$filming = false;
$FPS = 25; // desired frames per second of the captured 'video'
$SPF = 1.0/$FPS; // seconds/frame. this is only here so i don't have to calculate it for each frame
$filmTimeScale = 1.0/ ($FPS + ($FPS/1.5)); // note that I *JUST* added this... it may puke on you... if it does, set it to 0.03 or lower
EditActionMap("playMap.sae");
bindcommand(keyboard0, make, "f3", TO, "roletape();"); // the on/off toggle
//bindcommand(keyboard0, break, "f2", TO, "");
function roletape(){
$filming = !$filming;
makeVideo();
}
function makeVideo(){
if($filming){
$lastSSTime = getSimTime();
$SimGame::TimeScale = $filmTimeScale;
function Game::EndFrame(){
%time = getSimTime();
if((%time - $lastSSTime) >= $SPF){
$lastSSTime = %time;
screenShot(mainWindow);
}
}
}
else{
function Game::EndFrame(){}
$SimGame::TimeScale = 1.0;
}
}Source: The Exiled — Tribes Repository
Original page: https://library.theexiled.pwnageservers.com/file.php?id=529
Archived source HTML: theexiled/mirror-html/file/529.html
Original page: https://library.theexiled.pwnageservers.com/file.php?id=529
Archived source HTML: theexiled/mirror-html/file/529.html