So I asked D_B for help and his wisdom always help me, here is the chat i had with him.
Just so you know this post is smoths fault.[21:17:52] <Noruas> omg D_B are you here?
[21:18:04] <Noruas> its noruas i have a question for you sortof...
[21:19:00] <D_B> sup?
[21:19:19] <Noruas> do you know any changes that delt with .cob or .bos this spring release?
[21:19:31] <D_B> as far as I know, none
[21:20:02] <Noruas> i asked for help on the forum but people have not given any input of sorts... the hovercrafts in xta? have you seen them rock and tilt before as they turn?
[21:20:22] <D_B> not really
[21:20:33] <D_B> hovercraft use to be upright=1 by default
[21:20:52] <Noruas> i wrote a script in bos that detected turns and tilted the hovers accordingly
[21:21:03] <Noruas> with turns erm...
[21:21:19] <Noruas> but for some reason now they tilt all the way over and barrel roll... when they turn
[21:21:25] <D_B> cool, I might STE...er borrow that
[21:21:31] <D_B> hmm
[21:21:42] <D_B> the devs may have broken something inadvertently
[21:21:47] <D_B> I would check with lurker
[21:22:32] <Noruas> http://springrts.com/phpbb/viewtopic.ph ... &start=920 i made the post, its the last one on the page... i should probably repost...
[21:23:23] <D_B> This sort of thing belongs in teh dev forum as you suspect it is a broken bit in the new spring
[21:23:51] <Noruas> not the help and bugs section?
[21:24:04] <D_B> nope
[21:24:07] <D_B> I'd post in devs
[21:24:14] <D_B> ask specificly if they meddled with bos
[21:24:19] <D_B> then post your code
[21:24:25] <D_B> say how it used to function
[21:24:28] <D_B> and how it functions now
[21:24:37] <D_B> if you get any shit blame me for telling you to post tehre
[21:25:04] <Noruas> nah ill blame smoth...
[21:25:26] <D_B> lol k
[21:25:39] <D_B> good luck sorry I could not help more
Just download the latest xta file from jobjol and make a hovercraft plateform and tell the hovers to turn, and they will start doing barrel roles. They never did this before so its assumed a new bug or an engine change went unreported.
Code: Select all
#include "sfxtype.h"
#include "exptype.h"
piece base, beam, nanogun, door1, door2, plate, post, wake1,
wake2, wake3, wake4, wake5, wake6, wake7, wake8, turret;
static-var Static_Var_1, Static_Var_2, statechg_DesiredState, statechg_StateChanging, Static_Var_5,
Static_Var_6, Static_Var_7;
// Signal definitions
#define SIG_MOVE 2
BankClerck(Func_Var_1, Func_Var_2, Func_Var_3)
{
while( TRUE )
{
Func_Var_1 = get PIECE_XZ(base);
Func_Var_3 = 0;
if( get XZ_HYPOT(Func_Var_1 - Func_Var_2) >= 163840 )
{
Func_Var_3 = 0 - get XZ_ATAN(Func_Var_2 - Func_Var_1) * 60 / 30;
}
turn base to z-axis Func_Var_3 speed <45.0>;
Func_Var_2 = Func_Var_1;
sleep 300;
}
return (0);
}
WobbleUnit()
{
while( get BUILD_PERCENT_LEFT )
{
sleep 400;
}
while( TRUE )
{
if( Static_Var_7 == 1 )
{
move base to y-axis [1.8] speed [1.0];
}
if( Static_Var_7 == 0 )
{
move base to y-axis [0.8] speed [1.0];
}
Static_Var_7 = !Static_Var_7;
sleep 750;
}
return (0);
}
Create()
{
Static_Var_5 = 1;
Static_Var_2 = 0;
start-script WobbleUnit();
start-script BankClerck();
return (0);
}
Thank you...