Page 1 of 1
Floating weapon and no sound?
Posted: Sun Dec 17, 2006 11:42 pm
by Elmo
I put in a Naboo soldier in my map, And when I play as him, his gun does not have any sound, and beside him, another copy of the gun is floating right there. How do you fix this?
RE: Floating weapon and no sound?
Posted: Mon Dec 18, 2006 11:22 am
by The_Emperor
Put "HudTag = "hud" in the guns odf, the floating gun will dissapear. And there's a missing sound tutorial in the how to section, I'm too lazy to post a link right now

Posted: Mon Dec 18, 2006 12:17 pm
by Elmo
where do i put that whole hud tag thing? Anywhere in the guns odf?
Posted: Mon Dec 18, 2006 2:38 pm
by The_Emperor
Yeah anywhere under properties
Posted: Mon Dec 18, 2006 9:13 pm
by Elmo
Ok, I did what you told me to do, but there is still that floating gun problem. Here is my gun's odf:
WeaponClass]
ClassParent = "com_weap_inf_rifle"
[Properties]
ScoreForMedalsType = -1
MedalsTypeToLock = -1
GeometryName = "gar_weap_inf_rifle"
OrdnanceName = "gar_weap_inf_rifle_ord"
//***********************************************
//*********** SOUND *********
//***********************************************
FireSound = "gar_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"
"HudTag = "hud"
Waht's wrong??
Posted: Mon Dec 18, 2006 9:26 pm
by Penguin
"HudTag = "hud"
should be
HudTag = "<anything thats not a real .msh file>"
Posted: Mon Dec 18, 2006 9:26 pm
by Darth_Z13
WeaponClass]
ClassParent = "com_weap_inf_rifle"
[Properties]
HUDTag = "hud"
ScoreForMedalsType = -1
MedalsTypeToLock = -1
GeometryName = "gar_weap_inf_rifle"
OrdnanceName = "gar_weap_inf_rifle_ord"
//***********************************************
//*********** SOUND *********
//***********************************************
FireSound = "gar_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"
a) You had it in the sound section and
b) You sorta typed it wrong.
Posted: Mon Dec 18, 2006 9:27 pm
by Penguin
EDIT: duplicate post
Posted: Mon Dec 18, 2006 9:48 pm
by Elmo
anything that's not a real msh file??? In the meantime ill try darth's way.

Posted: Mon Dec 18, 2006 9:55 pm
by PvtParts
calling for the hud does the trick, but I guess Penguins saying it can be anything that doesnt exist.
I think you messed it up when you didnt close quotations and had them all over the place/
Posted: Mon Dec 18, 2006 10:02 pm
by Elmo
This is CrAzY... Ok, Is the odf file for the Naboo soldier's blaster rifle called... gar_weap_inf_rifle? I need to know that... and here is my odf file now:
[WeaponClass]
ClassParent = "com_weap_inf_rifle"
[Properties]
HUDTag = "hud"
ScoreForMedalsType = -1
MedalsTypeToLock = -1
GeometryName = "gar_weap_inf_rifle"
OrdnanceName = "gar_weap_inf_rifle_ord"
//***********************************************
//*********** SOUND *********
//***********************************************
FireSound = "gar_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"
Is there something wrong? Because there is still that floating gun!
Edit: should I add this in my gun's ord odf file?
Posted: Mon Dec 18, 2006 10:04 pm
by Darth_Z13
Try cleaning your side and re-munging. That's what did it for me.
Posted: Mon Dec 18, 2006 10:05 pm
by Elmo
wait, so i select my side and click clean? And then munge my side again?
Posted: Mon Dec 18, 2006 10:21 pm
by Teancum
Change HUDTag to "rep_weap_inf_rifle" instead of "hud" -- it'll show up where it should then.
Posted: Mon Dec 18, 2006 10:22 pm
by PvtParts
go into _BUILD\Sides\GAR\ and run (just double-click it) clean.bat
Then, run visualmunge, but be sure to select GAR under the sides menu (actually just select EVERYTHING in the SIDES drop-down).
Posted: Mon Dec 18, 2006 10:29 pm
by Elmo
Teancum wrote:Change HUDTag to "rep_weap_inf_rifle" instead of "hud" -- it'll show up where it should then.
hmmmmmm.. didn't work.. i'll try cleaning
Posted: Tue Dec 19, 2006 12:04 am
by Elmo
dang, cleaning doesn't work either. Anyone have any suggestions?
Here is my odf file...again:
[WeaponClass]
ClassParent = "com_weap_inf_rifle"
[Properties]
HUDTag = "rep_weap_inf_rifle"
ScoreForMedalsType = -1
MedalsTypeToLock = -1
GeometryName = "gar_weap_inf_rifle"
OrdnanceName = "gar_weap_inf_rifle_ord"
//***********************************************
//*********** SOUND *********
//***********************************************
FireSound = "gar_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"
Any problems?