rotationalbundle on pco online

Ask questions, discuss ideas, get answers
Post Reply
Shrooms
Posts: 70
Joined: Wed Aug 11, 2010 12:35 am

rotationalbundle on pco online

Post by Shrooms »

I'm working on a map where static objects are changed to pco's, allowing objects to spawn on a flag. Several pcos are track pieces. The server controls where they are positioned ingame.

One object has the spinning radar added to it. Hosting the map locally, the rotationalbundle code works. However it is not rotating when hosted on an online server. How can I get this to spin online?

Code: Select all

ObjectTemplate.create PlayerControlObject airport_radar_server
ObjectTemplate.geometry airport_radar
ObjectTemplate.setNetworkableInfo airport_radar_serverBodyInfo
ObjectTemplate.setHasCollisionPhysics 1
ObjectTemplate.Addtemplate airport_radarwindows
ObjectTemplate.addTemplate radarbun_tower_M1
ObjectTemplate.setPosition -3.4941/26.1095/0.0832

ObjectTemplate.create simpleobject airport_radarwindows
ObjectTemplate.geometry airport_radarwindows
ObjectTemplate.setNetworkableInfo airport_radar_serverBodyInfo
ObjectTemplate.setHasCollisionPhysics 1
ObjectTemplate.setHasResponsePhysics 1
ObjectTemplate.addToCollisionGroup c_CGProjectiles


rem ---------------------------------------

ObjectTemplate.create RotationalBundle radarbun_tower_M1
ObjectTemplate.geometry radarbun_tow_M1
ObjectTemplate.setNetworkableInfo airport_radar_serverBodyInfo
ObjectTemplate.setHasCollisionPhysics 1
objectTemplate.loadSoundScript Sounds/Radarbun_tow.ssc
ObjectTemplate.setMinRotation 0/0/0
ObjectTemplate.setMaxRotation 0/0/0
ObjectTemplate.setMaxSpeed 110/0/0
ObjectTemplate.setAcceleration 10/0/0
ObjectTemplate.setContinousRotationSpeed 15/0/
User avatar
Apache Thunder
Posts: 1213
Joined: Mon Oct 19, 2009 2:48 am
Location: Levelland Texas, USA
Contact:

Re: rotationalbundle on pco online

Post by Apache Thunder »

If I recall correctly, the continuous rotation code is buggy online. You will need to remove the network info from the rotational bundle(s) that use that code. I noticed that the radar rotational bundle on my destructible radar bunker doesn't have network info and I don't recall having issues with it online. I also remember the radar rotational bundle on the top of the turret of the Tunguska tank in my PoE/BF242 mod also does not have network info. ;)

EDIT:

Now that I think about it, I recall having a similar issue a long time back when I first made the seagulls in DC Sea Rigs destructible. I tried adding network info to the rotational bundles at one time and noticed they stopped rotating in a online server. I removed the network info and it then worked correctly.

So most definitely try removing the network info. It should fix your problems with it.
ImageImageImage
I have cameras in your head!
Shrooms
Posts: 70
Joined: Wed Aug 11, 2010 12:35 am

Re: rotationalbundle on pco online

Post by Shrooms »

Yes! that fixed it. Thank you very much. :)
Post Reply