kustom
14-08-2006, 11:01 AM
EditActionMap("playMap.sae");
bindcommand(keyboard0, make, "f9", TO, "Movie::Start();");
bindcommand(keyboard0, make, "f10", TO, "Movie::Stop();");
// Frames/Second
$Movie::FPS = 50;
// Seconds/Frame
$Movie::SPF = 1.0/$Movie::FPS;
// Timescale.. depends on computer
$Movie::TimeScale = 1.0/($Movie::FPS+($Movie::FPS/1.5));
function Movie::Start()
{
$Movie::simTime = getSimTime();
$SimGame::TimeScale = $Movie::TimeScale;
function Game::EndFrame()
{
%now = getSimTime();
if((%now - $Movie::simTime) >= $Movie::SPF)
{
$Movie::simTime = %now;
screenShot(mainWindow);
}
}
}
function Movie::Stop()
{
function Game::EndFrame()
{
}
$SimGame::TimeScale = 1.0;
}
film.cs
vBulletin® v3.6.7, Copyright ©2000-2010, Jelsoft Enterprises Ltd.