5881
Suggestions & Requests / Re: Airspeed Indicator, Attitude Indicator and Altimeter
« on: June 18, 2012, 08:58:24 PM »Need to be logged in to see the post.Try now.
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.
Need to be logged in to see the post.Try now.
I actually just looked at the full torque 3d torquescript reference, fileDelete is a default function.Ok, it must just be fileCopy then. I know he added something.
Going to do the renamefile one now.
Ninja: Finished! :D
I'll leave this one for Zacko.
http://rosettacode.org/wiki/Time_a_function
/////////////////
/// Benchmark ///
/////////////////
function benchmark(%times,%function,%a,%b,%c,%d,%e,%f,%g,%h,%i,%j,%k,%l,%m,%n,%o)
{
if(!isFunction(%function))
{
warn("BENCHMARKING RESULT FOR" SPC %function @ ":" NL "Function does not exist.");
return -1;
}
%start = getRealTime();
for(%i=0; %i < %times; %i++)
{
call(%function,%a,%b,%c,%d,%e,%f,%g,%h,%i,%j,%k,%l,%m,%n,%o);
}
%end = getRealTime();
%result = (%end-%start) / %times;
warn("BENCHMARKING RESULT FOR" SPC %function @ ":" NL %result);
return %result;
}
///////////////
/// EXAMPLE ///
///////////////
function example(%var1,%var2)
{
//put stuff here
}
benchmark(500,"example","blah","variables");registerOutputEvent(Player,"checkMask");registerOutputEvent(Player,"checkMask","",1);Rotate player 90 degrees, making walking sideways appear front-to-back. Have no forward/backwards walking speed to that the new sideways cannot be adjusted. Use the same animations. Player will have to use A and D to walk normally, but that's not a problem, since you will be viewing them from the side. The only problem is mounts.
Here is my attempt:
http://greekmods.webs.com/mods/Player_SideScroll.zip
Problems:
- The player model is not facing the right way (prevents weapon use)
- Player can rotate the camera with the mouse, causing the player to turn
- Only the no-jet version works. The jet version is broken
- Player can move diagonally
Try going to "My Documents\Blockland" and deleting the file called cache.db.