A weapon that fires 2 shots at once?

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

Post Reply
Vyse
General
General
Posts: 776
Joined: Sun Aug 28, 2005 5:01 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

A weapon that fires 2 shots at once?

Post by Vyse »

Can you have a weapon that fires 2 shots at once? I was looking at the wookies's bow caster that fires more when it's charged but I can't find how they did it in the ODF. I have placed more nulls in my XSI object but I can see how you reference them to shoot both from the weapon ODF?

I have tried putting the below after my weapon section but it makes the second shot come out of the control post o_0 Any ideas?

AimerNodeName = "hp_fire_1"

NextAimer = "-"

AimerNodeName = "hp_fire_2"

BTW my nulls in xsi are named the above hp_fire_1 and hp_fire_2.

If we can solve this I should be able to do dual weapons with new animations I have made! :)
User avatar
Rends
Sith
Sith
Posts: 1278
Joined: Fri Oct 15, 2004 6:34 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Germany
Contact:

RE: A weapon that fires 2 shots at once?

Post by Rends »

Well i´m quit not sure because i have never played with multiple shots but i think it´s this bowcaster entries:


ShotsPerSalvo = 7
ShotPatternCount = 7
ShotPatternPitchYaw = "0.0 0.0"
ShotPatternPitchYaw = "0.0 -0.7"
ShotPatternPitchYaw = "0.0 0.7"
ShotPatternPitchYaw = "0.0 -1.4"
ShotPatternPitchYaw = "0.0 1.4"
ShotPatternPitchYaw = "0.0 -2.1"
ShotPatternPitchYaw = "0.0 2.1"

Rends
Syth
General
General
Posts: 784
Joined: Thu Apr 13, 2006 8:46 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: happy fun island

RE: A weapon that fires 2 shots at once?

Post by Syth »

deulies? SWEET

*snickers* it has nothing to do with XSI, and that "NextAimer" stuff only works for vehicle type units. Look at tri-shot (or the ALL_weap_inf_bowcaster). Actually Ill post the line. Add that and the weapon can have mulitple fire points. But just to warn you, the know how the bow caster shoots in an arc formation? The further your fire point is from the center it, the more of an angle it will fire at

ShotsPerSalvo = "2"
ShotPatternCount = "2"
ShotPatternPitchYaw = "-0.1 -0.8"
ShotPatternPitchYaw = "-0.1 0.8"
Bac-Talan
Captain
Captain
Posts: 487
Joined: Wed Nov 30, 2005 8:14 pm

RE: A weapon that fires 2 shots at once?

Post by Bac-Talan »

In otherwords, what Rends said.
Ya, I've played around with this.
However, this isn't what you're looking for.
This is still set up for one fire point, it will just angle the shot away from the firepoint.
I don't know how to put two seperate firepoints on an infantry unit, but I'd look to the droidika's ODF to find out.
Syth
General
General
Posts: 784
Joined: Thu Apr 13, 2006 8:46 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: happy fun island

RE: A weapon that fires 2 shots at once?

Post by Syth »

the droideka is a vehicle type unit. youd have to somehow make a unit a vehicle type, but doing that probally has some undesirable side effects (like a 2 weapon limit)

Oh, this is something I found out a while ago. Besides vehicles, it doesnt really matter where your fire point is; The shot always fires from the center of the screeen (where your reticle is).
t551
General
General
Posts: 791
Joined: Sat Jul 16, 2005 3:23 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

RE: A weapon that fires 2 shots at once?

Post by t551 »

No, the ordnance emanates from the hardpoint specified in the .odf.
Vyse
General
General
Posts: 776
Joined: Sun Aug 28, 2005 5:01 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Post by Vyse »

Ya, I'm actually looking to have it shoot from 2 different fire points on one weapon.

Maybe I should try to specify a unit as a droideka...
User avatar
Rends
Sith
Sith
Posts: 1278
Joined: Fri Oct 15, 2004 6:34 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Germany
Contact:

Post by Rends »

Vyse,
while working on my SWBF1 Bounty Hunters i had the Gamorreans firing 2 weapons at the same time (accidently)

Have a look at the weaponsections:

WEAPONSECTION = 1
WeaponName = "all_weap_inf_rifle"
WeaponName = "all_weap_invisible_rifle"
WeaponAmmo = 6

Try adding a second (invisible) weapon. Guess you only need to create a Null (hardpoint) in XSI wich is not located at 0,0,0 but at the position you want.

Maybe this works

Rends
Qdin
Old School Staff
Posts: 2059
Joined: Wed Feb 23, 2005 9:54 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Post by Qdin »

Vyse, how about having the 2nd weapon an 'illusion' like Aayla's 2nd saber? then I'd guess it would be to make animations which matches the space between the 2 weapons?
Post Reply