Blaster rifle to pistol

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
User avatar
SpartanA259
Captain
Captain
Posts: 498
Joined: Tue Jul 19, 2011 2:47 pm
Projects :: Orion City
xbox live or psn: Steam: [404] Ash
Location: New Reno, Nevada

Blaster rifle to pistol

Post by SpartanA259 »

So I was trying to set up the Stormtrooper blaster to be held like a pistol but fire like a rifle. When I munged the ALL side and went in game the gun was in one hand but still over heated like the pistol. And when I played as the Imp side the pistol was changed to the rifle the Alliance soldier was holding. :stormie:
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Blaster rifle to pistol

Post by Fiodis »

We need a bit more info. How did you go about editing the E-11? And if you want to edit the stormtrooper's rifle, why munge the ALL side? Unless you wanted to give it to an Alliance unit?
User avatar
1FGR1NightGhost
Don't feed the troll (that's me)
Posts: 85
Joined: Wed Jun 08, 2011 12:01 pm
Projects :: Bornesia Kastarian Docks
Games I'm Playing :: swbf2
xbox live or psn: No gamertag set

Re: Blaster rifle to pistol

Post by 1FGR1NightGhost »

I have also experianced this problem when i tryed to make the imp rifle (e-11) into a machine pistol. It also gave me the problem were it wont let me switch weapons.

However i have got the imp rocket launcher to be held like a rifle, and rifles to be held 1-handed like a pistol...

Maybe its just something wrong with the E-11...
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Blaster rifle to pistol

Post by Fiodis »

1FGR1NightGhost wrote:I have also experianced this problem when i tryed to make the imp rifle (e-11) into a machine pistol. It also gave me the problem were it wont let me switch weapons.

However i have got the imp rocket launcher to be held like a rifle, and rifles to be held 1-handed like a pistol...

Maybe its just something wrong with the E-11...
All the stock rifles are pretty much the same. The only thing unique to each is the model and a couple small odf values, neither of which present any reason to prevent one from manipulating the weapon. The E-11 is hardly different from the DC-15A.

Where you might be going wrong is with the animation lines. Try munging a new animset in which all the rifle animations are replaced by all the pistol animations renamed to the rifle animation names. Confusing? Perhaps. At times I do suppose I could word things better.... Let me know if you want me to say that any clearer. Sorry about that.
User avatar
SpartanA259
Captain
Captain
Posts: 498
Joined: Tue Jul 19, 2011 2:47 pm
Projects :: Orion City
xbox live or psn: Steam: [404] Ash
Location: New Reno, Nevada

Re: Blaster rifle to pistol

Post by SpartanA259 »

Well im just trying to give the one handed rifle to a stormtrooper that I placed on the ALL team. But for some reason when I do that it makes all the pistols on the opposite team go automatic. I got it to work once but the IMP teams pistols became automatic. And I dont really know want to give all the rifles the pistol anim. :stormie:
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Blaster rifle to pistol

Post by Fiodis »

SpartanA259 wrote:But for some reason when I do that
Again, we're going to need some more information. How did you place the stormtrooper on the Alliance team, and how did you modify the weapon and give it to him?

What you should have done is munged a new animset as I described above and referenced it in the new unit's odf with the line AnimationName = "name of the new animation set".
User avatar
SpartanA259
Captain
Captain
Posts: 498
Joined: Tue Jul 19, 2011 2:47 pm
Projects :: Orion City
xbox live or psn: Steam: [404] Ash
Location: New Reno, Nevada

Re: Blaster rifle to pistol

Post by SpartanA259 »

Yeah sorry I got to get better at explaining info. What I did was added Icemembers stormtrooper model to the ALL msh folder then I went and renamed all_inf_rifleman in the odf file folder. After I put it in both REQ files. Then I put it in the GCW Conquest LUA and put dc: before side and then munged the ALL side. The stormtrooper appeared in game without a problem but the belt had something funny on it. How would I munge a new anim. set new to this area. :stormie:
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: Blaster rifle to pistol

Post by DarthD.U.C.K. »

im not sure if i understood your problem correctly but if you simply want that your custom weapon is held like a pistol, open the weaponodf, and add this line:

Code: Select all

AnimationBank   = "pistol"
User avatar
SpartanA259
Captain
Captain
Posts: 498
Joined: Tue Jul 19, 2011 2:47 pm
Projects :: Orion City
xbox live or psn: Steam: [404] Ash
Location: New Reno, Nevada

Re: Blaster rifle to pistol

Post by SpartanA259 »

Ok so I did that and munged but when I went in game the gun still had the rifle anim.
THEWULFMAN
Space Ranger
Posts: 5557
Joined: Tue Aug 17, 2010 3:30 pm
Projects :: Evolved 2
Location: Columbus, Ohio
Contact:

Re: Blaster rifle to pistol

Post by THEWULFMAN »

SpartanA259 wrote:Ok so I did that and munged but when I went in game the gun still had the rifle anim.

Can you post your weapon odf?
User avatar
SpartanA259
Captain
Captain
Posts: 498
Joined: Tue Jul 19, 2011 2:47 pm
Projects :: Orion City
xbox live or psn: Steam: [404] Ash
Location: New Reno, Nevada

Re: Blaster rifle to pistol

Post by SpartanA259 »

Im testing this on the Alliances blaster.
Hidden/Spoiler:
[WeaponClass]
ClassParent = "com_weap_inf_rifle"
GeometryName = "all_weap_inf_rifle.msh"

[Properties]
AnimationBank = "pistol"
GeometryName = "all_weap_inf_rifle"
HighResGeometry = "all_1st_weap_inf_rifle"
OrdnanceName = "all_weap_inf_rifle_ord"

//******************************************************
//*************** SOUND ****************
//******************************************************

FireSound = "all_weap_inf_rifle_fire"
ReloadSound = "com_weap_inf_reload_med"
ChangeModeSound = "com_weap_inf_equip_med"
FireEmptySound = "com_weap_inf_ammo_empty"
WeaponChangeSound = "com_weap_inf_equip_med"
JumpSound = "com_weap_inf_rifle_mvt_jump"
LandSound = "com_weap_inf_rifle_mvt_land"
RollSound = "com_weap_inf_rifle_mvt_roll"
ProneSound = "com_weap_inf_rifle_mvt_squat"
SquatSound = "com_weap_inf_rifle_mvt_squat"
//StandSound = "com_weap_inf_rifle_mvt_getup"
baumerindustries
Lance Corporal
Posts: 96
Joined: Mon Apr 11, 2011 8:24 am
Games I'm Playing :: Bf2 EAW EAWFOC[SI]
xbox live or psn: No gamertag set
Location: In front of my english vocab and translating my confused thinkings into English....

Re: Blaster rifle to pistol

Post by baumerindustries »

if I've got problems, I always munge with everything checked and side EVERYTHING maybe this fixes the problem, but I cant promise.
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: Blaster rifle to pistol

Post by DarthD.U.C.K. »

if you select "everything" of course all present custom sides are munged. if you select the single custom side, all modifications made on it will be integrated. it wont make a difference.
Bob
Brigadier General
Brigadier General
Posts: 633
Joined: Thu May 27, 2010 4:28 am
Location: at home

Re: Blaster rifle to pistol

Post by Bob »

try cleaning the side manual (delete the all.lvl in
...Star Wars Battlefront II\GameData\addon\yourmodID\data\_LVL_PC\SIDE
...BF2_ModTools\data_yourmodID\_LVL_PC\SIDE
and everything inside
...BF2_ModTools\data_yourmodID\_BUILD\Sides\ALL\MUNGED)
and then munge the side again.
Post Reply