Hammer is buggy? [Solved]

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
Noobasaurus
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2006
Joined: Tue Aug 17, 2010 5:56 pm

Hammer is buggy? [Solved]

Post by Noobasaurus »

So I went and downloaded a nice hammar from the assets place. (Thanks CodaRez! :wink: ) It worked in game but when I swing it at people it only gets the ones on the back end of the swing. Why?

Also, I only put it on the pilot droid and its on the super battle droid too...

Here is its odf:
Hidden/Spoiler:
[WeaponClass]

// this is always “melee” for a lightsaber
ClassLabel = "melee"
ClassParent = "com_weap_inf_lightsaber"

[Properties]
//////PLS FILL IN THE THIRD PARAMETER(I.E. name of the combo file ur using; maul, obiwan, etc.)
ComboAnimationBank = "human_sabre melee gam_inf_axe"

NumDamageEdges = 1

GeometryName = "swg_p_hammer"

FirePointName = "hp_fire"

MinRange = "0"
OptimalRange = "1.5"
MaxRange = "3"

HitSound = "com_weap_inf_grenade_bounce"

OnSound = "overrideparentsound"
TurnOnSound = "overrideparentsound"
TurnOffSound = "overrideparentsound"

// Suggested blade length
LightSaberLength = "1.0"
// How wide.
LightSaberWidth = "0.30"
Last edited by Noobasaurus on Sun Jun 26, 2011 5:46 pm, edited 1 time in total.
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: Hammar is buggy

Post by Fiodis »

Did you make a custom combo for it? And what do you mean by the "back end" of the swing? The pommel? I haven't downloaded the asset myself, but it could be it has a misplaced hp_fire.
Noobasaurus
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2006
Joined: Tue Aug 17, 2010 5:56 pm

Re: Hammar is buggy

Post by Noobasaurus »

Fiodis wrote:Did you make a custom combo for it? And what do you mean by the "back end" of the swing? The pommel? I haven't downloaded the asset myself, but it could be it has a misplaced hp_fire.
Nope, just used the normal gamorrean guard combo. By the "back end" of the swing I mean when you swing and when it finishes at the other side (it swings a 180 around the front, when it finishes [in that finishing area] there is a chance it might hit the person) it may or may not hit a person standing over there.

What exactly is a "pommel"?
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: Hammer is buggy?

Post by Fiodis »

http://en.wikipedia.org/wiki/Hilt#Pommel

At a guess, then, it might be a misplaced hp_fire, in which case there's not much you can do about it short of editing the model; but I'm not completely certain that's it.
Noobasaurus
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2006
Joined: Tue Aug 17, 2010 5:56 pm

Re: Hammer is buggy?

Post by Noobasaurus »

Fiodis wrote:http://en.wikipedia.org/wiki/Hilt#Pommel

At a guess, then, it might be a misplaced hp_fire, in which case there's not much you can do about it short of editing the model; but I'm not completely certain that's it.
Well, there goes my mining droid... :(

Well, thanks for clearing it up! :thumbs:
Ninja
Master Sergeant
Master Sergeant
Posts: 172
Joined: Thu Jan 07, 2010 9:49 pm
Projects :: Ghostmark
Location: Inside your sandwich

Re: Hammer is buggy? [Solved]

Post by Ninja »

I noticed the [Solved] tag, but melee weapon bugs can also be caused by not having large enough combo memory pools. Do you have anything similar to this in the lua?

Code: Select all

    SetMemoryPoolSize ("Combo",30)              -- should be ~ 2x number of jedi classes
    SetMemoryPoolSize ("Combo::State",500)      -- should be ~12x #Combo
    SetMemoryPoolSize ("Combo::Transition",500) -- should be a bit bigger than #Combo::State
    SetMemoryPoolSize ("Combo::Condition",500)  -- should be a bit bigger than #Combo::State
    SetMemoryPoolSize ("Combo::Attack",400)     -- should be ~8-12x #Combo
    SetMemoryPoolSize ("Combo::DamageSample",4000)  -- should be ~8-12x #Combo::Attack
    SetMemoryPoolSize ("Combo::Deflect",88)     -- should be ~1x #combo
Noobasaurus
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2006
Joined: Tue Aug 17, 2010 5:56 pm

Re: Hammer is buggy? [Solved]

Post by Noobasaurus »

Ninja wrote:I noticed the [Solved] tag, but melee weapon bugs can also be caused by not having large enough combo memory pools. Do you have anything similar to this in the lua?

Code: Select all

 SetMemoryPoolSize ("Combo",30) -- should be ~ 2x number of jedi classes
SetMemoryPoolSize ("Combo::State",500) -- should be ~12x #Combo
SetMemoryPoolSize ("Combo::Transition",500) -- should be a bit bigger than #Combo::State
SetMemoryPoolSize ("Combo::Condition",500) -- should be a bit bigger than #Combo::State
SetMemoryPoolSize ("Combo::Attack",400) -- should be ~8-12x #Combo
SetMemoryPoolSize ("Combo::DamageSample",4000) -- should be ~8-12x #Combo::Attack
SetMemoryPoolSize ("Combo::Deflect",88) -- should be ~1x #combo
Yes, yes I do have that in my lua. In fact, here is the exact code:
Hidden/Spoiler:
SetMemoryPoolSize ("ClothData",20)
SetMemoryPoolSize ("Combo",50) -- should be ~ 2x number of jedi classes
SetMemoryPoolSize ("Combo::State",650) -- should be ~12x #Combo
SetMemoryPoolSize ("Combo::Transition",650) -- should be a bit bigger than #Combo::State
SetMemoryPoolSize ("Combo::Condition",650) -- should be a bit bigger than #Combo::State
SetMemoryPoolSize ("Combo::Attack",550) -- should be ~8-12x #Combo
SetMemoryPoolSize ("Combo::DamageSample",6000) -- should be ~8-12x #Combo::Attack
SetMemoryPoolSize ("Combo::Deflect",100) -- should be ~1x #combo
Ninja
Master Sergeant
Master Sergeant
Posts: 172
Joined: Thu Jan 07, 2010 9:49 pm
Projects :: Ghostmark
Location: Inside your sandwich

Re: Hammer is buggy? [Solved]

Post by Ninja »

This sounds like a problem I had editing combos, for part of an attack the lightsaber had no trail effect and did no damage. There might be a "glitch" (maybe intentional) in the stock guard combo, try using a different combo and animation set.
Noobasaurus
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2006
Joined: Tue Aug 17, 2010 5:56 pm

Re: Hammer is buggy? [Solved]

Post by Noobasaurus »

Ninja wrote:This sounds like a problem I had editing combos, for part of an attack the lightsaber had no trail effect and did no damage. There might be a "glitch" (maybe intentional) in the stock guard combo, try using a different combo and animation set.
It works perfectly now! Thank you so much! :D :D :D
Post Reply