Page 1 of 2
Is it possible to change where the laser comes from?
Posted: Sun Apr 17, 2011 12:40 am
by MileHighGuy
I know in units all the weapons shoot from the middle of the body, and that looks horrible, so how can i change it if possible? I know its been asked before but i cant find the topic.
EDIT: ive found one post in the pages of the bf2 limitations thread that says no. are there any other threads that discuss this?
Re: Is it possible to change where the laser comes from?
Posted: Sun Apr 17, 2011 2:42 am
by [TFA]Padawan_Fighter
I have a theory.
It involves changing the animations of all the soldiers. For example, make the soldier line up his rifle in such a way as to correspond with where the laser comes from. I think Pandemic tried doing this originally, but they didn't succeed very well.
In other games, the firing-from-the-center issue is corrected by altering the 3rd person FOV slightly to the right. The only reason the gun fires from the center in older games is for accuracy purposes (which I find strange, as the 1st person weapon tends to aim itself at an angle)
Re: Is it possible to change where the laser comes from?
Posted: Sun Apr 17, 2011 4:16 am
by DarthD.U.C.K.
you cant change the origin and sadly you cant make a believeable anim because the laser comes from the head and making a soldier hold his rifle rightin front of his head would look really weird.
Re: Is it possible to change where the laser comes from?
Posted: Sun Apr 17, 2011 7:40 am
by Snork
That is in the ewok spear odf. Relevant?
Re: Is it possible to change where the laser comes from?
Posted: Sun Apr 17, 2011 8:15 am
by THEWULFMAN
Snork wrote:
That is in the ewok spear odf. Relevant?
Tryed that for my z6 doesnt work. It makes the shot fire higher or lower, its used for grenades too.
Re: Is it possible to change where the laser comes from?
Posted: Sun Apr 17, 2011 8:27 am
by Snork
Oh. I thought that was the issue. HURRDURR :p
Re: Is it possible to change where the laser comes from?
Posted: Sun Apr 17, 2011 9:45 am
by kinetosimpetus
Shotelevate adjusts the angle, not origin.
Re: Is it possible to change where the laser comes from?
Posted: Sun Apr 17, 2011 11:25 am
by MileHighGuy
what about this line
from the bowcaster.
Re: Is it possible to change where the laser comes from?
Posted: Sun Apr 17, 2011 11:33 am
by kinetosimpetus
Same as shotelevate, except there can be more than one and can rotate up/down and left/right.
Re: Is it possible to change where the laser comes from?
Posted: Sun Apr 17, 2011 11:58 am
by THEWULFMAN
kinetosimpetus wrote:Same as shotelevate, except there can be more than one and can rotate up/down and left/right.
Yeah, I tryed that too. I tryed just about everything to get the lasers to shoot right from my Z6.
Re: Is it possible to change where the laser comes from?
Posted: Mon May 09, 2011 6:27 pm
by MileHighGuy
I have found an odf line that might work:
It is from Syth's Fett Jet-pack missile. Could it work?
Re: Is it possible to change where the laser comes from?
Posted: Tue May 17, 2011 9:33 pm
by Mithrandir
I may be misinterpreting what your asking and what you want to happen, but what I understand is that you want to change the origin of the laser or bullet from a gun? So it would come out of another part of the gun separate from the barrel? Importing the model of the gun, putting the location of hp_fire (the node that decides where the shot is fired from) where ever you want it to fire from, and then exporting it back is the simplest and most likely only solution. I'm a bit confused as to why you would want to do this though, if you are using stock weapons, because they all fire from the end of the barrel just fine...and also what are you guys talking about, the character has nothing to do with where the shots are fired from on the gun...?
Re: Is it possible to change where the laser comes from?
Posted: Tue May 17, 2011 9:45 pm
by THEWULFMAN
MileHighGuy wrote:I have found an odf line that might work:
It is from Syth's Fett Jet-pack missile. Could it work?
I had tried it on my Z6, I saw no effect.
Mithrandir wrote:I may be misinterpreting what your asking and what you want to happen, but what I understand is that you want to change the origin of the laser or bullet from a gun? So it would come out of another part of the gun separate from the barrel? Importing the model of the gun, putting the location of hp_fire (the node that decides where the shot is fired from) where ever you want it to fire from, and then exporting it back is the simplest and most likely only solution. I'm a bit confused as to why you would want to do this though, if you are using stock weapons, because they all fire from the end of the barrel just fine...and also what are you guys talking about, the character has nothing to do with where the shots are fired from on the gun...?
Every single ordnance originates from the player (bone_head actually, if my memory serves me). The hp_fire really only controls where the muzzle flash goes. Don't believe me? Take a rifle, walk up to a wall, like on mos eisly or anywhere with a tall flat surface. Walk to as close as you can get to the wall, and fire right at the wall. You will see where the bullets are actually coming from.
Re: Is it possible to change where the laser comes from?
Posted: Tue May 17, 2011 10:00 pm
by Mithrandir
You learn something new everyday!

although, then I am confused...when I make new weapon models and I place hp_fire at the barrel, the bullets are truly coming from the characters heads, determined by his bones? Also, what practical reason do you have for changing where the stuff is coming from? I haven't even noticed it wasn't from the barrel haha
Re: Is it possible to change where the laser comes from?
Posted: Tue May 17, 2011 10:06 pm
by THEWULFMAN
Weapons with slow ordnance. Like flamethrowers, or my Z6 rotary blaster cannon. It becomes pretty apparent where it is really coming from when the ord is slow enough.
Re: Is it possible to change where the laser comes from?
Posted: Tue May 17, 2011 10:16 pm
by Snork
I guess by making it come from the head its more intuitive to aim?
Re: Is it possible to change where the laser comes from?
Posted: Tue May 17, 2011 10:17 pm
by Mithrandir
Makes sense...well maybe I'll use my head and think for myself before asking dumb questions haha
Re: Is it possible to change where the laser comes from?
Posted: Wed May 18, 2011 5:25 am
by DarthD.U.C.K.
Snork wrote:I guess by making it come from the head its more intuitive to aim?
yeah., i suppose its too complicated to make the real shot come from the gun because the view comes from the head and the shot must hit in the middle of the view/crosshair. so if it wouldnt come strait from the middle the game would have to check in which distance the shot would hit an obstacle and calculate the shots angle accordingly so that it hits the middle of the crosshair.
Re: Is it possible to change where the laser comes from?
Posted: Wed May 18, 2011 10:47 am
by kinetosimpetus
Doesn't it do that anyway? Droideka shots hit the same point on a wall, and starfighter lasers converge to a point when shooting at close up targets especially.
Re: Is it possible to change where the laser comes from?
Posted: Wed May 18, 2011 3:37 pm
by sim-al2
kinetosimpetus wrote:Doesn't it do that anyway? Droideka shots hit the same point on a wall, and starfighter lasers converge to a point when shooting at close up targets especially.
Tanks, especially the IFTs and AAT are quite noticable, but all of them are vehicles, which would have to be like that for aiming to be effective. I suppose the default position for infantry was the best compromise between visuals and programing?