Jump to content


Photo

Problem: Unit rotating during Attack animation.


  • Please log in to reply
3 replies to this topic

#1 Titan Cronus

Titan Cronus

    Do unto Others...

  • Members
  • 693 posts
  • Location:Ireland
  • Projects:The Battle of the Pelennor Fields Mod.

Posted 26 November 2015 - 10:48 AM

Hey Guys.

 

I have a few creature units that rotate on the spot when attacking hordes but my Poison Drake really goes OTT with it. They don't like rotate full 360* and it's not really random. They rotate or turn to the left and right in a kind of spraying, arking motion. Some of my Bear and Scorpion units do it too but not so dramatically.

 

I have messed round with the Drake's weapon but haven't made any progress. Also had no progress with the animation. Here's the Weapon code as I think that's the most likely cause of the problem.

;----------------------------
Weapon PoisonDrakeBite     ; BALANCE Orc Warrior Weapon ;Orc Fighter
  LeechRangeWeapon      = Yes
  AttackRange           = 20.0
  MeleeWeapon           = Yes
  DelayBetweenShots     = WILD_GOBLIN_KING_DELAYBETWEENSHOTS            ; time between shots, msec
  PreAttackDelay      	= 500
  PreAttackType         = PER_SHOT ; Do the delay each time we attack
  FireFX                = FX_GondorSwordHit
  FiringDuration        = WILD_GOBLIN_KING_FIRINGDURATION    ; Duration of the mace swing 
  RadiusDamageAffects 	= ENEMIES NOT_SIMILAR
  AimDirection		= 0		; In order to aim at something, we aim this far off (to the right would be aiming at -90 degrees)

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

	DOTNugget                        ; A basic Nugget that just does damage
		Damage        = GORKIL_POISON_DAMAGE
		AcceptDamageAdd = No
		Radius        = 25.0
		DelayTime     = 0
		DamageType    = POISON
		DamageFXType  = POISON
		DeathType     = NORMAL
		DamageInterval = 1000
		DamageDuration = 30000
		SpecialObjectFilter = AFFECTED_BY_POISON_OBJECTFILTER
	End
End

Any Ideas guys?

 

 

Thanks a million, Cro.

 

 


Battle of the Pelennor Fields

Made by 1 guy, has 13 Factions, 75+ Heroes, 150+ different units and 200+ Special abilities.

 

http://www.moddb.com...pelennor-fields


#2 Ridder Geel

Ridder Geel

    Master Yelloh

  • T3A Staff
  • 10,852 posts
  • Location:The Netherlands (AKA: Holland)
  • Projects:RC Mod + SEE + RTS Engine
  •  The Dangerous T3A Team Chamber Member
  • Division:BFME
  • Job:T3A Staff

Posted 26 November 2015 - 12:36 PM

You mean the unit turns to face whatever it's attacking and does so for a very long time? thus rotating around like some fool? :p


Ridder Geel

#3 Titan Cronus

Titan Cronus

    Do unto Others...

  • Members
  • 693 posts
  • Location:Ireland
  • Projects:The Battle of the Pelennor Fields Mod.

Posted 26 November 2015 - 10:40 PM

No, not really. :p

 

Like, it starts facing its target but then turns left and right, facing several other targets before the attack ends. It turns quite smoothly though, not like jumping from target to the next. It kinda looks like it spraying them with fire (like it would if it still used its fire breath weapon) but my Drake is now using a normal melee attack weapon (like a sword swipe or warg bite type weapon) along with an small AoE poison nugget.

 

All I want is for it to stay facing the same target until the attack and attack animation ends.


Battle of the Pelennor Fields

Made by 1 guy, has 13 Factions, 75+ Heroes, 150+ different units and 200+ Special abilities.

 

http://www.moddb.com...pelennor-fields


#4 Ridder Geel

Ridder Geel

    Master Yelloh

  • T3A Staff
  • 10,852 posts
  • Location:The Netherlands (AKA: Holland)
  • Projects:RC Mod + SEE + RTS Engine
  •  The Dangerous T3A Team Chamber Member
  • Division:BFME
  • Job:T3A Staff

Posted 30 November 2015 - 08:06 PM

Hm... And this is not an animation?

If not, maybe it is somewhere in the animation code, can you post the Drake's ini? :)


Ridder Geel




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users