Question about the coaxil
-
Expendable Grunt
- Posts: 4730
- Joined: 2007-03-09 01:54
Question about the coaxil
I rarely do anything other than infantry, but sometimes I really enjoy doing armor stuff (especially light/medium armor like BDRM and BMP's). I was wondering how the devs managed to get the coaxil weapons (MG's and Autocannon) to fire to the side of the gunners view? AFAIK, the bullets always come from the center of your screen, and never the weapon itself. Is this a trick of the camera, or are the rounds actually coming out of the space to our right?
M.
M.

Former [DM] captain.
The fact that people are poor or discriminated against doesn't necessarily endow them with any special qualities of justice, nobility, charity or compassion. - Saul Alinsky
-
Cassius
- Posts: 3958
- Joined: 2008-04-14 17:37
Re: Question about the coaxil
I think they were talking about soldia models with bullet coming out of the center of the screen.
-
Cyrax-Sektor
- Posts: 1030
- Joined: 2007-10-15 21:12
Re: Question about the coaxil
This is speculation here, but in vanilla BF2, when something was too close to the M1A2 tank and it blocked the turret, the cannon would blast the obstruction.
So with vehicles, modders and developers have the ability to change where the camera is positioned on the vehicle, even though the fire is coming from a different set location.
That's my reasoning. It may be wrong, but that's how I think it's done.
So with vehicles, modders and developers have the ability to change where the camera is positioned on the vehicle, even though the fire is coming from a different set location.
That's my reasoning. It may be wrong, but that's how I think it's done.
-
nick20404
- Posts: 1746
- Joined: 2007-06-30 23:36
Re: Question about the coaxil
I am pretty sure it changes every level of zoom.
-
ReaperMAC
- Posts: 3055
- Joined: 2007-02-11 19:16
Re: Question about the coaxil
Might be best to ask/PM Falkun, since he was the one that made this possible.

PR Test Team: [COLOR="Black"]Serious Business[/COLOR]
[R-DEV]dbzao: My head Rhino.... (long pause) My beautiful head
[R-DEV]Rhino - If you want to spam do it in the tester area please.
Control the Media, Control the Mind.
-
crazy11
- Retired PR Developer
- Posts: 3141
- Joined: 2008-02-05 00:20
Re: Question about the coaxil
All I know is it took a lot of work to get it to work.
PS. Reaper as an R-CON what has the world come to??????
PS. Reaper as an R-CON what has the world come to??????

You miss 100% of the shots you don't take.- Wayne Gretzky
-
Scot
- Posts: 9270
- Joined: 2008-01-20 19:45
Re: Question about the coaxil
Hookers and blow.crazyasian11 wrote:PS. Reaper as an R-CON what has the world come to??????
Congrats though dude.

-
McBumLuv
- Posts: 3563
- Joined: 2008-08-31 02:48
Re: Question about the coaxil
Just noticed that now
Congrats Reaper.
But yea, I don't think the bullets-from-centre-of-camera affects vehicles. As I've learned when shooting TOWs, where a friendly's head was in the way, but not on screen
But yea, I don't think the bullets-from-centre-of-camera affects vehicles. As I've learned when shooting TOWs, where a friendly's head was in the way, but not on screen



-
Alex6714
- Posts: 3900
- Joined: 2007-06-15 22:47
Re: Question about the coaxil
Because these weapons fire out of a barrel, and the barrel is positioned where it is in real life, not in the camera.
However there is a setting "fireInCameraDof"
As far as I know,
If set to 1, bullets come from the centre of your screen (easier to fire basically, cos it doesnt matter if your barrel is blocked, you just have to see the target.
If set to 0, bullets come from the barrel so you have to make sure you have a clear shot, looks better and in the end is more realistic.
So if the barrels are already there then its a matter of changing this setting really. Same has been done to the attack heli cannons if you check now.
Here you can see it set on the tank main gun. Crosshair/barrel could do with slight tweaking to make aiming more precise, but I only missed 1 target out of the many I fired so... (if it flashes, its hit).
However there is a setting "fireInCameraDof"
As far as I know,
If set to 1, bullets come from the centre of your screen (easier to fire basically, cos it doesnt matter if your barrel is blocked, you just have to see the target.
If set to 0, bullets come from the barrel so you have to make sure you have a clear shot, looks better and in the end is more realistic.
So if the barrels are already there then its a matter of changing this setting really. Same has been done to the attack heli cannons if you check now.
Here you can see it set on the tank main gun. Crosshair/barrel could do with slight tweaking to make aiming more precise, but I only missed 1 target out of the many I fired so... (if it flashes, its hit).
"Today's forecast calls for 30mm HE rain with a slight chance of hellfires"
"oh, they're fire and forget all right...they're fired then they forget where the target is"
-
Jaymz
- Retired PR Developer
- Posts: 9138
- Joined: 2006-04-29 10:03
Re: Question about the coaxil
Alex, do you know if setting fireInCameraDof 0 fixes the problem with the Commander seeing the round go "up and to the left" of where it actually does?
"Clear the battlefield and let me see, All the profit from our victory." - Greg Lake
-
Alex6714
- Posts: 3900
- Joined: 2007-06-15 22:47
Re: Question about the coaxil
I never thought of that, but it might be worth trying. I know that if you look closely in BR files or even 3rd person you can visually see tracers coming from the screen (for example A10, you can see tracers coming from the pilots head rather than the cannon) so maybe it affects it.
"Today's forecast calls for 30mm HE rain with a slight chance of hellfires"
"oh, they're fire and forget all right...they're fired then they forget where the target is"
-
Jaymz
- Retired PR Developer
- Posts: 9138
- Joined: 2006-04-29 10:03
Re: Question about the coaxil
Alex6714 wrote:you can see tracers coming from the pilots head rather than the cannon
But yeah, something that'll be worth testing.
"Clear the battlefield and let me see, All the profit from our victory." - Greg Lake
-
Alex6714
- Posts: 3900
- Joined: 2007-06-15 22:47
Re: Question about the coaxil
Awesome.'[R-DEV wrote:Jaymz;958536']
But yeah, something that'll be worth testing.
But yeah, I will try testing when I can, I just have a mess of files on my laptop and a fail wifi atm so I will when I can. Maybe it has something to do with dedicated also I don´t know but I guess this problem also occurs on local? Or it might be harder to test.
"Today's forecast calls for 30mm HE rain with a slight chance of hellfires"
"oh, they're fire and forget all right...they're fired then they forget where the target is"
-
Zimmer
- Posts: 2069
- Joined: 2008-01-12 00:21
Re: Question about the coaxil
Talk with afterdood about .:iGi:. test server or whatever he uses to test his admin script if you can use that to see.Alex6714 wrote:Awesome.
But yeah, I will try testing when I can, I just have a mess of files on my laptop and a fail wifi atm so I will when I can. Maybe it has something to do with dedicated also I don´t know but I guess this problem also occurs on local? Or it might be harder to test.
-
Alex6714
- Posts: 3900
- Joined: 2007-06-15 22:47
Re: Question about the coaxil
I did manage to test it on local, it didnt fix it, it just seems to be something network related, wont happen for the host, but will for anyone else.
"Today's forecast calls for 30mm HE rain with a slight chance of hellfires"
"oh, they're fire and forget all right...they're fired then they forget where the target is"


