Problems with gun turret rotation..
Posted: Wed Jul 21, 2010 7:21 pm
So Im pretty sure I'm noobing this.. but I have a car.. with a gun on top..
Offline it works fine.. but when running server the gun will rotate 'so far' before springing/glitching back to a fairly random position.. opposite of where it got to..! Cant be more specific than that. but I want it to rotate endlessly left or right... except like I said.. it gets maybe 180 degrees then springs back.
Network info seems to be fine because other players can track the movement when slow. I guess the prob is the min max rotation. How 'should' I achieve this rather than these -9999 +9999 numbers.. ? Does it have to be a bundle like the sherman turret seperating x and y?
(The camera position is locked to the gun.. and like I said is perfect offline.)
Offline it works fine.. but when running server the gun will rotate 'so far' before springing/glitching back to a fairly random position.. opposite of where it got to..! Cant be more specific than that. but I want it to rotate endlessly left or right... except like I said.. it gets maybe 180 degrees then springs back.
Network info seems to be fine because other players can track the movement when slow. I guess the prob is the min max rotation. How 'should' I achieve this rather than these -9999 +9999 numbers.. ? Does it have to be a bundle like the sherman turret seperating x and y?
(The camera position is locked to the gun.. and like I said is perfect offline.)
Code: Select all
rem *** stratosCameraPassenger ***
ObjectTemplate.create Camera stratosCameraPassenger
rem ObjectTemplate.setMinRotation -9999/-6/0
rem ObjectTemplate.setMaxRotation 9999/6/0
ObjectTemplate.setPivotPosition -0.2/0/0
ObjectTemplate.setMaxSpeed 50/50/0
ObjectTemplate.setAcceleration 1000/1000/0
ObjectTemplate.setInputToYaw c_PIMouseLookX
ObjectTemplate.setInputToPitch c_PIMouseLookY
rem *** corvetteTurret ***
ObjectTemplate.create RotationalBundle corvetteTurret
ObjectTemplate.setNetworkableInfo corvetteTurretInfo
ObjectTemplate.setAttachToListener 1
ObjectTemplate.addTemplate corvette20mm
ObjectTemplate.setMinRotation -9999/-6/0
ObjectTemplate.setMaxRotation 9999/6/0
ObjectTemplate.setMaxSpeed 50/50/0
ObjectTemplate.setAcceleration 1000/1000/0
ObjectTemplate.setInputToYaw c_PIMouseLookX
ObjectTemplate.setInputToPitch c_PIMouseLookY