B
BaBaBaseline
Enthusiast
Well I have no idea if this works and can't test it but if someone has tryed it before please state weather or not it worked. Anyways I was scrolling through the createfx.gsc when I noticed this
Now most of that is useless it's just there for Trayarch when there making fx but what got my attention was
Like I said probably won;'t work but it's woth a shot.
Code:
set_anglemod_move_vector()
{
rate = 2;
if (buttonDown("kp_uparrow", "DPAD_UP"))
{
if (level.selectedRotate_pitch < 0)
level.selectedRotate_pitch = 0;
level.selectedRotate_pitch = level.selectedRotate_pitch + rate;
}
else
if (buttonDown("kp_downarrow", "DPAD_DOWN"))
{
if (level.selectedRotate_pitch > 0)
level.selectedRotate_pitch = 0;
level.selectedRotate_pitch = level.selectedRotate_pitch - rate;
}
else
level.selectedRotate_pitch = 0;
if (buttonDown("kp_leftarrow", "DPAD_LEFT"))
{
if (level.selectedRotate_yaw < 0)
level.selectedRotate_yaw = 0;
level.selectedRotate_yaw = level.selectedRotate_yaw + rate;
}
else
if (buttonDown("kp_rightarrow", "DPAD_RIGHT"))
{
if (level.selectedRotate_yaw > 0)
level.selectedRotate_yaw = 0;
level.selectedRotate_yaw = level.selectedRotate_yaw - rate;
}
else
level.selectedRotate_yaw = 0;
if (buttonDown("BUTTON_Y"))
{
if (level.selectedRotate_roll < 0)
level.selectedRotate_roll = 0;
level.selectedRotate_roll = level.selectedRotate_roll + rate;
}
else
if (buttonDown("BUTTON_B"))
{
if (level.selectedRotate_roll > 0)
level.selectedRotate_roll = 0;
level.selectedRotate_roll = level.selectedRotate_roll - rate;
}
else
level.selectedRotate_roll = 0;
}
Code:
if (buttonDown("kp_uparrow", "DPAD_UP"))
if (buttonDown("kp_downarrow", "DPAD_DOWN"))
if (buttonDown("kp_leftarrow", "DPAD_LEFT"))
if (buttonDown("kp_rightarrow", "DPAD_RIGHT"))
if (buttonDown("BUTTON_Y"))
if (buttonDown("BUTTON_B"))
}