Jump to content


Photo

HELP! Changing weapon type for CaH and some Heros

cah hero weapon design change style types knockback multiple kills

Best Answer -SilverBane-, 18 June 2015 - 05:44 PM

Well, that's pretty simple. Open createaheroweaponupgrades.INC  and then find the weapon you want to change in his weaponsets (probably you're going to change this: CreateAHeroBasicMeleeWeapon)

Then, open Weapon.INI and find:

Weapon CreateAHeroBasicMeleeWeapon

it should look like this:

Weapon CreateAHeroBasicMeleeWeapon
	LeechRangeWeapon      = Yes
	AttackRange           = STANDARD_MELEE_ATTACK_RANGE
	MeleeWeapon           = Yes
	FireFX                = FX_GondorSwordHit
	DelayBetweenShots     = FARAMIR_DELAYBETWEENSHOTS 			// time between shots, msec
	PreAttackDelay        = FARAMIR_PREATTACKDELAY 	// 400 is sword swing delay time before contact with target.
	PreAttackType         = PER_SHOT // Do the delay each time we attack a new target
	FiringDuration        = FARAMIR_FIRINGDURATION 	// Duration of the sword swing
	UseInnateAttributes	  = Yes

	DamageNugget                        // A basic Nugget that just does damage
		Damage        = CREATE_A_HERO_DAMAGE
		Radius        = 0.0
		DelayTime     = 0
		DamageType    = HERO
		DamageFXType  = SWORD_SLASH
		DeathType     = NORMAL
	End

	DOTNugget                        // A basic Nugget that just does damage
		Damage        = DEFAULT_POISON_DAMAGE
		AcceptDamageAdd = No
		Radius        = 0.0
		DelayTime     = 0
		DamageType    = POISON
		DamageFXType  = POISON
		DeathType     = NORMAL
		DamageInterval = 500
		DamageDuration = 10000
		SpecialObjectFilter = AFFECTED_BY_POISON_OBJECTFILTER
		RequiredUpgradeNames	= Upgrade_CreateAHeroPoisonAttack_Level1
		ForbiddenUpgradeNames	= Upgrade_CreateAHeroPoisonAttack_Level2 Upgrade_CreateAHeroPoisonAttack_Level3 Upgrade_CreateAHeroPoisonAttack_Level4
	End

	DOTNugget                        // A basic Nugget that just does damage
		Damage        = DEFAULT_POISON_DAMAGE
		AcceptDamageAdd = No
		Radius        = 0.0
		DelayTime     = 0
		DamageType    = POISON
		DamageFXType  = POISON
		DeathType     = NORMAL
		DamageInterval = 500
		DamageDuration = 15000
		SpecialObjectFilter = AFFECTED_BY_POISON_OBJECTFILTER
		RequiredUpgradeNames	= Upgrade_CreateAHeroPoisonAttack_Level2
		ForbiddenUpgradeNames	= Upgrade_CreateAHeroPoisonAttack_Level3 Upgrade_CreateAHeroPoisonAttack_Level4
	End

	DOTNugget                        // A basic Nugget that just does damage
		Damage        = DEFAULT_POISON_DAMAGE
		AcceptDamageAdd = No
		Radius        = 0.0
		DelayTime     = 0
		DamageType    = POISON
		DamageFXType  = POISON
		DeathType     = NORMAL
		DamageInterval = 500
		DamageDuration = 20000
		SpecialObjectFilter = AFFECTED_BY_POISON_OBJECTFILTER
		RequiredUpgradeNames	= Upgrade_CreateAHeroPoisonAttack_Level3
		ForbiddenUpgradeNames	= Upgrade_CreateAHeroPoisonAttack_Level4
	End

	DOTNugget                        // A basic Nugget that just does damage
		Damage        = DEFAULT_POISON_DAMAGE
		AcceptDamageAdd = No
		Radius        = 0.0
		DelayTime     = 0
		DamageType    = POISON
		DamageFXType  = POISON
		DeathType     = NORMAL
		DamageInterval = 500
		DamageDuration = 30000
		SpecialObjectFilter = AFFECTED_BY_POISON_OBJECTFILTER
		RequiredUpgradeNames	= Upgrade_CreateAHeroPoisonAttack_Level4
	End
