[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4871: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4873: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4874: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4875: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
Battlefield 1942 Mods, Modding Tutorials. Forums and Mod Downloads. • View topic - Gunfire off center from crosshair.

Gunfire off center from crosshair.

If you know something thats not in here please share it

Gunfire off center from crosshair.

Postby Kurosaji » Mon Aug 10, 2015 7:43 pm

I have been stumped on this issue for some time now. I have a helicopter type ship, and after a certain amount of time the 2nd gun position gets off center from the cross-hair. Thus, you have no idea where you are firing but to look at the tracers and bullet impact sites. Everything starts off fine, but when you start firing and the pilot is flying around, it starts to slip from the crosshair. This can be corrected by dragging your crosshair target as far to the bottom left of the screen as you can, after that it will re-align... temporarily.

Any ideas?
Kurosaji
 
Posts: 59
Joined: Fri Aug 22, 2014 8:01 pm

Re: Gunfire off center from crosshair.

Postby Swaffy » Tue Aug 11, 2015 2:36 am

Seems like your camera is moving at a slightly different rate than the gun. This can happen if they move separately, so if the camera was parented to the gun then the camera would be static on the gun and never move.

The Sexton from the vanilla game is an example for how the camera can move separate from the turret. You can easily see this by aiming left/right with the gun.

If this is not the issue, then I have no idea without seeing video footage. But look into what I said first before making a video.
User avatar
Swaffy
 
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: Gunfire off center from crosshair.

Postby Vilespring » Tue Aug 11, 2015 3:52 am

You probably have the camera and the gun moving at a slightly different rates.

You could also add the fire in direction of camera line, but I don't remember it, the last modding I did was months ago, so I'm a bit rusty.
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: 740
Joined: Sat Nov 24, 2012 5:47 am
Location: Somewere in the United States

Re: Gunfire off center from crosshair.

Postby Kurosaji » Tue Aug 11, 2015 2:34 pm

Kurosaji
 
Posts: 59
Joined: Fri Aug 22, 2014 8:01 pm

Re: Gunfire off center from crosshair.

Postby freddy » Wed Aug 12, 2015 1:42 pm

You can try adding objectTemplate.fireInCameraDof 1
User avatar
freddy
 
Posts: 1247
Joined: Sun Oct 18, 2009 4:58 pm

Re: Gunfire off center from crosshair.

Postby Kurosaji » Wed Aug 12, 2015 2:59 pm

that actually seems like it could work, unless someone has doubts? I'm not sure, is that only needed in weapons.con, or objects as well? The script I posted above is from objects, just to clarify.
Kurosaji
 
Posts: 59
Joined: Fri Aug 22, 2014 8:01 pm

Re: Gunfire off center from crosshair.

Postby Vilespring » Wed Aug 12, 2015 8:33 pm

It's not enough for me to tell what's up. give me the whole thing's objects, weapons and all.
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: 740
Joined: Sat Nov 24, 2012 5:47 am
Location: Somewere in the United States

Re: Gunfire off center from crosshair.

Postby Kurosaji » Thu Aug 13, 2015 12:44 am

Kurosaji
 
Posts: 59
Joined: Fri Aug 22, 2014 8:01 pm

Re: Gunfire off center from crosshair.

Postby freddy » Thu Aug 13, 2015 7:05 am

User avatar
freddy
 
Posts: 1247
Joined: Sun Oct 18, 2009 4:58 pm

Re: Gunfire off center from crosshair.

Postby Kurosaji » Fri Aug 14, 2015 1:48 am

Kurosaji
 
Posts: 59
Joined: Fri Aug 22, 2014 8:01 pm

Next

Return to Modding/Mapping Tutorials

Who is online

Users browsing this forum: No registered users and 13 guests

cron