Author Topic: Max Mount Points? + Pitch Questions  (Read 1021 times)

Is there a maximum amount of mount points you can put on a vehicle? I've tried searching, but got no definite results.

Also, is there a way to get the player's pitch and/or set the player's pitch server sided?
« Last Edit: February 01, 2014, 12:08:16 PM by jes00 »

Added a new question.

Your only way to set the pitch is making an AIConnection control their player and using ::setMove("pitch", pitchSpeed).

No idea about mountpoints.

There is no easy way to set a players pitch. The only way that I know of is to give the player object to the control of an AI, which then looks up/down, then give the controls back. Not sure what limitations there are with this method, it might not be instant.

Ninja: Err.. Yeah, what Port said.

Your only way to set the pitch is making an AIConnection control their player and using ::setMove("pitch", pitchSpeed).
Is there at least a way to get the player's pitch server sided?

Is there at least a way to get the player's pitch server sided?
Not great with trig sometimes, but i'm pretty sure this is correct. It will be in radians, so you might wanna use mRadToDeg.
Code: [Select]
mASin(getWord(%player.getEyeVector(), 2))

Bump because.

Your only way to set the pitch is making an AIConnection control their player and using ::setMove("pitch", pitchSpeed).
Just tried this. I made an AIConnection, set myself observing my player object. Gave the AI control of my player and used AIConnection::setMove("Pitch", number) but all it ever did was make my player look straight down. No matter what I set number to. I even tried calling AIConnection::move() after.

Also, any idea how I can force the player to fire the weapon they're holding? Never mind. AIConnection::setTrigger(int, bool);
« Last Edit: February 20, 2014, 08:15:32 AM by jes00 »

Did you try a negative number?


The most mount points I had on a vehicle was 13. I'm sure you could add a few more, though.

Pretty sure the ammount of mount points you can have are infinite, unless its limited by the DTS exporter.

Bump.

Still can't figure out the pitch.

I'm pretty sure a number between -$pi*2 (the highest number you'd need to go from looking straight up to straight down) and $pi*2 (the opposite) should make it look up or down.

I could go do some testing, give me a moment.


Alright so pitch is just speed from -1 (looking up) to 1 (looking down).

It does seem to bug out and only look in one direction from time to time, can fix it by 'shaking' it back and forth.

Edit (Again): Just don't use numbers smaller than 0.033 and -0.033, the bug should stop then.
« Last Edit: March 05, 2014, 05:50:35 PM by Chrono »