Shield Saber / Weapon

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
bhawkgoalie10
Private Second Class
Posts: 60
Joined: Mon Dec 29, 2008 1:55 pm

Shield Saber / Weapon

Post by bhawkgoalie10 »

hey,

i downloaded caleb's shield from one of his model packs and then modified a normal saber's ODF. i changed the geometry name to the name of the MSH and same with the texture to the tga.
when i played the game there was no saber at all, the animations still worked and everything but there was nothing in his hands to attack with. funny but not the point :/

so then i did the same into a normal rifle's ODF and it showed up perfectly fine. of course they are shooting through the shield and that's not the intent...so my question is have i done anything wrong? or is there a way (if the saber isnt possible) to make the rifle into something that acts like a shield

thanks :D
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: Shield Saber / Weapon

Post by Fiodis »

Im not entirely sure, but I don't believe Caleb's shield has a firepoint. I've got it working before by setting it up as an offhand weapon with Aayla's saber's ODF. If you do what you say, with the saber, be sure to change the saber length to 0. You don't need to change the saber's texture, just it's mesh. Search through the msh file for something called hp_fire or similar, and put this as the firepoint. If you don't find anything just use the dummyroot.

If you want it to act as a shield instead of a saber (block only, not attack) then you'll have to do some combo editing. I'd suggest just getting it in-game as a saber to start with. Then you can fool around with .combo's.
bhawkgoalie10
Private Second Class
Posts: 60
Joined: Mon Dec 29, 2008 1:55 pm

Re: Shield Saber / Weapon

Post by bhawkgoalie10 »

i couldnt get anything working...you said you got his to work? if you could show me what exactly you did that would help...
yeah i tried using ones like hp_fire, hp_fire1, hp_fire2, hp_fire1 hp_weapons, etc but nothing :/

then again it's a shield right? so maybe i could turn the rifle into a personal shield emitter? i could do that right?

anyway here's a pic, i dont know why but half my guys have the saber and the other half has the rifle :lol:
Hidden/Spoiler:
Image
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: Shield Saber / Weapon

Post by Fiodis »

Code: Select all

[WeaponClass]

ClassLabel      = "melee"
ClassParent     = "com_weap_inf_lightsaber"

[Properties]

GeometryName        = "rep_weap_inf_lightsabre"
ComboAnimationBank  = "human_sabre melee rep_hero_aalya"

NumDamageEdges = "2"

OffhandFirePointName       = "hp_fire hp_weapons"
LightSaberLength    = "1.0"
LightSaberWidth     = "0.08"
LightSaberTexture   = "greenlightsabre"
LightSaberTrailColor = "82 255 7 128"

OffhandGeometryName        = "rohan_shield"
OffhandFirePointName       = "hp_fire_lightsabre"
LightSaberLength    = "0.0"
LightSaberWidth     = "0.0"
LightSaberTexture 	= "none"
LightSaberTrailColor = "7 85 255 0"
I can't find the exact odf but that's something like it.

You can give him the Droideka's shield emitter as a weapon, if you so wish.
bhawkgoalie10
Private Second Class
Posts: 60
Joined: Mon Dec 29, 2008 1:55 pm

Re: Shield Saber / Weapon

Post by bhawkgoalie10 »

rrr...all im getting is one very transparent white saber...
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: Shield Saber / Weapon

Post by AQT »

Don't use the shield as a weapon. Use it as an addon mesh. Add these lines to your unit's .odf:

Code: Select all

AnimatedAddon = "shield"
GeometryAddon = "rohan_shield"
AddonAttachJoint = "bone_l_hand"
It will look like your unit is using the shield when blocking.
bhawkgoalie10
Private Second Class
Posts: 60
Joined: Mon Dec 29, 2008 1:55 pm

Re: Shield Saber / Weapon

Post by bhawkgoalie10 »

THANK YOU! :D
Post Reply