End

To kill multiple enemies, just change Radius = 0.0 in DamageNugget to something bigger. (aragorn with blademaster haves around 15)

To knock back, you need to add a metaimpact nugget, like this (boromir's meta impact)

  MetaImpactNugget                    ; A Nugget that throws things back with force
    HeroResist			= .75  ; only add this if you want % chance vs heroes
    ShockWaveAmount		= 25.0
    ShockWaveRadius		= 8
    ShockWaveArc		= 120
    ShockWaveTaperOff = 1
  End

That's all :)

 

Go to the full post


  • Please log in to reply
3 replies to this topic

#1 Arveleg_Anarion

Arveleg_Anarion
  • New Members
  • 3 posts

Posted 18 June 2015 - 10:53 AM

Hey! I have been playing BFME ever since it came out and I have been modding ever since the RJ-ROTWK 1.06. I have been dabbling in modding here and there and I can honsetly say I do not know what I am doing! I can change the ammount of cash/population a farm can generate. I can  change the simpler things. My question is: How can I change the type of weapon a certain CaH or Hero uses? For example: Boromir has knockback whenever he swings his sword, Aragorn (when Blademaster is activated) can kill mulitple targets in one swing. I want to mod some CaH so that they can do the same thing. How do I do this?



#2 -SilverBane-

-SilverBane-

    Inactive Noob

  • Project Team
  • 474 posts
  • Location:Bucharest
  • Projects:Life
  •  Mapper & Coder

Posted 18 June 2015 - 05:44 PM   Best Answer

Well, that's pretty simple. Open createaheroweaponupgrades.INC  and then find the weapon you want to change in his weaponsets (probably you're going to change this: CreateAHeroBasicMeleeWeapon)

Then, open Weapon.INI and find:

Weapon CreateAHeroBasicMeleeWeapon

it should look like this:

Weapon CreateAHeroBasicMeleeWeapon
	LeechRangeWeapon      = Yes
	AttackRange           = STANDARD_MELEE_ATTACK_RANGE
	MeleeWeapon           = Yes
	FireFX                = FX_GondorSwordHit
	DelayBetweenShots     = FARAMIR_DELAYBETWEENSHOTS 			// time between shots, msec
	PreAttackDelay        = FARAMIR_PREATTACKDELAY 	// 400 is sword swing delay time before contact with target.
	PreAttackType         = PER_SHOT // Do the delay each time we attack a new target
	FiringDuration        = FARAMIR_FIRINGDURATION 	// Duration of the sword swing
	UseInnateAttributes	  = Yes

	DamageNugget                        // A basic Nugget that just does damage
		Damage        = CREATE_A_HERO_DAMAGE
		Radius        = 0.0
		DelayTime     = 0
		DamageType    = HERO
		DamageFXType  = SWORD_SLASH
		DeathType     = NORMAL
	End

	DOTNugget                        // A basic Nugget that just does damage
		Damage        = DEFAULT_POISON_DAMAGE
		AcceptDamageAdd = No
		Radius        = 0.0
		DelayTime     = 0
		DamageType    = POISON
		DamageFXType  = POISON
		DeathType     = NORMAL
		DamageInterval = 500
		DamageDuration = 10000
		SpecialObjectFilter = AFFECTED_BY_POISON_OBJECTFILTER
		RequiredUpgradeNames	= Upgrade_CreateAHeroPoisonAttack_Level1
		ForbiddenUpgradeNames	= Upgrade_CreateAHeroPoisonAttack_Level2 Upgrade_CreateAHeroPoisonAttack_Level3 Upgrade_CreateAHeroPoisonAttack_Level4
	End

	DOTNugget                        // A basic Nugget that just does damage
		Damage        = DEFAULT_POISON_DAMAGE
		AcceptDamageAdd = No
		Radius        = 0.0
		DelayTime     = 0
		DamageType    = POISON
		DamageFXType  = POISON
		DeathType     = NORMAL
		DamageInterval = 500
		DamageDuration = 15000
		SpecialObjectFilter = AFFECTED_BY_POISON_OBJECTFILTER
		RequiredUpgradeNames	= Upgrade_CreateAHeroPoisonAttack_Level2
		ForbiddenUpgradeNames	= Upgrade_CreateAHeroPoisonAttack_Level3 Upgrade_CreateAHeroPoisonAttack_Level4
	End

	DOTNugget                        // A basic Nugget that just does damage
		Damage        = DEFAULT_POISON_DAMAGE
		AcceptDamageAdd = No
		Radius        = 0.0
		DelayTime     = 0
		DamageType    = POISON
		DamageFXType  = POISON
		DeathType     = NORMAL
		DamageInterval = 500
		DamageDuration = 20000
		SpecialObjectFilter = AFFECTED_BY_POISON_OBJECTFILTER
		RequiredUpgradeNames	= Upgrade_CreateAHeroPoisonAttack_Level3
		ForbiddenUpgradeNames	= Upgrade_CreateAHeroPoisonAttack_Level4
	End

	DOTNugget                        // A basic Nugget that just does damage
		Damage        = DEFAULT_POISON_DAMAGE
		AcceptDamageAdd = No
		Radius        = 0.0
		DelayTime     = 0
		DamageType    = POISON
		DamageFXType  = POISON
		DeathType     = NORMAL
		DamageInterval = 500
		DamageDuration = 30000
		SpecialObjectFilter = AFFECTED_BY_POISON_OBJECTFILTER
		RequiredUpgradeNames	= Upgrade_CreateAHeroPoisonAttack_Level4
	End
