Is it possible to change where the laser comes from?

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

MileHighGuy
Jedi
Jedi
Posts: 1194
Joined: Fri Dec 19, 2008 7:58 pm

Is it possible to change where the laser comes from?

Post 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?
User avatar
[TFA]Padawan_Fighter
High General
High General
Posts: 806
Joined: Wed Mar 25, 2009 3:37 pm
Projects :: Ha - as if I will ever get back to them
Games I'm Playing :: SWBF2 ARK EliteDngrs
xbox live or psn: No gamertag set
Location: Lost at sea

Re: Is it possible to change where the laser comes from?

Post 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)
User avatar
DarthD.U.C.K.
Master of the Force
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?

Post 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.
User avatar
Snork
Lieutenant General
Lieutenant General
Posts: 669
Joined: Thu Jun 07, 2007 3:34 pm
Games I'm Playing :: SWBF2 and Minecraft
xbox live or psn: No gamertag set
Contact:

Re: Is it possible to change where the laser comes from?

Post by Snork »

Code: Select all

ShotElevate     = "0.15"
That is in the ewok spear odf. Relevant?
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?

Post by THEWULFMAN »

Snork wrote:

Code: Select all

ShotElevate     = "0.15"
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.
User avatar
Snork
Lieutenant General
Lieutenant General
Posts: 669
Joined: Thu Jun 07, 2007 3:34 pm
Games I'm Playing :: SWBF2 and Minecraft
xbox live or psn: No gamertag set
Contact:

Re: Is it possible to change where the laser comes from?

Post by Snork »

Oh. I thought that was the issue. HURRDURR :p
kinetosimpetus
Imperial Systems Expert
Imperial Systems Expert
Posts: 2381
Joined: Wed Mar 25, 2009 4:15 pm
Projects :: A secret project
Games I'm Playing :: Warframe STO

Re: Is it possible to change where the laser comes from?

Post by kinetosimpetus »

Shotelevate adjusts the angle, not origin.
MileHighGuy
Jedi
Jedi
Posts: 1194
Joined: Fri Dec 19, 2008 7:58 pm

Re: Is it possible to change where the laser comes from?

Post by MileHighGuy »

what about this line

Code: Select all

ShotPatternPitchYaw 	= "0.0 0.0"
from the bowcaster.
kinetosimpetus
Imperial Systems Expert
Imperial Systems Expert
Posts: 2381
Joined: Wed Mar 25, 2009 4:15 pm
Projects :: A secret project
Games I'm Playing :: Warframe STO

Re: Is it possible to change where the laser comes from?

Post by kinetosimpetus »

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?

Post 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.
MileHighGuy
Jedi
Jedi
Posts: 1194
Joined: Fri Dec 19, 2008 7:58 pm

Re: Is it possible to change where the laser comes from?

Post by MileHighGuy »

I have found an odf line that might work:

Code: Select all

FirePointExtraOffset = "0 0.3 2"
It is from Syth's Fett Jet-pack missile. Could it work?
User avatar
Mithrandir
Private Recruit
Posts: 25
Joined: Fri Feb 12, 2010 6:05 pm

Re: Is it possible to change where the laser comes from?

Post 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...?
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?

Post by THEWULFMAN »

MileHighGuy wrote:I have found an odf line that might work:

Code: Select all

FirePointExtraOffset = "0 0.3 2"
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.
User avatar
Mithrandir
Private Recruit
Posts: 25
Joined: Fri Feb 12, 2010 6:05 pm

Re: Is it possible to change where the laser comes from?

Post by Mithrandir »

You learn something new everyday! :D 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?

Post 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.
User avatar
Snork
Lieutenant General
Lieutenant General
Posts: 669
Joined: Thu Jun 07, 2007 3:34 pm
Games I'm Playing :: SWBF2 and Minecraft
xbox live or psn: No gamertag set
Contact:

Re: Is it possible to change where the laser comes from?

Post by Snork »

I guess by making it come from the head its more intuitive to aim?
User avatar
Mithrandir
Private Recruit
Posts: 25
Joined: Fri Feb 12, 2010 6:05 pm

Re: Is it possible to change where the laser comes from?

Post by Mithrandir »

Makes sense...well maybe I'll use my head and think for myself before asking dumb questions haha
User avatar
DarthD.U.C.K.
Master of the Force
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?

Post 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.
kinetosimpetus
Imperial Systems Expert
Imperial Systems Expert
Posts: 2381
Joined: Wed Mar 25, 2009 4:15 pm
Projects :: A secret project
Games I'm Playing :: Warframe STO

Re: Is it possible to change where the laser comes from?

Post 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.
User avatar
sim-al2
2nd Lieutenant
2nd Lieutenant
Posts: 412
Joined: Mon Jul 06, 2009 10:26 pm
Projects :: Mapping on occasion
Games I'm Playing :: SWBFII + MW4 + SC4
Location: In the cockpit of some vehicle...

Re: Is it possible to change where the laser comes from?

Post 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?
Post Reply