abilities -1 reply

Please wait...

haubro18

uhhhhh... a pizza?

50 XP

21st September 2008

0 Uploads

75 Posts

0 Threads

#1 10 years ago

how do i give a new ability to a unit (ex: giving the hunt for enemies ability to 2m repulser tanks)




xanofar

Back from the dead!

50 XP

15th April 2008

0 Uploads

783 Posts

0 Threads

#2 10 years ago

The hunt ability is a wonderfully easy ability to include: First, add to the unit's the line "HUNT" (for the 2M, you'll known you're in the right place because the line "SHIELDED" will also be there.

I'll look up the rest of what to do in a second...

EDIT: this is what you want:

ABILITY_COUNTDOWN,AFFECTED_BY_SHIELD, HUNT, WALK_LOCOMOTOR, IDLE, TARGETING, WEAPON, TURRET, POWERED, SHIELDED, REVEAL, HIDE_WHEN_FOGGED, UNIT_AI, TELEKINESIS_TARGET,STUNNABLE, WIND_DISTURBANCE, SURFACE_FX,DAMAGE_TRACKING



xanofar

Back from the dead!

50 XP

15th April 2008

0 Uploads

783 Posts

0 Threads

#3 10 years ago

This is what you need to add:

This is what my 2M's abilities area says (it may be slightly different from yours because I think I made the power-to-weapons ability drain less shield power).

POWER_TO_WEAPONSWEAPON_DELAY_MULTIPLIER, 0.3fSHIELD_REGEN_MULTIPLIER, -3.0fENERGY_REGEN_MULTIPLIER, 0.3fSPEED_MULTIPLIER, 0.3fCAUSE_DAMAGE_MULTIPLIER , 1.5f506Unit_Attack_2M_Tank

What you need to do is put somewhere in there (either before or after the power-to-weapons ability).

HUNT

You will need to do the same thing for the 2M's ground company: "Imperial_Armor_Group"

Got it? :)




haubro18

uhhhhh... a pizza?

50 XP

21st September 2008

0 Uploads

75 Posts

0 Threads

#4 10 years ago

...whoa... i thot it would be at least remotely easy:eek:




haubro18

uhhhhh... a pizza?

50 XP

21st September 2008

0 Uploads

75 Posts

0 Threads

#5 10 years ago

maybe i can do this, i need to know where to find the 2m repulser tank file for changing




V.

For Vendetta!

50 XP

1st April 2008

0 Uploads

2,918 Posts

0 Threads

#6 10 years ago

Search in GROUNDVEHICLES.xml, then press Ctrl+F and paste this:

M1_Repulsor_Tank

I kno it's an other name, but this is just his name in the files. Not in-game.




haubro18

uhhhhh... a pizza?

50 XP

21st September 2008

0 Uploads

75 Posts

0 Threads

#7 10 years ago

POWER_TO_WEAPONSWEAPON_DELAY_MULTIPLIER, 0.5fSHIELD_REGEN_MULTIPLIER, -2.0fENERGY_REGEN_MULTIPLIER, 1fSPEED_MULTIPLIER, 0.5fCAUSE_DAMAGE_MULTIPLIER , 3.0f6010 <Unit_Attack_2M_TankHUNT is this right? what should i do differnetly if it isn't?




haubro18

uhhhhh... a pizza?

50 XP

21st September 2008

0 Uploads

75 Posts

0 Threads

#8 10 years ago

i got it!!!:) thank you so much to xanofar and invisible hand for you help




V.

For Vendetta!

50 XP

1st April 2008

0 Uploads

2,918 Posts

0 Threads

#9 10 years ago

You 'r welcome! You can always ask for help.