Extraweapons.hud headaches

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

FragMe!
Gametoast Staff
Gametoast Staff
Posts: 2244
Joined: Sat May 13, 2006 12:34 am
Projects :: Not sure keep changing my mind.
Games I'm Playing :: F1 and SWBF
xbox live or psn: No gamertag set
Location: Origin name GT_FragMe
Contact:

Re: Extraweapons.hud headaches

Post by FragMe! »

Hope it works, BTW I discovered that with the extraweapons file, I had remove some unecessary things but mistakenly also removed some necessary things a couple of silly bracket things. So I would just use the numbers and go with you file instead or find the missing brackets. (I can also post the fixed file if you want)
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Re: Extraweapons.hud headaches

Post by Teancum »

I'm bumping this topic for a good reason. I'm going through and doing primary weapon HUDs now, but I'm still a little foggy on how .huds work. This time I have Bossk's HUD model showing up, but it's not removing the floating one.
Hidden/Spoiler:
ViewPort("Transforms")
{
EventNameFilter("player%")
TransformNameMesh("player1weapon1")
{
NameMesh("stouker", "com_inv_mesh")

EventInput("player1.weapon2.change")
EventOutput("player1.weapon2.mesh")
}
}

Group("extraWeaponDisplay1")
{
PropagateAlpha(1)
Viewport(1)
Position(0.0000000, 1.000000, 0.000000, "Viewport")
ZOrder(255)
EventEnable("player1.weaponsEnable")
EventDisable("player1.weaponsDisable")
Group("extraWeaponIcon1")
{
Viewport(1)
Position(0.346161, -0.450412, 0.000000, "Viewport")
EventEnable("initialize")
Model3D("player1.weapon1mesh")
{
EventMesh("player1.weapon1.change")
Viewport(1)
ZOrder(5)
EventEnable("player1.weapon1.mesh")
EventDisable("player1.weapon1.disable")
Position(500.000000, 500.000000, 500.000000, "Viewport")
Rotation(0.804269, 359.994110, 359.999695)
Scale(0.000000, 0.000000, 0.000000)

// adjust position, rotation and scale of second weapon here
MeshInfo("stouker")
{
Position(-0.236938, 0.359879, 0.001903, "Viewport")
Rotation(0.804269, 90.747269, 359.999695)
}
}
}
}
I've got HUDTag = "stouker" in the weapon file.
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Extraweapons.hud headaches

Post by Maveritchell »

Assuming you're creating extraweapons.hud's for multiple levels, are they all named as such? That'll cause the problem you mention.
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Re: Extraweapons.hud headaches

Post by Teancum »

Found the problem. It was the EventInput and EventOutput for weapon1. They still pointed to weapon2. I knew it had to be something stupid. Anyways, time to crank up the music and knock out all these HUD bugs. :music:
Delta_57_Dash
Jedi
Jedi
Posts: 1187
Joined: Fri Jun 10, 2005 2: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

Re: Extraweapons.hud headaches

Post by Delta_57_Dash »

Note to teancum: don't name all your new huds the same thing.

If you do, the floaty things will stay there.

Either have 1 big hud, or many huds named differently.
Post Reply