Page 1 of 1

Dual Weapons (Solved)

Posted: Sat Sep 12, 2009 12:09 pm
by Fierfek
Yes, I know there is a topic right next to this one, but I have a different problem.
I can get everything working, except for one snag:
Hidden/Spoiler:
Image
See how he's holding the pistol?
Here is his odf:
Hidden/Spoiler:
[GameObjectClass]
ClassLabel = "soldier"
ClassParent = "rep_inf_default_blaze"

[Properties]
AnimationName = "dual2"
UnitType = "assault"
AnimatedAddon = "left_gun"
GeometryAddon = "westar34gun"
AddonAttachJoint = "bone_L_hand"

IconTexture = "rep_gunner_icon"

GeometryName = "rep_inf_arctrooper"
FirstPerson = "REP\reparc;rep_1st_arctrooper"
GeometryLowRes = "rep_inf_arctrooper_low1"
ClothODF = "rep_inf_arctrooper_cape"

OverrideTexture = "rep_inf_arc_blue"
OverrideTexture2 = "rep_inf_arc_pack_blue"
And his default class odf:
Hidden/Spoiler:
[GameObjectClass]
ClassParent = "rep_inf_default"

[Properties]
UnitType = "assault"

MaxHealth = 550.0

MaxSpeed = 6.0 // base forward speed
MaxStrafeSpeed = 4.5 // base right/left speed

WEAPONSECTION = 1
WeaponName = "rep_weap_inf_double_pistol"
WeaponAmmo = 7

WEAPONSECTION = 2
WeaponName = "zx_wrist_flammethrower"
WeaponAmmo = 0
WeaponChannel = 1

VOUnitType = 121
What's going wrong?

Re: Dual Weapons

Posted: Sat Sep 12, 2009 12:12 pm
by DarthD.U.C.K.
you cant add the right-hand pistol to the left hand
you have to use a seperate model for it because the coordinates of the left hand dont equal the one of the hp_weapons (where all wepons are attached to)
i released a lefthandversion of this pistol in my doublepistolassetspack

Re: Dual Weapons

Posted: Sat Sep 12, 2009 12:12 pm
by Xavious
Looks to me like that pistol hasn't been set up correctly to be used in the left hand. Did you download a modified pistol model for use in the left hand? If so, which one? (and if not, then you need one)

Re: Dual Weapons

Posted: Sat Sep 12, 2009 12:14 pm
by Fierfek
I didn't download any modified pistols. How do I modify it so it works?

Re: Dual Weapons

Posted: Sat Sep 12, 2009 12:14 pm
by DarthD.U.C.K.
DarthD.U.C.K. wrote:you cant add the right-hand pistol to the left hand
you have to use a seperate model for it because the coordinates of the left hand dont equal the one of the hp_weapons (where all wepons are attached to)
i released a lefthandversion of this pistol in my doublepistolassetspack

Re: Dual Weapons

Posted: Sat Sep 12, 2009 12:22 pm
by Fierfek
Ah, sorry, didn't see those in your pack before.
Okay, have added them to unit, testing now.

EDIT: It worked!! Thanks guys!!