I have a lot of old (but good) WDL code from the days of A5 but am having a hard time converting it to Lite-C.
Some of it is easy to convert but I don't know what the Lite-C equivalent is for some of these movement functions.
I have A7 Extra currently.
Is there anyone on here who has the time or desire to convert this code to lite-c? I will pay you $5 USD with paypal. Is that worthwhile for you?
This is a code to animate a flying gib:
function wood_gib_action()
{
my.passable = ON;
// Initiate
MY._SPEED_X = 5 * (RANDOM(10) - 5);
MY._SPEED_Y = 5 * (RANDOM(10) - 5);
MY._SPEED_Z = RANDOM(35) + 5;
MY._ASPEED_PAN = RANDOM(35) + 35;
MY._ASPEED_TILT = RANDOM(35) + 35;
MY._ASPEED_ROLL = RANDOM(35) + 35;
MY.ROLL = RANDOM(180); //Start with random orientation
MY.PAN = RANDOM(180);
MY.PUSH = -1; // Allow player/enemies to pass through
// Animate gib realtime
MY.SKILL9 = RANDOM(50);
while(MY.SKILL9 > -35)
{
abspeed[0] = MY._SPEED_X * TIME;
abspeed[1] = MY._SPEED_Y * TIME;
abspeed[2] = MY._SPEED_Z * TIME;
MY.PAN += MY._ASPEED_PAN * TIME;
MY.TILT += MY._ASPEED_TILT * TIME;
MY.ROLL += MY._ASPEED_ROLL * TIME;
vec_scale(absdist,1);
MOVE ME,NULLSKILL,abspeed;
IF(BOUNCE.Z)
{
MY._SPEED_Z = -(MY._SPEED_Z/2);
if(MY._SPEED_Z < 0.25)
{
MY._SPEED_X = 0;
MY._SPEED_Y = 0;
MY._SPEED_Z = 0;
MY._ASPEED_PAN = 0;
MY._ASPEED_TILT = 0;
MY._ASPEED_ROLL = 0;
}
}
MY._SPEED_Z -= 2;
MY.SKILL9 -= 1;
wait(1);
}
// Fade gib to nothingness
MY.transparent = ON;
MY.alpha = 100;
while(1)
{
MY.alpha -= 5*time;
if(MY.alpha <=0)
{
remove(ME);
return;
}
wait(1);
}
}