rem *** CoPilot Turrents ***
ObjectTemplate.create RotationalBundle GunShipFrontGun1
(important stuff I left out)
ObjectTemplate.setMinRotation -35/-25/0 <---------------------------\
ObjectTemplate.setMaxRotation 35/70/0 |
ObjectTemplate.setMaxSpeed 15/15/0 |
ObjectTemplate.setAcceleration 5000/5000/0 > These are not the same
|
ObjectTemplate.create Camera GunShipCameraMove |
ObjectTemplate.setMinRotation -35/-20/0 <---------------------------/
ObjectTemplate.setMaxRotation 35/70/0
ObjectTemplate.setMaxSpeed 15/15/0
ObjectTemplate.setAcceleration 5000/5000/0
A picture is worth a thousand words, but takes up three thousand times the memory.
Nice work! An improvement for sure. I was thinking, would it be possible to make the lasers a bundle, and then fire the bundle at where ever the center of screen is pointing? Since they would be bundled as one they should keep shape separately, correct?
Don't use fireInCameraDof because you won't get desired results. It will basically make the projectile come out of your camera and will not be offset.
You need to find a way to keep the turret pointing in the same direction as the camera, so check the min/max speeds and acceleration of both the camera and the turret.
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
Check my fixes above.
The two Lasercannons are lined up with the camera and the crosshair. The laserprojectiles and the muzzlefx also.
From my (GCDev-) coder side it's working now as it should do.