Okay so, I am making a mod of Alien Swarm, and it is from a platformer camera angle. however, I was wondering how it would be possible o disable the cross-hair movement x axis, and unrestrict it on the y axis. Does anyone here have any experience with this kind of thing or could point me to someone that does?
[QUOTE=OneFourth;39271627]Okay so, I am making a mod of Alien Swarm, and it is from a platformer camera angle. however, I was wondering how it would be possible o disable the cross-hair movement x axis, and unrestrict it on the y axis. Does anyone here have any experience with this kind of thing or could point me to someone that does?[/QUOTE]
So you want a trigger that inhibits horizontal movement and you can only move the camera upward?
[QUOTE=Meatpuppet;39273091]So you want a trigger that inhibits horizontal movement and you can only move the camera upward?[/QUOTE]
Since this post I have fixed the issues with the camera, but then unlocked a whole new set of issues with aiming. yay.
The primary issue with aiming is that, well, it doesn't work. I want the player to be able to look up and down, and the third-person platforming controls aren't allowing that. in the file in_main.cpp i think my problem is something to do with this
[code]
// thirdperson platformer mode
// use movement keys to aim the player relative to the thirdperson camera
if ( CAM_IsThirdPerson() && thirdperson_platformer.GetInt() )
{
float side = KeyState(&in_moveleft) - KeyState(&in_moveright);
float forward = KeyState(&in_forward) - KeyState(&in_back);
if ( side || forward )
{
viewangles[YAW] = RAD2DEG(atan2(side, forward)) + user.m_vecCameraOffset[ YAW ];
}
if ( side || forward || KeyState (&in_right) || KeyState (&in_left) )
{
cam_idealyaw.SetValue( user.m_vecCameraOffset[ YAW ] - viewangles[ YAW ] );
}
}
[/code]
I want the movement keys to control the side the playing is aiming on, but I also want the mouse to control exactly where the player aims.
Sorry, you need to Log In to post a reply to this thread.