#applying Weapon primary attack as secondary on different ones

1 messages · Page 1 of 1 (latest)

round thunder
#

can i assign for example, the whipcrack ability on a different weapontype as alt-fire, and where would it get the animationframes from?

round thunder
#

nobody?

sleek matrix
#

What is your intention with this ability anyway? What exactly should it represent or do?

mortal echo
#

in my mod (RWM) I added the spear's rocket spear ability to a floran lightsaber - i did this by copying the original weaponability + it's associated lua and created a renamed variant of the ability

I then had to edit the lua to make it accept non-spear weapons .

So yeah, it's possible, but requires a bit of working with lua

#

depending on the ability you should also be able to retrieve the frames from the weaponability

#

the important part is that you get the elemental type right for the weaponability - this is part of the code for my lightsaber's alt ability

    "name" : "Rocket Spear ",
    "type" : "rocketspearalt",
    "scripts" : ["/items/active/weapons/melee/abilities/spear/rocketspearalt/rocketspearalt.lua"],
    "class" : "RocketSpearAlt",```
#

notice that "type" and "scripts" point to my own weaponability file and lua and NOT the game's default weapon ability files

#

and for most altabilities your elementalType is going to be a non-physical one, such as "elementalType" : "poison", - but not all

#

some are physical

#

takes some figurng out to see which are physical and not, but generally elemental type attacks have 4 different frames - one for each elemental type

round thunder
#

i wanna try it with a broadsword having whip as alt-fire

#

i will try that tomorrow

round thunder
mortal echo
#

i will have a look - it has been a while

mortal echo
#

I'm not sure if creating a new lua script/weaponability is actually necessary now that I am looking into it - that is just what I did

#

at least - i can't seem to find where the ability is restricted to a type in the luas/weaponability files or weaponability config

#

so maybe it isn't

#

i would try simply including the wanted weaponability name in the altabilitytype and see if that works first

gray gust
#

wait, what if you did a whip sword instead? since swords dont require animation just some movements

#

instead of sword whip, it'll be m1 for whip m2 for sword slashes