Jump to content


Photo

fellbeast word of power no damage


  • Please log in to reply
7 replies to this topic

#1 sam-the-brave

sam-the-brave
  • Members
  • 45 posts

Posted 08 May 2015 - 11:20 PM

hi

 

i made the witchking (flying on fellbeast) having the word of power in a modified version. but when activate it, it does no damage, just knocking back enemies.

is it possible to fix it? or is the problem, that the word of power is to high above the units? thats the weapon code:

 

Weapon WitchKingWordOfPower 
    IdleAfterFiringDelay = 0
    AttackRange = 500 ; GANDALF_WORD_OF_POWER_RANGE ;120
    MinimumAttackRange = 0.8
    WeaponSpeed = 401         ; dist/sec 
    MinWeaponSpeed = 241
    MaxWeaponSpeed = 601      ; dist/sec Upper limit on scaling, when attacking past nominal "max" range
    ScaleWeaponSpeed = Yes ; Used for lob weapons, scales speed proportional to range
    RadiusDamageAffects = ALLIES ENEMIES NOT_SIMILAR 
    DelayBetweenShots = 5000               ; time between shots, msec
    PreAttackDelay        = 2600
    PreAttackType         = PER_ATTACK ; Do the delay each time we attack a new target
    ;PreAttackFX           = FX_GandalfPreAttackBlast
    FireFX                = FX_WitchkingBlast
    FiringDuration      = 1400


  DamageNugget                        ; A basic Nugget that just does damage
    Damage        = 1000
    ;DamageScalar  = 0% NONE +INFANTRY +CAVALRY +MONSTER
    ;DamageScalar  = 100% NONE +MordorFellBeast +MordorWitchKingOnFellBeast +GondorGwaihir_Summoned +Hero
    ;DamageScalar  = 200% NONE +MordorBalrog
    Radius        = 250.0
    DelayTime     = 667
    DamageType    = MAGIC
    DamageFXType  = MAGIC
    DeathType     = EXPLODED
    DamageSpeed        = 500.0 
    DamageMaxHeight = 0 ;200 ; 50  
  End
  
    MetaImpactNugget                   
        HeroResist            = .0 ;.75
        ShockWaveAmount   = 90.0 ; 70.0 
        ShockWaveRadius   = 500.0
        ShockWaveTaperOff = 1.0
        ShockWaveZMult    = 1.000
        ShockWaveSpeed      = 500.0 ; 700.0 
        DelayTime         = 667
    End

End

 



#2 sam-the-brave

sam-the-brave
  • Members
  • 45 posts

Posted 09 May 2015 - 10:22 AM

i even tried to give the witchking the balrogbreath with the same effect (so that it is launched on the ground) but i even dont get the breath cursor displayed. when i try this exchange to gandalf, it works.. (by the way if i modify the weapon entrys of gandalfs word of power as posted above it does damage)

 

anybody an idea how i can give the witchking the effect AND damage?



#3 -SilverBane-

-SilverBane-

    Inactive Noob

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

Posted 09 May 2015 - 03:06 PM

try setting this

 DamageMaxHeight = 0 ;200 ; 50  

to this

 DamageMaxHeight = 100

 it should now hit enemies


2qm3dd5.jpg


#4 sam-the-brave

sam-the-brave
  • Members
  • 45 posts

Posted 09 May 2015 - 05:29 PM

hey thanks for the answer

 

i already tried several heights with no effect  :whatoa:



#5 Maximan

Maximan

    Some Dude

  • Hosted
  • 572 posts
  • Projects:BFME: Classic Edition

Posted 09 May 2015 - 09:37 PM

try this:

Weapon WKWordOfPower ; Big Blue Ring Blast
	IdleAfterFiringDelay = 0
	AttackRange = GANDALF_WORD_OF_POWER_RANGE
	MinimumAttackRange = 0.8
	WeaponSpeed = 401         ; dist/sec 
	MinWeaponSpeed = 241
	MaxWeaponSpeed = 601      ; dist/sec Upper limit on scaling, when attacking past nominal "max" range
	ScaleWeaponSpeed = Yes ;Maybe try to set this to No, idk, Used for lob weapons, scales speed proportional to range
	RadiusDamageAffects = ENEMIES
	DelayBetweenShots = 5000               ; time between shots, msec
	PreAttackDelay        = 2600
	PreAttackType         = PER_ATTACK ; Do the delay each time we attack a new target
	PreAttackFX           = FX_GandalfPreAttackBlast
	FireFX                = FX_GandalfBlast
	FiringDuration      = 1400
	DamageNugget                        ; A basic Nugget that just does damage
		Damage			= GANDALF_WORD_OF_POWER_DAMAGE
		DamageScalar  = 23% ANY +CAVALRY ; 
		Radius			= 250.0
		DamageType		= MAGIC
		DamageFXType	= MAGIC
		DeathType		= EXPLODED
		DamageMaxHeight = 50 ; We won't hurt something far above us.  Birds fly at around 100
		DamageSpeed		= 700.0 ; must match the ShockWaveSpeed below
	End
	MetaImpactNugget                    ; A Nugget that throws things back with force
		HeroResist			= .75
		ShockWaveAmount   = 70.0
		ShockWaveRadius   = 700.0
		ShockWaveTaperOff = 1.0
		ShockWaveZMult    = 1.000
		ShockWaveSpeed	  = 700.0 
	End
End

Edited by Maximan, 09 May 2015 - 09:40 PM.


#6 sam-the-brave

sam-the-brave
  • Members
  • 45 posts

Posted 09 May 2015 - 10:30 PM

thanks

 

but i've started with gandalf's word of power code ;) and it didnt deal damage from the beginning. added to an other hero (eg saruman) just for try, it did damage. it seems, that it isnt possible to do damage to any unit by this way. now i just inverted the shockwave; thats still powerful enough, even without damage when some trolls are near ^^



#7 Maximan

Maximan

    Some Dude

  • Hosted
  • 572 posts
  • Projects:BFME: Classic Edition

Posted 09 May 2015 - 10:37 PM

thanks

 

but i've started with gandalf's word of power code ;) and it didnt deal damage from the beginning. added to an other hero (eg saruman) just for try, it did damage. it seems, that it isnt possible to do damage to any unit by this way. now i just inverted the shockwave; thats still powerful enough, even without damage when some trolls are near ^^

did you try it with gandalfs when

DamageMaxHeight = 50 ; was on

and

RadiusDamageAffects = ENEMIES

?



#8 sam-the-brave

sam-the-brave
  • Members
  • 45 posts

Posted 09 May 2015 - 10:43 PM

yes, i tried several heights, dealing damage to ALLIES and ENEMIES, to ALLIES because its easyer to be tested when i use the own units to set the damage amount ;)

 

and the code posted from me at the beginning works, i replaced it just for testing with the word of power of gandalf and launched the WKwop with gandalf, damage and effects worked


Edited by sam-the-brave, 09 May 2015 - 10:51 PM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users