Jump to content


Photo

CAH Dwarf


  • Please log in to reply
8 replies to this topic

#1 wanchope

wanchope
  • Members
  • 9 posts

Posted 10 January 2018 - 12:44 PM

hi, i wanna increase the power of my dwarf custom hero's weapon. i wanna see the same effect like  tombombadil's punch, how can i do that?



#2 NewErr

NewErr

    Elf-friend

  • Project Team
  • 2,177 posts
  • Location:Romania
  • Projects:Wars of The Firstborn
  •  World Wide Artist

Posted 10 January 2018 - 01:36 PM

You can only increase the damage of all the CAH that use that weapon. You can't change just specifically one hero, unless you make a new one but still will be used by other dwarf characters.



#3 wanchope

wanchope
  • Members
  • 9 posts

Posted 10 January 2018 - 02:11 PM

You can only increase the damage of all the CAH that use that weapon. You can't change just specifically one hero, unless you make a new one but still will be used by other dwarf characters.

 

it's not problem, can you show me how i can change that melee weapon's damage same like bombadil's punch?



#4 NewErr

NewErr

    Elf-friend

  • Project Team
  • 2,177 posts
  • Location:Romania
  • Projects:Wars of The Firstborn
  •  World Wide Artist

Posted 10 January 2018 - 03:41 PM

The easiest way is to identify the weapon the dwarf CAH uses in weapon.ini and replace it's code with Tom Bombadil's weapon. I haven't worked almost at all with CAH so I'm not really sure where the dwarf CAH weapon might be. :p



#5 wanchope

wanchope
  • Members
  • 9 posts

Posted 10 January 2018 - 05:16 PM

The easiest way is to identify the weapon the dwarf CAH uses in weapon.ini and replace it's code with Tom Bombadil's weapon. I haven't worked almost at all with CAH so I'm not really sure where the dwarf CAH weapon might be. :p

 

i made the changes, i replaced it with tom bombadil's weapon but i couldn't run the game after that.

btw i'm using notepad++ for that.



#6 NewErr

NewErr

    Elf-friend

  • Project Team
  • 2,177 posts
  • Location:Romania
  • Projects:Wars of The Firstborn
  •  World Wide Artist

Posted 10 January 2018 - 09:27 PM

What error does it show?



#7 wanchope

wanchope
  • Members
  • 9 posts

Posted 10 January 2018 - 10:21 PM

What error does it show?

 

https://imgur.com/a/Y2rus



#8 Jokuc

Jokuc

    Hardcore Procrastinator

  • Members
  • 187 posts
  • Location:Sweden
  •  Mapper

Posted 16 January 2018 - 02:41 PM

I haven't worked almost at all with CAH so I'm not really sure where the dwarf CAH weapon might be. :p

 

Unfortunately, all custom heroes use the same two weapons. CreateAHeroBasicMeleeWeapon and CreateAHeroBasicRangedWeapon, so you can't just edit the one for dwarves. Well, you possibly could, but that would mean having to create an entire new CAH weapon system.. and that's a lot of work.
 

 

Anyway

Go to data\ini\weapon.ini and find the bomba weapon:

Weapon TomBombadilPunch

Copy the meta impact nugget:

MetaImpactNugget
    ShockWaveAmount   		= 30.0
    ShockWaveRadius   		= 50.0
    ShockWaveTaperOff 		= 1.0
    ShockWaveArc      		= 45
    ShockWaveZMult    		= 1.20
End

Now find the CAH melee weapon:

Weapon CreateAHeroBasicMeleeWeapon 

..and paste the meta impact nugget after the last DOT nugget (but before the last END) like so:

Spoiler

Edited by Jokuc, 17 January 2018 - 01:35 AM.


#9 NewErr

NewErr

    Elf-friend

  • Project Team
  • 2,177 posts
  • Location:Romania
  • Projects:Wars of The Firstborn
  •  World Wide Artist

Posted 16 January 2018 - 06:25 PM

That is very sad...






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users