Page 1 of 1

Blaster rifle to pistol

Posted: Sat Jul 30, 2011 6:29 pm
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:

Re: Blaster rifle to pistol

Posted: Sat Jul 30, 2011 7:40 pm
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?

Re: Blaster rifle to pistol

Posted: Sat Jul 30, 2011 11:31 pm
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...

Re: Blaster rifle to pistol

Posted: Sun Jul 31, 2011 8:37 am
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.

Re: Blaster rifle to pistol

Posted: Sun Jul 31, 2011 10:42 am
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:

Re: Blaster rifle to pistol

Posted: Sun Jul 31, 2011 11:00 am
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".

Re: Blaster rifle to pistol

Posted: Sun Jul 31, 2011 11:50 am
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:

Re: Blaster rifle to pistol

Posted: Sun Jul 31, 2011 5:19 pm
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"

Re: Blaster rifle to pistol

Posted: Wed Aug 03, 2011 2:35 am
by SpartanA259
Ok so I did that and munged but when I went in game the gun still had the rifle anim.

Re: Blaster rifle to pistol

Posted: Wed Aug 03, 2011 2:43 am
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?

Re: Blaster rifle to pistol

Posted: Wed Aug 03, 2011 2:47 am
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"

Re: Blaster rifle to pistol

Posted: Wed Aug 03, 2011 2:48 am
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.

Re: Blaster rifle to pistol

Posted: Wed Aug 03, 2011 5:31 am
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.

Re: Blaster rifle to pistol

Posted: Wed Aug 03, 2011 11:55 am
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.