Gunfire off center from crosshair.

If you know something thats not in here please share it
User avatar
Vilespring
Posts: 740
Joined: Sat Nov 24, 2012 5:47 am
Location: Somewere in the United States

Re: Gunfire off center from crosshair.

Post 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
A picture is worth a thousand words, but takes up three thousand times the memory.

Area 51: http://battlefieldarea51mod.weebly.com/

Image
"I didn't steal your pizza"
Kurosaji
Posts: 59
Joined: Fri Aug 22, 2014 8:01 pm

Re: Gunfire off center from crosshair.

Post 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.
User avatar
Vilespring
Posts: 740
Joined: Sat Nov 24, 2012 5:47 am
Location: Somewere in the United States

Re: Gunfire off center from crosshair.

Post by Vilespring »

I wouldn't be surprised if it's not.
BF 1942 likes to troll me when I mod too.
A picture is worth a thousand words, but takes up three thousand times the memory.

Area 51: http://battlefieldarea51mod.weebly.com/

Image
"I didn't steal your pizza"
Kurosaji
Posts: 59
Joined: Fri Aug 22, 2014 8:01 pm

Re: Gunfire off center from crosshair.

Post by Kurosaji »

Didn't work. Co-pilots firing still seems to gradually slip farther and farther away from the center.
shrug.
Kurosaji
Posts: 59
Joined: Fri Aug 22, 2014 8:01 pm

Re: Gunfire off center from crosshair.

Post by Kurosaji »

If anyone has a solution for this, you own my soul.
Django
Posts: 29
Joined: Mon Dec 10, 2012 2:58 pm

Re: Gunfire off center from crosshair.

Post by Django »

I did some tweaks on the RepGun

You may try this files:
http://www.mediafire.com/download/xbw86 ... RepGun.rar
Kurosaji
Posts: 59
Joined: Fri Aug 22, 2014 8:01 pm

Re: Gunfire off center from crosshair.

Post 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?
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: Gunfire off center from crosshair.

Post 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.
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
Django
Posts: 29
Joined: Mon Dec 10, 2012 2:58 pm

Re: Gunfire off center from crosshair.

Post 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.
Kurosaji
Posts: 59
Joined: Fri Aug 22, 2014 8:01 pm

Re: Gunfire off center from crosshair.

Post by Kurosaji »

From what i can tell - it is better, but it still has slippage
Post Reply