End

To kill multiple enemies, just change Radius = 0.0 in DamageNugget to something bigger. (aragorn with blademaster haves around 15)

To knock back, you need to add a metaimpact nugget, like this (boromir's meta impact)

  MetaImpactNugget                    ; A Nugget that throws things back with force
    HeroResist			= .75  ; only add this if you want % chance vs heroes
    ShockWaveAmount		= 25.0
    ShockWaveRadius		= 8
    ShockWaveArc		= 120
    ShockWaveTaperOff = 1
  End

That's all :)

 


2qm3dd5.jpg


#3 Arveleg_Anarion

Arveleg_Anarion
  • New Members
  • 3 posts

Posted 18 June 2015 - 11:24 PM

Thank you for answering!! :D I've been using the RJ mod only (because the original EA game feels like it's st ill in Beta mode) So I've been dicking around with the controls of the game and I was also wondering; how do I give certain CaHs certain powers that they might not beable to get originally. For example: I want to make a Man of the West hero but I want him to use a bow. How can I give him a toggle btwn bow/sword? Also, The CaH Blademaster is too slow for my liking. I want to know how I can increase the speed of its attacks (simillar to that of Aragorns Blademaster)?



#4 -SilverBane-

-SilverBane-

    Inactive Noob

  • Project Team
  • 474 posts
  • Location:Bucharest
  • Projects:Life
  •  Mapper & Coder

Posted 19 June 2015 - 06:39 AM

Both of those things are not that easy to do. In order to give men class a ranged weapon, you would first need to animate the hero to complete all the missing ones (atm theres no bow anim for men class). Wich is a complex stuff and few here are able to do it. You can have him shooting with a bow without anims but it's completly unrealistic since he will sit idle while sending arrows...

About the 2nd problem, that's a bit tricky aswell, since the CAH blademaster and aragorn's blademaster work different. If you open aragorn.INI you will see that in his w3d draw module and weaponset is a condition: WEAPONSET_HERO_MODE

 

Basically it's made from 2 things: the attributemodifier wich increases his armor and attack, and Weapon GondorAragornHeroSword, wich changes his attack speed and radius.

The CAH only haves the attributemodifier, you see. It is possible to add him that, but it requires adding a ton of weaponsets for all conditions there....


2qm3dd5.jpg





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users