Page 2 of 3

Re: Gunfire off center from crosshair.

PostPosted: Fri Aug 14, 2015 6:10 am
by Vilespring
You're gonna be pissed, but I found your issue. It's so simple :>
Code: Select all
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

Re: Gunfire off center from crosshair.

PostPosted: Fri Aug 14, 2015 2:04 pm
by Kurosaji
wow, if that is the case i will be so ashamed i overlooked that. I will make them the same when I get home tonight.

Re: Gunfire off center from crosshair.

PostPosted: Fri Aug 14, 2015 7:46 pm
by Vilespring
I wouldn't be surprised if it's not.
BF 1942 likes to troll me when I mod too.

Re: Gunfire off center from crosshair.

PostPosted: Sat Aug 15, 2015 12:23 am
by Kurosaji
Didn't work. Co-pilots firing still seems to gradually slip farther and farther away from the center.
shrug.

Re: Gunfire off center from crosshair.

PostPosted: Tue Aug 18, 2015 2:01 pm
by Kurosaji
If anyone has a solution for this, you own my soul.

Re: Gunfire off center from crosshair.

PostPosted: Fri Aug 21, 2015 5:36 pm
by Django
I did some tweaks on the RepGun

You may try this files:
http://www.mediafire.com/download/xbw86 ... RepGun.rar

Re: Gunfire off center from crosshair.

PostPosted: Sat Aug 22, 2015 1:33 am
by Kurosaji
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?

Re: Gunfire off center from crosshair.

PostPosted: Mon Aug 24, 2015 6:35 am
by Swaffy
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.

Re: Gunfire off center from crosshair.

PostPosted: Mon Aug 24, 2015 6:52 pm
by Django
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.

Re: Gunfire off center from crosshair.

PostPosted: Tue Aug 25, 2015 3:49 am
by Kurosaji
From what i can tell - it is better, but it still has slippage