31
Suggestions & Requests / USA Presidential Candidate Faces Prints 4x
« on: January 28, 2016, 12:32:53 AM »
Bernie Sanders
Donald Annoying Orange
Hillary Clinton
Donald Annoying Orange
Hillary Clinton
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
package consoleLogSaver
{
function destroyServer()
{
$ConsoleLogBackupName = "config/server/ConsoleLogs/console_" @ strReplace(getWord(getDateTime(), 0),"/","-") @ "_" @ strReplace(getWord(getDateTime(),1),":","-") @ ".log";
filecopy("console.log" , $ConsoleLogBackupName);
parent::destroyServer();
}
};
activatePackage(consoleLogSaver);
function shiftgravitycheck(%obj)
{
if(!%obj.isshiftinggravity)
return;
%pos=%obj.getposition();
%ray=containerraycast(%pos,vectoradd(%pos,vectorscale(%obj.getupvector(),"-4 -4 -4")),$GravityJeepTypemasks,%obj);
%normal=getwords(%ray,4,6);
if(%normal!$="")
%obj.grav=vectorscale(%normal,"-0.5 -0.5 -0.5");
%obj.setvelocity(vectoradd(%obj.getvelocity(),vectoradd("0 0 0.5",%obj.grav)));
schedule(25,0,shiftgravitycheck,%obj);
}
$TCRPG_backupFileName = "saves/autosaves/backup/backup_" @ strReplace(getWord(getDateTime(), 0),"/","-") @ "_" @ strReplace(getWord(getDateTime(),1),":","-") @ ".bls";
filecopy("saves/autosaves/autosave.bls" , $TCRPG_backupFileName);
(notice the time stamp vs the last modified date on the file)
function GameConnection::onConnectRequest(%client, %ip, %lan, %net, %prefix, %suffix, %arg5, %rtb, %arg7, %gamemode, %arg9, %arg10, %arg11, %arg12, %arg13, %arg14, %arg15)