Is it possible to change where the laser comes from?
Moderator: Moderators
-
MileHighGuy
- Jedi

- Posts: 1194
- Joined: Fri Dec 19, 2008 7:58 pm
Is it possible to change where the laser comes from?
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?
EDIT: ive found one post in the pages of the bf2 limitations thread that says no. are there any other threads that discuss this?
- [TFA]Padawan_Fighter
- High General

- Posts: 806
- Joined: Wed Mar 25, 2009 3:37 pm
- Projects :: Ha - as if I will ever get back to them
- xbox live or psn: No gamertag set
- Location: Lost at sea
Re: Is it possible to change where the laser comes from?
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)
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)
- DarthD.U.C.K.
- Master of the Force

- Posts: 6027
- Joined: Wed Sep 27, 2006 11:05 am
- Location: Duckburg, Germany
Re: Is it possible to change where the laser comes from?
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.
- Snork
- Lieutenant General

- Posts: 669
- Joined: Thu Jun 07, 2007 3:34 pm
- xbox live or psn: No gamertag set
- Contact:
Re: Is it possible to change where the laser comes from?
Code: Select all
ShotElevate = "0.15"-
THEWULFMAN
- Space Ranger
- Posts: 5557
- Joined: Tue Aug 17, 2010 3:30 pm
- Projects :: Evolved 2
- Location: Columbus, Ohio
- Contact:
Re: Is it possible to change where the laser comes from?
Snork wrote:That is in the ewok spear odf. Relevant?Code: Select all
ShotElevate = "0.15"
Tryed that for my z6 doesnt work. It makes the shot fire higher or lower, its used for grenades too.
- Snork
- Lieutenant General

- Posts: 669
- Joined: Thu Jun 07, 2007 3:34 pm
- xbox live or psn: No gamertag set
- Contact:
Re: Is it possible to change where the laser comes from?
Oh. I thought that was the issue. HURRDURR :p
-
kinetosimpetus
- Imperial Systems Expert

- Posts: 2381
- Joined: Wed Mar 25, 2009 4:15 pm
- Projects :: A secret project
Re: Is it possible to change where the laser comes from?
Shotelevate adjusts the angle, not origin.
-
MileHighGuy
- Jedi

- Posts: 1194
- Joined: Fri Dec 19, 2008 7:58 pm
Re: Is it possible to change where the laser comes from?
what about this line from the bowcaster.
Code: Select all
ShotPatternPitchYaw = "0.0 0.0"-
kinetosimpetus
- Imperial Systems Expert

- Posts: 2381
- Joined: Wed Mar 25, 2009 4:15 pm
- Projects :: A secret project
Re: Is it possible to change where the laser comes from?
Same as shotelevate, except there can be more than one and can rotate up/down and left/right.
-
THEWULFMAN
- Space Ranger
- Posts: 5557
- Joined: Tue Aug 17, 2010 3:30 pm
- Projects :: Evolved 2
- Location: Columbus, Ohio
- Contact:
Re: Is it possible to change where the laser comes from?
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.
-
MileHighGuy
- Jedi

- Posts: 1194
- Joined: Fri Dec 19, 2008 7:58 pm
Re: Is it possible to change where the laser comes from?
I have found an odf line that might work:
It is from Syth's Fett Jet-pack missile. Could it work?
Code: Select all
FirePointExtraOffset = "0 0.3 2"- Mithrandir
- Private Recruit
- Posts: 25
- Joined: Fri Feb 12, 2010 6:05 pm
Re: Is it possible to change where the laser comes from?
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...?
-
THEWULFMAN
- Space Ranger
- Posts: 5557
- Joined: Tue Aug 17, 2010 3:30 pm
- Projects :: Evolved 2
- Location: Columbus, Ohio
- Contact:
Re: Is it possible to change where the laser comes from?
I had tried it on my Z6, I saw no effect.MileHighGuy wrote:I have found an odf line that might work:
It is from Syth's Fett Jet-pack missile. Could it work?Code: Select all
FirePointExtraOffset = "0 0.3 2"
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.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...?
- Mithrandir
- Private Recruit
- Posts: 25
- Joined: Fri Feb 12, 2010 6:05 pm
Re: Is it possible to change where the laser comes from?
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
-
THEWULFMAN
- Space Ranger
- Posts: 5557
- Joined: Tue Aug 17, 2010 3:30 pm
- Projects :: Evolved 2
- Location: Columbus, Ohio
- Contact:
Re: Is it possible to change where the laser comes from?
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.
- Snork
- Lieutenant General

- Posts: 669
- Joined: Thu Jun 07, 2007 3:34 pm
- xbox live or psn: No gamertag set
- Contact:
Re: Is it possible to change where the laser comes from?
I guess by making it come from the head its more intuitive to aim?
- Mithrandir
- Private Recruit
- Posts: 25
- Joined: Fri Feb 12, 2010 6:05 pm
Re: Is it possible to change where the laser comes from?
Makes sense...well maybe I'll use my head and think for myself before asking dumb questions haha
- DarthD.U.C.K.
- Master of the Force

- Posts: 6027
- Joined: Wed Sep 27, 2006 11:05 am
- Location: Duckburg, Germany
Re: Is it possible to change where the laser comes from?
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.Snork wrote:I guess by making it come from the head its more intuitive to aim?
-
kinetosimpetus
- Imperial Systems Expert

- Posts: 2381
- Joined: Wed Mar 25, 2009 4:15 pm
- Projects :: A secret project
Re: Is it possible to change where the laser comes from?
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.
- sim-al2
- 2nd Lieutenant

- Posts: 412
- Joined: Mon Jul 06, 2009 10:26 pm
- Projects :: Mapping on occasion
- Location: In the cockpit of some vehicle...
Re: Is it possible to change where the laser comes from?
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?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.
