Gunfire off center from crosshair.

If you know something thats not in here please share it

Re: Gunfire off center from crosshair.

Postby Vilespring » Fri Aug 14, 2015 6:10 am

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

Re: Gunfire off center from crosshair.

Postby Kurosaji » Fri Aug 14, 2015 2:04 pm

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

Re: Gunfire off center from crosshair.

Postby Vilespring » Fri Aug 14, 2015 7:46 pm

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

Re: Gunfire off center from crosshair.

Postby Kurosaji » Sat Aug 15, 2015 12:23 am

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.

Postby Kurosaji » Tue Aug 18, 2015 2:01 pm

If anyone has a solution for this, you own my soul.
Kurosaji
 
Posts: 59
Joined: Fri Aug 22, 2014 8:01 pm

Re: Gunfire off center from crosshair.

Postby Django » Fri Aug 21, 2015 5:36 pm

I did some tweaks on the RepGun

You may try this files:
http://www.mediafire.com/download/xbw86 ... RepGun.rar
Django
 
Posts: 29
Joined: Mon Dec 10, 2012 2:58 pm

Re: Gunfire off center from crosshair.

Postby Kurosaji » Sat Aug 22, 2015 1:33 am

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

Re: Gunfire off center from crosshair.

Postby Swaffy » Mon Aug 24, 2015 6:35 am

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

Re: Gunfire off center from crosshair.

Postby Django » Mon Aug 24, 2015 6:52 pm

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.
Django
 
Posts: 29
Joined: Mon Dec 10, 2012 2:58 pm

Re: Gunfire off center from crosshair.

Postby Kurosaji » Tue Aug 25, 2015 3:49 am

From what i can tell - it is better, but it still has slippage
Kurosaji
 
Posts: 59
Joined: Fri Aug 22, 2014 8:01 pm

PreviousNext

Return to Modding/Mapping Tutorials

Who is online

Users browsing this forum: No registered users and 2 guests