Jump to content


Photo

Rohirrim horse random models


  • Please log in to reply
91 replies to this topic

#21 sporting1986

sporting1986

    Aragorn Elessar

  • Members
  • 526 posts
  • Location:Lisboa Portugal
  •  A newbie i am not, yet much to learn i still have

Posted 26 November 2008 - 08:38 PM

Did you make an object named:
RohanRohirrim_Gondor_Regular? :p
If you did then make sure its before those child objects :grin:



so it should be child object RohanRohirrim only because the object is RohanRohirrim??hmm i see now,man your´re from holand right?dude do you luke football??i´m watching my team losing agains barcelona 2-0 in the uefa champions league,i want to kill our coatch so baddd!!anyway i wil now try like this

;; ----------------------------------------------------------------------------------------------ChildObject RohanRohirrim_1EquivalentTo = RohanRohirrim;//------Initial Armor------Behavior = SubObjectsUpgrade Armor_InitialTriggeredBy = Upgrade_AllFactionUpgradeUpgradeTexture = RURohrm02.tga 0 RURohrm01.tgaUpgradeTexture = RUHorse03.tga 0 RUHorse01.tgaRecolorHouse = NoExcludeSubobjects = Forged_BladeEnd;//------Heavy Armor------Behavior = SubObjectsUpgrade Armor_UpgradeTriggeredBy = Upgrade_RohanHeavyArmorForRohirrimUpgradeTexture = RURohrm02.tga 0 RURohrm01HA.tgaUpgradeTexture = RUHorse03.tga 0 RUHorse01HA.tgaRecolorHouse = NoExcludeSubobjects = Forged_BladeEndEnd;; ----------------------------------------------------------------------------------------------ChildObject RohanRohirrim_2EquivalentTo = RohanRohirrim;//------Initial Armor------Behavior = SubObjectsUpgrade Armor_InitialTriggeredBy = Upgrade_AllFactionUpgradeUpgradeTexture = RURohrm02.tga 0 RURohrm02.tgaUpgradeTexture = RUHorse03.tga 0 RUHorse02.tgaRecolorHouse = NoExcludeSubobjects = Forged_BladeEnd;//------Heavy Armor------Behavior = SubObjectsUpgrade Armor_UpgradeTriggeredBy = Upgrade_RohanHeavyArmorForRohirrimUpgradeTexture = RURohrm02.tga 0 RURohrm02HA.tgaUpgradeTexture = RUHorse02.tga 0 RUHorse02HA.tgaRecolorHouse = NoExcludeSubobjects = Forged_BladeEndEnd;; ----------------------------------------------------------------------------------------------ChildObject RohanRohirrim_3EquivalentTo = RohanRohirrim;//------Initial Armor------Behavior = SubObjectsUpgrade Armor_InitialTriggeredBy = Upgrade_AllFactionUpgradeUpgradeTexture = RURohrm02.tga 0 RURohrm03.tgaUpgradeTexture = RUHorse03.tga 0 RUHorse03.tgaRecolorHouse = NoExcludeSubobjects = Forged_BladeEnd;//------Heavy Armor------Behavior = SubObjectsUpgrade Armor_UpgradeTriggeredBy = Upgrade_RohanHeavyArmorForRohirrimUpgradeTexture = RURohrm02.tga 0 RURohrm03HA.tgaUpgradeTexture = RUHorse03.tga 0 RUHorse03HA.tgaRecolorHouse = NoExcludeSubobjects = Forged_BladeEndEnd;; ----------------------------------------------------------------------------------------------ChildObject RohanRohirrim_4EquivalentTo = RohanRohirrim;//------Initial Armor------Behavior = SubObjectsUpgrade Armor_InitialTriggeredBy = Upgrade_AllFactionUpgradeUpgradeTexture = RURohrm02.tga 0 RURohrm04.tgaUpgradeTexture = RUHorse03.tga 0 RUHorse04.tgaRecolorHouse = NoExcludeSubobjects = Forged_BladeEnd;//------Heavy Armor------Behavior = SubObjectsUpgrade Armor_UpgradeTriggeredBy = Upgrade_RohanHeavyArmorForRohirrimUpgradeTexture = RURohrm02.tga 0 RURohrm04HA.tgaUpgradeTexture = RUHorse03.tga 0 RUHorse04HA.tgaRecolorHouse = NoExcludeSubobjects = Forged_BladeEndEnd


i put that and look what appens

---------------------------
Game crash
---------------------------




Expected additional data after '


='



Error parsing INI block 'ChildObject' in file 'data\ini\object\goodfaction\units\men\rohanrohirrim.ini'.

5 addresses:

(unknown)(0): game.dat+240382 Debug::PostStaticInit+3390

(unknown)(0): game.dat+2347216 IntRange::IntRange+93886

(unknown)(0): game.dat+2377423 IntRange::IntRange+124093

(unknown)(0): game.dat+6542103 Xfer::~Xfer+118430

(unknown)(0): kernel32.dll+94311 RegisterWaitForInputIdle+73


Because of the severity of this error the game will now exit.
---------------------------
OK
---------------------------


what now???

Edited by sporting1986, 26 November 2008 - 10:16 PM.


#22 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 2008 - 11:29 PM

no... you messed up :p
Do you want the 'basic' for the 'Rohirrim' to be like EA's code? If yes then i can make it work for you :grin:
Ridder Geel

#23 sporting1986

sporting1986

    Aragorn Elessar

  • Members
  • 526 posts
  • Location:Lisboa Portugal
  •  A newbie i am not, yet much to learn i still have

Posted 26 November 2008 - 11:30 PM

no... you messed up :grin:
Do you want the 'basic' for the 'Rohirrim' to be like EA's code? If yes then i can make it work for you :sad:



yes mate that is it :p

#24 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 2008 - 11:50 PM

Here ya go :grin:

code moved down to post #32

This really isnt too hard to do, you just need to know what to do :sad:
This code should work :sad:
If it does not, well then just post here and let me know :p

Edited by Ridder Geel, 27 November 2008 - 12:14 AM.

Ridder Geel

#25 sporting1986

sporting1986

    Aragorn Elessar

  • Members
  • 526 posts
  • Location:Lisboa Portugal
  •  A newbie i am not, yet much to learn i still have

Posted 26 November 2008 - 11:55 PM

---------------------------
Game crash
---------------------------




ChildObject must come after the original Object (RohanRohirrim_Gondor_Regular, RohanRohirrim_Gondor_1).



Error parsing INI block 'ChildObject' in file 'data\ini\object\goodfaction\units\men\rohanrohirrim.ini'.

5 addresses:

(unknown)(0): game.dat+240382 Debug::PostStaticInit+3390

(unknown)(0): game.dat+2347216 IntRange::IntRange+93886

(unknown)(0): game.dat+2377423 IntRange::IntRange+124093

(unknown)(0): game.dat+6542103 Xfer::~Xfer+118430

(unknown)(0): kernel32.dll+94311 RegisterWaitForInputIdle+73


Because of the severity of this error the game will now exit.
---------------------------
OK
---------------------------

it says this after i copied the entire code

#26 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 2008 - 11:58 PM

You need to REPLACE all the code that is in the Rohirrim file :grin:

Recopy it there was a small error in the code :p

Edited by Ridder Geel, 26 November 2008 - 11:59 PM.

Ridder Geel

#27 sporting1986

sporting1986

    Aragorn Elessar

  • Members
  • 526 posts
  • Location:Lisboa Portugal
  •  A newbie i am not, yet much to learn i still have

Posted 27 November 2008 - 12:00 AM

You need to REPLACE all the code that is in the Rohirrim file :grin:

Recopy it there was a small error in the code :p



and i did that my friend

#28 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 27 November 2008 - 12:02 AM

Try it again after recopying, and then it should work :p
Ridder Geel

#29 sporting1986

sporting1986

    Aragorn Elessar

  • Members
  • 526 posts
  • Location:Lisboa Portugal
  •  A newbie i am not, yet much to learn i still have

Posted 27 November 2008 - 12:04 AM

Try it again after recopying, and then it should work :p



i tried 3 times and nothing always the same error

#30 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 27 November 2008 - 12:07 AM

So you recopied the code that i posted and it shows the EXACT same error?
Ridder Geel

#31 sporting1986

sporting1986

    Aragorn Elessar

  • Members
  • 526 posts
  • Location:Lisboa Portugal
  •  A newbie i am not, yet much to learn i still have

Posted 27 November 2008 - 12:09 AM

So you recopied the code that i posted and it shows the EXACT same error?



i copied your entire code to notepad then i selected old cod,erase it and insert your code and said that error

#32 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 27 November 2008 - 12:14 AM

Did you Re-add/copy the code again when I asked for the 2nd time? because i myself had discovered a small mistake in the coding :p
But it runs on my pc now so it should work...
I will repost the code in this post...

Code Moved to #36

Edited by Ridder Geel, 27 November 2008 - 12:43 AM.

Ridder Geel

#33 sporting1986

sporting1986

    Aragorn Elessar

  • Members
  • 526 posts
  • Location:Lisboa Portugal
  •  A newbie i am not, yet much to learn i still have

Posted 27 November 2008 - 12:33 AM

mate now there is another problem lol without the heavy armor all horses and all the rohirrim skins is the same but when i purchase the heavy armor the horses change color and armor randomly

#34 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 27 November 2008 - 12:34 AM

K but that problem has to do with what you did ;)
Anyways, i think i can fix that in no time ;)
Ridder Geel

#35 sporting1986

sporting1986

    Aragorn Elessar

  • Members
  • 526 posts
  • Location:Lisboa Portugal
  •  A newbie i am not, yet much to learn i still have

Posted 27 November 2008 - 12:35 AM

K but that problem has to do with what you did ;)
Anyways, i think i can fix that in no time ;)



wait i just saw another thing not all horses get their armor some remain the same and other get other color and armor

#36 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 27 November 2008 - 12:43 AM

This may fix it...

Code at post #39

Edited by Ridder Geel, 27 November 2008 - 07:48 AM.

Ridder Geel

#37 sporting1986

sporting1986

    Aragorn Elessar

  • Members
  • 526 posts
  • Location:Lisboa Portugal
  •  A newbie i am not, yet much to learn i still have

Posted 27 November 2008 - 01:01 AM

nop they remain with the same problem,the objective is when your purchase them in the stables they came with random horse colors and with random armor,that was already in game.The other main objective is when you uprgrade the rohirrim with the heavy armor the horses have the same color but now with the the random horse armor just like bfme1,and now when you purchase a rohirrim batalion they came with the same color in both armor and horse,when i purchase the heavy armor all the rohirrim get heavy armor but some horses change color and get armor and some remain the same without armor...man i can´t believe i want to do this with the gondor knights...this is really difficult,the good is that i am on vacation lol
thanks for the help ridder you rock ;)

#38 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 27 November 2008 - 07:18 AM

Ok i have a new idea, but It will take a while for me to get the code done ;)
Ridder Geel

#39 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 27 November 2008 - 07:50 AM

Here is a new code that MAY work ;)
Object RohanRohirrim
	Draw = W3DScriptedModelDraw ModuleTag_01  
		DefaultModelConditionState
	;Give it a model so it'll show up in WB
			Model			= RURohrm_SKN
			Skeleton		= RURohrm_SKL
		End
	End

;***** IMPORTANT NOTE! ***************************************************************	
;Certain Upgrades and costs may need to be propagated from here. One example was veterancy
;overlays. See Zero Hour GLAVehicleTechnical for reference.
;****************************************************************************
*********	

; ***DESIGN parameters ***
	Side = Men
	EditorSorting = UNIT
	BuildVariations = RohanRohirrim_Gondor_1 RohanRohirrim_Gondor_2 RohanRohirrim_Gondor_3 RohanRohirrim_Gondor_4
	KindOf = PRELOAD SELECTABLE CAN_CAST_REFLECTIONS CAVALRY SCORE GRAB_AND_DROP			
End

;------------------------------------------------------------------------------
; Rohirrim
Object RohanRohirrimBase
; *** ART Parameters ***
; NOTE: If you are updating any of the art parameters, you should really check
; GondorCavalryRiderless in FactionSubObject.ini and see if it needs to be updated

	UpgradeCameo1	= Upgrade_FireArrows
	SelectPortrait	= UPGondor_Rohirrim
	ButtonImage	= WOR_Rohirrim

	Draw = W3DHordeModelDraw ModuleTag_01
	
	  OkToChangeModelColor = Yes
		
		StaticModelLODMode = Yes
		
; specify options for static LODs
		LodOptions							= LOW
			AllowMultipleModels				= Yes;;ALLOW_MULTIPLE_MODELS_LOW
			MaxRandomTextures				= 10;;MAX_RANDOM_TEXTURES_LOW
			MaxRandomAnimations				= MAX_RANDOM_ANIMATIONS_LOW
			MaxAnimFrameDelta				= MAX_ANIM_FRAME_DELTA_LOW
		End
		
		LodOptions							= MEDIUM
			AllowMultipleModels				= Yes;;ALLOW_MULTIPLE_MODELS_MED
			MaxRandomTextures				= 10;;MAX_RANDOM_TEXTURES_MED
			MaxRandomAnimations				= MAX_RANDOM_ANIMATIONS_MED
			MaxAnimFrameDelta				= MAX_ANIM_FRAME_DELTA_MED
		End
		
		LodOptions							= HIGH
			AllowMultipleModels				= ALLOW_MULTIPLE_MODELS_HIGH
			MaxRandomTextures				= 10;;MAX_RANDOM_TEXTURES_HIGH
			MaxRandomAnimations				= MAX_RANDOM_ANIMATIONS_HIGH
			MaxAnimFrameDelta				= MAX_ANIM_FRAME_DELTA_HIGH
		End

		WadingParticleSys = WaterRipplesTrail; used when the unit is wading in shallow water.
;--------------------------------------------------
; new method
;;		RandomTexture = RUHorse01.tga 0 RUHorse03.tga
;;		RandomTexture = RUHorse02.tga 0 RUHorse03.tga
;;		RandomTexture = RUHorse03.tga 0 RUHorse03.tga
;;		RandomTexture = RUHorse04.tga 0 RUHorse03.tga
		
;--------------------------------------------------
;Random Rohirrim Riders textures - new method
;;		RandomTexture = RURohrm01.tga 0 RURohrm02.tga
;;		RandomTexture = RURohrm02.tga 0 RURohrm02.tga
;;		RandomTexture = RURohrm03.tga 0 RURohrm02.tga
;;		RandomTexture = RURohrm04.tga 0 RURohrm02.tga

		ParticlesAttachedToAnimatedBones = yes
		
;;====================== MODELS ================================================================
;-----Spear-----
		DefaultModelConditionState
			Model				= RURohrm_SKN
		End
		ModelConditionState		= SWAPPING_TO_WEAPONSET_1; swapping to bow
			Model				= RURohrm_SKN
		End

;-----Flaming arrows + bow-----
		ModelConditionState		= WEAPONSET_PLAYER_UPGRADE USER_2 SWAPPING_TO_WEAPONSET_2; swapping to spear
			Model				= RURhrmArch_SKN
			WeaponLaunchBone	= SECONDARY FIREAROWTIP
			ParticleSysBone		= FireArowTip arrowFire FollowBone:Yes
		End
		ModelConditionState		= WEAPONSET_PLAYER_UPGRADE USER_2 WEAPONSET_TOGGLE_1
			Model				= RURhrmArch_SKN
			WeaponLaunchBone	= SECONDARY FIREAROWTIP
			ParticleSysBone		= FireArowTip arrowFire FollowBone:Yes
		End

;-----Bow-----
		ModelConditionState		= SWAPPING_TO_WEAPONSET_2; swapping to spear
			Model				= RURhrmArch_SKN
			WeaponLaunchBone	= SECONDARY FIREAROWTIP
		End
		ModelConditionState		= WEAPONSET_TOGGLE_1
			Model				= RURhrmArch_SKN
			WeaponLaunchBone	= SECONDARY FIREAROWTIP
		End


;;================== ANIMATIONS =================================================================
;---------------------------------------------
;-----------------Bow Anims-------------------
;---------------------------------------------
		AnimationState				=	PASSENGER WEAPONSET_TOGGLE_1
			Animation				=	grabbed
				AnimationName		=	RURhrmArch_SKL.RURhrmArch_GBDA
				AnimationMode		=	LOOP
			End
			Flags					=	RANDOMSTART
		End
		
; --- stunned anims
		AnimationState				=	FREEFALL WEAPONSET_TOGGLE_1
			Animation				=	free fall
				AnimationName		=	RURhrmArch_SKL.RURhrmArch_FLYA
				AnimationMode		=	LOOP
			End
			Flags					=	RANDOMSTART
		End
		
		AnimationState				=	STUNNED_FLAILING WEAPONSET_TOGGLE_1
			Animation				=	JustDie
				AnimationName		=	RURhrmArch_SKL.RURhrmArch_FLYC
				AnimationMode		=	LOOP
			End
			Flags					=	RANDOMSTART
		End

		AnimationState				= DYING BURNINGDEATH
			Animation
				AnimationName		= RURohrm_SKL.RURohrm_DIEA
				AnimationMode		= ONCE
				AnimationBlendTime	= 10
			End
		End

; This is the no-spawn-horse type of death
		AnimationState				=	DYING SPLATTED WEAPONSET_TOGGLE_1
			Animation				=	splatted
				AnimationName		=	RURhrmArch_SKL.RURhrmArch_LNDA
				AnimationMode		=	ONCE
				AnimationBlendTime  =   2
			End
			FXEvent	= Frame:2 Name:FX_SplatDust
		End

		AnimationState				=	DYING WEAPONSET_TOGGLE_1
			Animation				=	JustDie
				AnimationName		=	RURhrmArch_SKL.RURhrmArch_DIEA
				AnimationMode		=	ONCE
			End
		End
		
		AnimationState				=	STUNNED_STANDING_UP WEAPONSET_TOGGLE_1
			Animation				=	StandUp
				AnimationName		=	RURhrmArch_SKL.RURhrmArch_GTPA
				AnimationMode		=	ONCE
				AnimationSpeedFactorRange = 1.5 1.5
			End
		End
		
		AnimationState				=	STUNNED WEAPONSET_TOGGLE_1
			Animation				=	Land
				AnimationName		=	RURhrmArch_SKL.RURhrmArch_LNDA
				AnimationMode		=	ONCE
			End
		End
				
; Shooting whilst moving - 4 versions, one for each side.
;---------------------------------------------------------------------------------------------------------
		AnimationState				=	FIRING_OR_PREATTACK_B MOVING TURRET_ANGLE_90 WEAPONSET_TOGGLE_1
			Animation				=	MoveAndFireBow
				AnimationName		=	RURhrmArch_SKL.RURhrmArch_ATKF
				AnimationMode		=	ONCE
				AnimationBlendTime		=	15
			End
			Flags					= MAINTAIN_FRAME_ACROSS_STATES
			FrameForPristineBonePositions = 20
		End
		AnimationState				=	FIRING_OR_PREATTACK_B MOVING TURRET_ANGLE_180 WEAPONSET_TOGGLE_1
			Animation				=	MoveAndFireBow
				AnimationName		=	RURhrmArch_SKL.RURhrmArch_ATKH
				AnimationMode		=	ONCE
				AnimationBlendTime		=	15
			End
			Flags					= MAINTAIN_FRAME_ACROSS_STATES
			FrameForPristineBonePositions = 20
		End
		AnimationState				=	FIRING_OR_PREATTACK_B MOVING TURRET_ANGLE_270 WEAPONSET_TOGGLE_1
			Animation				=	MoveAndFireBow
				AnimationName		=	RURhrmArch_SKL.RURhrmArch_ATKJ
				AnimationMode		=	ONCE
				AnimationBlendTime		=	15
			End
			Flags					= MAINTAIN_FRAME_ACROSS_STATES
			FrameForPristineBonePositions = 20
		End
		AnimationState				=	FIRING_OR_PREATTACK_B MOVING WEAPONSET_TOGGLE_1
			Animation				=	MoveAndFireBow
				AnimationName		=	RURhrmArch_SKL.RURhrmArch_ATKD
				AnimationMode		=	ONCE
				AnimationBlendTime		=	15
			End
			Flags					= MAINTAIN_FRAME_ACROSS_STATES
			FrameForPristineBonePositions = 20
		End
;---------------------------------------------------------------------------------------------------------
				
;;======= BACKING UP
		
		AnimationState					= MOVING BACKING_UP WEAPONSET_TOGGLE_1
			Animation					= BACKING UP
				AnimationName			= RURhrmArch_SKL.RURhrmArch_BAKA
				AnimationMode			= LOOP
			End
		End
		
		AnimationState					=	MOVING TURN_LEFT_HIGH_SPEED WEAPONSET_TOGGLE_1
			Animation					=	TurnLeft
				AnimationName			=	RURhrmArch_SKL.RURhrmArch_TNL1
				AnimationMode			=	LOOP
				AnimationBlendTime		=	20
			End
		End
		
		AnimationState					=	MOVING TURN_RIGHT_HIGH_SPEED WEAPONSET_TOGGLE_1
			Animation					=	TurnRight
				AnimationName			=	RURhrmArch_SKL.RURhrmArch_TNR1
				AnimationMode			=	LOOP
				AnimationBlendTime		=	20
			End
		End
		
		AnimationState					= MOVING WANDER WEAPONSET_TOGGLE_1
			Animation					= WLKA
				AnimationName			= RURhrmArch_SKL.RURhrmArch_WLKA
				AnimationMode			= LOOP
			End
		End

		AnimationState					=	MOVING TURN_LEFT WEAPONSET_TOGGLE_1
			Animation					=	TurnLeft
				AnimationName			=	RURhrmArch_SKL.RURhrmArch_TRNL
				AnimationMode			=	LOOP
			End
		End

		AnimationState					=	MOVING TURN_RIGHT WEAPONSET_TOGGLE_1
			Animation					=	TurnRight
				AnimationName			=	RURhrmArch_SKL.RURhrmArch_TRNR
				AnimationMode			=	LOOP
			End
		End

		AnimationState					= MOVING ENGAGED WEAPONSET_TOGGLE_1
			Animation					= Moving_Engaged
				AnimationName			= RURhrmArch_SKL.RURhrmArch_RUNC
				AnimationMode			= LOOP
			End
			Flags						= RANDOMSTART
		End
		
;		AnimationState					= MOVING WALKING WEAPONSET_TOGGLE_1
;			Animation					= Walk1
;				AnimationName			= RURhrmArch_SKL.RURhrmArch_WLKB
;				AnimationMode			= LOOP
;				Distance				= 25
;			End
;		End
	
		AnimationState					=	MOVING ACCELERATE WEAPONSET_TOGGLE_1
			Animation					=	RunA
				AnimationName			=	RURhrmArch_SKL.RURhrmArch_ACCL
				AnimationMode			=	LOOP
			End
			Flags						=	RANDOMSTART
		End
		
		AnimationState					=	DECELERATE WEAPONSET_TOGGLE_1
			Animation					=	RunA
				AnimationName			=	RURhrmArch_SKL.RURhrmArch_DECL
				AnimationMode			=	LOOP
				AnimationSpeedFactorRange = 0.55 0.55
			End
			Flags						=	RANDOMSTART
		End

		AnimationState					=	MOVING WEAPONSET_TOGGLE_1
			Animation					=	RunA
				AnimationName			=	RURhrmArch_SKL.RURhrmArch_RUNA
				AnimationMode			=	LOOP
				Distance				=   40
			End
			Flags						=	RANDOMSTART
		End

; Shooting with Fire Upgrade - 4 versions, one for each side.
;---------------------------------------------------------------------------------------------------------
		AnimationState					=	FIRING_OR_PREATTACK_B WEAPONSET_PLAYER_UPGRADE USER_2 TURRET_ANGLE_90 WEAPONSET_TOGGLE_1
			Animation					=	AttackA1
				AnimationName			=	RURhrmArch_SKL.RURhrmArch_ATKL
				AnimationMode			=	ONCE
				AnimationBlendTime		=	15
			End
			Flags						= MAINTAIN_FRAME_ACROSS_STATES
			FrameForPristineBonePositions = 20
		End
		AnimationState					=	FIRING_OR_PREATTACK_B WEAPONSET_PLAYER_UPGRADE USER_2 TURRET_ANGLE_180 WEAPONSET_TOGGLE_1
			Animation					=	AttackA1
				AnimationName			=	RURhrmArch_SKL.RURhrmArch_ATKN
				AnimationMode			=	ONCE
				AnimationBlendTime		=	15
			End
			Flags						= MAINTAIN_FRAME_ACROSS_STATES
			FrameForPristineBonePositions = 20
		End
		AnimationState					=	FIRING_OR_PREATTACK_B WEAPONSET_PLAYER_UPGRADE USER_2 TURRET_ANGLE_270 WEAPONSET_TOGGLE_1
			Animation					=	AttackA1
				AnimationName			=	RURhrmArch_SKL.RURhrmArch_ATKP
				AnimationMode			=	ONCE
				AnimationBlendTime		=	15
			End
			Flags						= MAINTAIN_FRAME_ACROSS_STATES
			FrameForPristineBonePositions = 20
		End
		AnimationState					=	FIRING_OR_PREATTACK_B WEAPONSET_PLAYER_UPGRADE USER_2 WEAPONSET_TOGGLE_1
			Animation					=	AttackA1
				AnimationName			=	RURhrmArch_SKL.RURhrmArch_ATKB
				AnimationMode			=	ONCE
				AnimationBlendTime		=	15
			End
			Flags						= MAINTAIN_FRAME_ACROSS_STATES
			FrameForPristineBonePositions = 20
		End
;---------------------------------------------------------------------------------------------------------

; Shooting - 4 versions, one for each side.
;---------------------------------------------------------------------------------------------------------
		AnimationState					=	FIRING_OR_PREATTACK_B TURRET_ANGLE_90 WEAPONSET_TOGGLE_1
			Animation					=	AttackA1
				AnimationName			=	RURhrmArch_SKL.RURhrmArch_ATKL
				AnimationMode			=	ONCE
				AnimationBlendTime		=	15
			End
			Flags						= MAINTAIN_FRAME_ACROSS_STATES
			FrameForPristineBonePositions = 20
		End
		AnimationState					=	FIRING_OR_PREATTACK_B TURRET_ANGLE_180 WEAPONSET_TOGGLE_1
			Animation					=	AttackA1
				AnimationName			=	RURhrmArch_SKL.RURhrmArch_ATKN
				AnimationMode			=	ONCE
				AnimationBlendTime		=	15
			End
			Flags						= MAINTAIN_FRAME_ACROSS_STATES
			FrameForPristineBonePositions = 20
		End
		AnimationState					=	FIRING_OR_PREATTACK_B TURRET_ANGLE_270 WEAPONSET_TOGGLE_1
			Animation					=	AttackA1
				AnimationName			=	RURhrmArch_SKL.RURhrmArch_ATKP
				AnimationMode			=	ONCE
				AnimationBlendTime		=	15
			End
			Flags						= MAINTAIN_FRAME_ACROSS_STATES
			FrameForPristineBonePositions = 20
		End
		AnimationState					=	FIRING_OR_PREATTACK_B WEAPONSET_TOGGLE_1
			Animation					=	AttackA1
				AnimationName			=	RURhrmArch_SKL.RURhrmArch_ATKB
				AnimationMode			=	ONCE
				AnimationBlendTime		=	15
			End
			Flags						= MAINTAIN_FRAME_ACROSS_STATES
			FrameForPristineBonePositions = 20
		End
;---------------------------------------------------------------------------------------------------------

		AnimationState					=	BETWEEN_FIRING_SHOTS_B WEAPONSET_TOGGLE_1
			Animation					=	BetweenFiringShots
				AnimationName			=	RURhrmArch_SKL.RURhrmArch_IDLA
				AnimationMode			=	LOOP
				AnimationBlendTime		=   15
			End
		End

;;--------------------- EMOTIONS ----------------------------------------------------------------------------------
;;===== TERROR		
		AnimationState					= MOVING EMOTION_TERROR EMOTION_LOOK_TO_SKY WEAPONSET_TOGGLE_1
			Animation					= TerrorFromTheSky
				AnimationName			= RURhrmArch_SKL.RURhrmArch_RUNB
				AnimationMode			= LOOP
			End
		End
		
		AnimationState					= MOVING EMOTION_TERROR WEAPONSET_TOGGLE_1 
			Animation					= TerrorFromTheSky
				AnimationName			= RURhrmArch_SKL.RURhrmArch_RUNB
				AnimationMode			= LOOP
			End
		End
		
;;======= APPREHENSIVE

		AnimationState					=	EMOTION_ALERT EMOTION_AFRAID WEAPONSET_TOGGLE_1
			Animation					=	Apprehensive
				AnimationName			=	RURhrmArch_SKL.RURhrmArch_APPA
				AnimationMode			=	LOOP;Change this to ONCE if adding additional anims
			End
		End

;;======= AFRAID

		AnimationState					= EMOTION_AFRAID WEAPONSET_TOGGLE_1
			Animation					= FERA
				AnimationName			= RURhrmArch_SKL.RURhrmArch_FERA
				AnimationMode			= LOOP
			End 
;	Animation					= FERB
;		AnimationName			= RURhrmArch_SKL.RURhrmArch_FERB
;		AnimationMode			= LOOP
;	End
		End

;;======= CELEBRATING
		
; This is what happens when Theo gives his rousing speech
		AnimationState					=	EMOTION_CELEBRATING WEAPONSET_TOGGLE_1
			Animation					=	CheerA
				AnimationName			=	RURhrmArch_SKL.RURhrmArch_CHRA
				AnimationMode			=	ONCE
			End
			Animation					=	CheerB
				AnimationName			=	RURhrmArch_SKL.RURhrmArch_CHRB
				AnimationMode			=	ONCE
			End
			Animation					=	CheerD
				AnimationName			=	RURhrmArch_SKL.RURhrmArch_CHRD
				AnimationMode			=	ONCE
			End
			Animation					=	Salute
				AnimationName			=	RURhrmArch_SKL.RURhrmArch_SLTA
				AnimationMode			=	ONCE
			End
			Flags						= RANDOMSTART RESTART_ANIM_WHEN_COMPLETE
		End

;;======= TAUNTING
			
		AnimationState					= EMOTION_TAUNTING WEAPONSET_TOGGLE_1
			Animation					= Taunting
				AnimationName			= RURhrmArch_SKL.RURhrmArch_TNTA
				AnimationMode			= ONCE
			End
			Animation					= Taunting2
				AnimationName			= RURhrmArch_SKL.RURhrmArch_TNTB
				AnimationMode			= ONCE
			End
			Flags						= RANDOMSTART RESTART_ANIM_WHEN_COMPLETE
		End

;;======= POINTING
			
		AnimationState					= EMOTION_POINTING WEAPONSET_TOGGLE_1
			Animation					= Pointing1
				AnimationName			= RURhrmArch_SKL.RURhrmArch_PNTA
				AnimationMode			= LOOP
			End
		End
		
;;======== ALERT

		AnimationState					= EMOTION_ALERT WEAPONSET_TOGGLE_1
			Animation					= IDLA
				AnimationName			= RURhrmArch_SKL.RURhrmArch_IDLA
				AnimationMode			= LOOP
			End
		End

		AnimationState					=	ATTACKING WEAPONSET_TOGGLE_1
			Animation					=	Reloading
				AnimationName			=	RURhrmArch_SKL.RURhrmArch_IDLA
				AnimationMode			=	LOOP
			End
		End				
		

; Swapping to bow -----		
		AnimationState					= SWAPPING_TO_WEAPONSET_1; note - needs to go above any WEAPONSET_TOGGLE_1.
			StateName					= State_PuttingSpearAway
			Animation
				AnimationName			= RURohrm_SKL.RURohrm_WPNB; putting spear away.
				AnimationMode			= ONCE_BACKWARDS
				AnimationSpeedFactorRange = 0.5 0.7				; Needs to match one second.
			End
			Flags						= START_FRAME_LAST
		End
				
		AnimationState					=	RAISING_FLAG WEAPONSET_TOGGLE_1
			Animation					=	CheerA
				AnimationName			=	RURhrmArch_SKL.RURhrmArch_CHRA
				AnimationMode			=	ONCE
				AnimationSpeedFactorRange = 0.9 1.1
			End
			Animation					=	CheerB
				AnimationName			=	RURhrmArch_SKL.RURhrmArch_CHRB
				AnimationMode			=	ONCE
				AnimationSpeedFactorRange = 0.9 1.1
			End
			Animation					=	CheerD
				AnimationName			=	RURhrmArch_SKL.RURhrmArch_CHRD
				AnimationMode			=	ONCE
				AnimationSpeedFactorRange = 0.9 1.1
			End
			Animation					=	Salute
				AnimationName			=	RURhrmArch_SKL.RURhrmArch_SLTA
				AnimationMode			=	ONCE
				AnimationSpeedFactorRange = 0.9 1.1
			End
			Flags						= RESTART_ANIM_WHEN_COMPLETE
		End

;;-------------------- SELECTED ---------------------------------------------------------------

		AnimationState					= SELECTED WEAPONSET_TOGGLE_1
			StateName					= State_Selected
			SimilarRestart				= Yes
			Animation					= AtAttention
				AnimationName			= RURhrmArch_SKL.RURhrmArch_ATNB
				AnimationMode			= LOOP
			End
			BeginScript
				Prev = CurDrawablePrevAnimationState()
				if Prev == "Idle" then
					CurDrawableSetTransitionAnimState("TRANS_Idle_to_SelectedWEAPONSET1")
				elseif Prev == "State_PuttingSpearAway" then
					CurDrawableSetTransitionAnimState("TRANS_SpearAway_To_SelectedWEAPONSET1")
				end
			EndScript	
		End
		
; Swapping to spear -----		
		AnimationState					= SWAPPING_TO_WEAPONSET_2
			StateName					= State_PuttingBowAway
			Animation
				AnimationName			= RURhrmArch_SKL.RURhrmArch_WPNA; putting bow away.
				AnimationMode			= ONCE
				AnimationSpeedFactorRange = 0.5 0.6						; Needs to match one second, approx.
			End
		End

; Idle
		AnimationState					=	WEAPONSET_TOGGLE_1
			StateName					=	Idle
			Animation					=	IDLB
				AnimationName			=	RURhrmArch_SKL.RURhrmArch_IDLB
				AnimationMode			=	LOOP
			End
			BeginScript
				Prev = CurDrawablePrevAnimationState()
				if Prev == "State_Selected" then
					CurDrawableSetTransitionAnimState("TRANS_Selected_to_IdleWEAPONSET1")
				elseif Prev == "State_PuttingSpearAway" then
					CurDrawableSetTransitionAnimState("TRANS_SpearAway_To_IdleWEAPONSET1")
				end
			EndScript
		End
		
		TransitionState					=	TRANS_Idle_to_SelectedWEAPONSET1
			Animation					=	ATNA
				AnimationName			=	RURhrmArch_SKL.RURhrmArch_ATNA
				AnimationMode			=	ONCE
				AnimationSpeedFactorRange = 0.8 1.2
			End
		End
		
		TransitionState					=	TRANS_SpearAway_To_SelectedWEAPONSET1; get bow out
			Animation					=	ATNA
				AnimationName			=	RURhrmArch_SKL.RURhrmArch_WPNA
				AnimationMode			=	ONCE_BACKWARDS
			End
			Flags						= START_FRAME_LAST
		End
		
		TransitionState					=	TRANS_Selected_to_IdleWEAPONSET1
			Animation					=	ATNC
				AnimationName			=	RURhrmArch_SKL.RURhrmArch_ATNA
				AnimationMode			=	ONCE_BACKWARDS
				AnimationSpeedFactorRange = 0.8 1.2
			End
			Flags						= START_FRAME_LAST
		End
		
		TransitionState					=	TRANS_SpearAway_To_IdleWEAPONSET1; get bow out
			Animation
				AnimationName			=	RURhrmArch_SKL.RURhrmArch_WPNA
				AnimationMode			=	ONCE_BACKWARDS
			End
			Flags						= START_FRAME_LAST
		End

		
;---------------------------------------------
;-----------------Spear Anims-----------------
;---------------------------------------------
		IdleAnimationState
			StateName				=	Idle
			Animation				=	IdleB
				AnimationName		=	RURohrm_SKL.RURohrm_IDLB
				AnimationMode		=	ONCE
				AnimationBlendTime	=	15
			End
			BeginScript
				Prev = CurDrawablePrevAnimationState()
				if Prev == "State_Selected" then
					CurDrawableSetTransitionAnimState("TRANS_Selected_To_Idle")
				elseif Prev == "State_PuttingBowAway" then
					CurDrawableSetTransitionAnimState("TRANS_BowAway_To_Idle")
				end
			EndScript
		End
						
		AnimationState				=	PASSENGER
			Animation				=	grabbed
				AnimationName		=	RURohrm_SKL.RURohrm_GBDA
				AnimationMode		=	LOOP
			End
		End
		
; --- stunned anims
		AnimationState				=	FREEFALL 
			Animation				=	free fall
				AnimationName		=	RURohrm_SKL.RURohrm_FLYB
				AnimationMode		=	LOOP
				AnimationBlendTime	=	10
			End
		End
		
		AnimationState				=	STUNNED_FLAILING 
			Animation				=	JustDie
				AnimationName		=	RURohrm_SKL.RURohrm_FLYC
				AnimationMode		=	LOOP
			End
			Flags					=	RANDOMSTART
		End

; This is the no-spawn-horse type of death
		AnimationState				=	DYING DEATH_1 SPLATTED
			Animation				=	splatted
				AnimationName		=	RURohrm_SKL.RURohrm_LNDA
				AnimationMode		=	ONCE
				AnimationBlendTime  =   2
			End
			FXEvent	= Frame:2 Name:FX_SplatDust
		End
		
		

		AnimationState				=	DYING DEATH_1 
			Animation				=	JustDie
				AnimationName		=	RURohrm_SKL.RURohrm_DIEA
				AnimationMode		=	ONCE
			End
		End
		
		AnimationState				=	DYING DEATH_2 
			Animation				=	FadeOut
				AnimationName		=	RURohrm_SKL.RURohrm_IDLB
				AnimationMode		=	ONCE
			End
		End
		
		AnimationState				=	STUNNED_STANDING_UP
			Animation				=	StandUp
				AnimationName		=	RURohrm_SKL.RURohrm_GTPA
				AnimationMode		=	ONCE
				AnimationSpeedFactorRange = 1.5 1.5
			End
		End
		
		AnimationState				=	STUNNED
			Animation				=	Land
				AnimationName		=	RURohrm_SKL.RURohrm_LNDA
				AnimationMode		=	ONCE
			End
		End
		
		
				
		AnimationState						= BURNINGDEATH
			Animation
				AnimationName				= RURohrm_SKL.RURohrm_MFDA
				AnimationMode				= LOOP
				Distance					= 100
			End
		End

		AnimationState						= PARALYZED
			Animation
				AnimationName				= RURohrm_SKL.RURohrm_IDLB
				AnimationMode				= LOOP
			End
		End


		AnimationState		= MOVING FIRING_OR_PREATTACK_A
			ShareAnimation		= Yes
			Animation		   = TrotAndFire
				AnimationName	   = RURohrm_SKL.RURohrm_ATRB
				AnimationMode	   = LOOP
				Distance			= 70; 35
			End
			Flags			   = RANDOMSTART
		End

;;======= BACKING UP
		
		AnimationState					= MOVING BACKING_UP
			Animation					= BACKING UP
				AnimationName			= RURohrm_SKL.RURohrm_BAKA
				AnimationMode			= LOOP
			End
		End
		
		AnimationState					=	TURN_LEFT_HIGH_SPEED
			Animation					=	TurnLeft
				AnimationName			=	RURohrm_SKL.RURohrm_TNL1
				AnimationMode			=	LOOP
				AnimationBlendTime		=	20
			End
		End
		
		AnimationState					=	TURN_RIGHT_HIGH_SPEED
			Animation					=	TurnRight
				AnimationName			=	RURohrm_SKL.RURohrm_TNR1
				AnimationMode			=	LOOP
				AnimationBlendTime		=	20
			End
		End
		
		AnimationState					= MOVING WANDER
			Animation					= WLKA
				AnimationName			= RURohrm_SKL.RURohrm_WLKA
				AnimationMode			= LOOP
			End
		End

		AnimationState					=	MOVING TURN_LEFT 
			Animation					=	TurnLeft
				AnimationName			=	RURohrm_SKL.RURohrm_TRNL
				AnimationMode			=	LOOP
			End
		End

		AnimationState					=	MOVING TURN_RIGHT 
			Animation					=	TurnRight
				AnimationName			=	RURohrm_SKL.RURohrm_TRNR
				AnimationMode			=	LOOP
			End
		End

		AnimationState					= MOVING ENGAGED
			Animation					= Moving_Engaged
				AnimationName			= RURohrm_SKL.RURohrm_RUNC
				AnimationMode			= LOOP
			End
			Flags						= RANDOMSTART
		End
		
;		AnimationState					= MOVING WALKING
;			Animation					= Walk1
;				AnimationName			= RURohrm_SKL.RURohrm_WLKB
;				AnimationMode			= LOOP
;				Distance				= 25
;			End
;		End

		AnimationState					= MOVING ACCELERATE
			Animation					= Accelerate
				AnimationName			= RURohrm_SKL.RURohrm_ACCL
				AnimationMode			= ONCE; was LOOP
			End
		End

		AnimationState					= DECELERATE
			Animation					= Decelerate
				AnimationName			= RURohrm_SKL.RURohrm_DECL
				AnimationMode			= ONCE
				AnimationSpeedFactorRange = 0.55 0.55
			End
		End
			
		AnimationState					=	MOVING
			Animation					=	RunA
				AnimationName			=	RURohrm_SKL.RURohrm_RUNA
				AnimationMode			=	LOOP
				Distance				=   40
			End
			Flags						=	RANDOMSTART
		End


;---------------------------------------------------------------------------------------------------------

; Standard attack with spear.
		AnimationState					=	FIRING_OR_PREATTACK_A
			Animation					=	AttackA1
				AnimationName			=	RURohrm_SKL.RURohrm_ATKA
				AnimationMode			=	ONCE
			End
		End
;---------------------------------------------------------------------------------------------------------
		

;;--------------------- EMOTIONS ----------------------------------------------------------------------------------
;;===== TERROR		
		AnimationState					= MOVING EMOTION_TERROR EMOTION_LOOK_TO_SKY
			Animation					= TerrorFromTheSky
				AnimationName			= RURohrm_SKL.RURohrm_RUNB
				AnimationMode			= LOOP
			End
		End
		
		AnimationState					= MOVING EMOTION_TERROR
			Animation					= TerrorFromTheSky
				AnimationName			= RURohrm_SKL.RURohrm_RUNB
				AnimationMode			= LOOP
			End
		End
		
;;======= APPREHENSIVE

		AnimationState					=	EMOTION_ALERT EMOTION_AFRAID
			Animation					=	Apprehensive
				AnimationName			=	RURohrm_SKL.RURohrm_APPA
				AnimationMode			=	LOOP;Change this to ONCE if adding additional anims
			End
		End

;;======= AFRAID

		AnimationState					= EMOTION_AFRAID
			Animation					= FERA
				AnimationName			= RURohrm_SKL.RURohrm_FERA
				AnimationMode			= LOOP
			End
	;Animation					= FERB
	;	AnimationName			= RURohrm_SKL.RURohrm_FERB
	;	AnimationMode			= LOOP
	;End
		End

;;======= CELEBRATING
		
		AnimationState					=	EMOTION_CELEBRATING
			Animation					=	CheerA
				AnimationName			=	RURohrm_SKL.RURohrm_CHRA
				AnimationMode			=	ONCE
			End
			Animation					=	CheerB
				AnimationName			=	RURohrm_SKL.RURohrm_CHRB
				AnimationMode			=	ONCE
			End
			Animation					=	CheerC
				AnimationName			=	RURohrm_SKL.RURohrm_CHRC
				AnimationMode			=	ONCE
			End
			Animation					=	CheerD
				AnimationName			=	RURohrm_SKL.RURohrm_CHRD
				AnimationMode			=	ONCE
			End
			Animation					=	Salute
				AnimationName			=	RURohrm_SKL.RURohrm_SLTA
				AnimationMode			=	ONCE
			End
			Flags						= RANDOMSTART RESTART_ANIM_WHEN_COMPLETE
		End

;;======= TAUNTING
			
		AnimationState					= EMOTION_TAUNTING
			Animation					= Taunting
				AnimationName			= RURohrm_SKL.RURohrm_TNTA
				AnimationMode			= ONCE
			End
			Animation					= Taunting2
				AnimationName			= RURohrm_SKL.RURohrm_TNTB
				AnimationMode			= ONCE
			End
			Flags						= RANDOMSTART RESTART_ANIM_WHEN_COMPLETE
		End

;;======= POINTING
			
		AnimationState					= EMOTION_POINTING
			Animation					= Pointing1
				AnimationName			= RURohrm_SKL.RURohrm_PNTA
				AnimationMode			= LOOP
			End
		End
		
;;======== ALERT

		AnimationState					= EMOTION_ALERT
			Animation					= IDLA
				AnimationName			= RURohrm_SKL.RURohrm_IDLA
				AnimationMode			= LOOP
			End
		End
		
		AnimationState					=	RAISING_FLAG
			Animation					=	CheerA
				AnimationName			=	RURohrm_SKL.RURohrm_CHRA
				AnimationMode			=	ONCE
				AnimationSpeedFactorRange = 0.9 1.1
			End
			Animation					=	CheerB
				AnimationName			=	RURohrm_SKL.RURohrm_CHRB
				AnimationMode			=	ONCE
				AnimationSpeedFactorRange = 0.9 1.1
			End
			Animation					=	CheerC
				AnimationName			=	RURohrm_SKL.RURohrm_CHRC
				AnimationMode			=	ONCE
				AnimationSpeedFactorRange = 0.9 1.1
			End
			Animation					=	CheerD
				AnimationName			=	RURohrm_SKL.RURohrm_CHRD
				AnimationMode			=	ONCE
				AnimationSpeedFactorRange = 0.9 1.1
			End
			Animation					=	Salute
				AnimationName			=	RURohrm_SKL.RURohrm_SLTA
				AnimationMode			=	ONCE
			End
			Flags						= RESTART_ANIM_WHEN_COMPLETE
		End


;;-------------------- SELECTED ---------------------------------------------------------------
				
		AnimationState					= SELECTED
			StateName					= State_Selected
;			SimilarRestart				= Yes
			Animation					= AtAttention
				AnimationName			= RURohrm_SKL.RURohrm_IDLA
				AnimationMode			= LOOP
			End
			BeginScript
				Prev = CurDrawablePrevAnimationState()
				if Prev == "Idle" then
					CurDrawableSetTransitionAnimState("TRANS_Idle_To_Selected")
				elseif Prev == "State_PuttingBowAway" then
					CurDrawableSetTransitionAnimState("TRANS_BowAway_To_Selected")
				end
			EndScript
		End
		
		
		TransitionState					=	TRANS_Idle_to_Selected
			Animation					=	ATNA
				AnimationName			=	RURohrm_SKL.RURohrm_ATNA
				AnimationMode			=	ONCE
				AnimationSpeedFactorRange = 1.0 1.0
			End
		End

		TransitionState					=	TRANS_BowAway_To_Selected
			Animation
				AnimationName			=	RURohrm_SKL.RURohrm_WPNB
				AnimationMode			=	ONCE
			End
		End
		
		TransitionState					=	TRANS_Selected_to_Idle
			Animation					=	ATNC
				AnimationName			=	RURohrm_SKL.RURohrm_ATNA
				AnimationMode			=	ONCE_BACKWARDS
				AnimationSpeedFactorRange = 0.6 1.0
			End
			Flags						= START_FRAME_LAST
		End
		
		TransitionState					=	TRANS_BowAway_To_Idle
			Animation
				AnimationName			=	RURohrm_SKL.RURohrm_WPNB
				AnimationMode			=	ONCE
			End
		End
		
	End
	
	Draw = W3DScriptedModelDraw DustEffects
		DefaultModelConditionState
		  Model = None
		End
		IdleAnimationState
		End
		AnimationState = MOVING WADING
			ParticleSysBone = None FootstepSlash
		End
		AnimationState = MOVING ACCELERATE
			ParticleSysBone = None GenericSiegeTrailDust
		End
		AnimationState = MOVING DECELERATE
			ParticleSysBone = None GenericSiegeTrailDust
		End
		AnimationState = MOVING
		End
	End

; NOTE, PLEASE: If you are changing this unit in any way, you should consider changing 
; GondorCavalryRiderless in FactionSubObject.ini

	#include "..\..\..\includes\StunDrawModuleMedium.inc"

; ***DESIGN parameters ***
	Side = Men
	EditorSorting = UNIT
	ThreatLevel = 2.0
	TransportSlotCount = TRANSPORTSLOTCOUNT_UNIT

; Weapon Sets
	WeaponSet
		Conditions			= -WEAPONSET_TOGGLE_1 
		Weapon				= PRIMARY RohanRohirrimSpear
		AutoChooseSources	= PRIMARY FROM_PLAYER FROM_SCRIPT FROM_AI
	End

;spear upgrade
;WeaponSet
;	Conditions			= +PLAYER_UPGRADE -WEAPONSET_TOGGLE_1
;	Weapon				= PRIMARY RohanRohirrimSpear
;	AutoChooseSources	= PRIMARY FROM_PLAYER FROM_SCRIPT FROM_AI
;End

; bow
	WeaponSet
		Conditions			= WEAPONSET_TOGGLE_1 
		Weapon				= SECONDARY RohanRohirrimBow
		AutoChooseSources	= SECONDARY FROM_PLAYER FROM_SCRIPT FROM_AI
	End	

; bow upgrade	
;WeaponSet
;	Conditions			= PLAYER_UPGRADE WEAPONSET_TOGGLE_1
;	Weapon				= SECONDARY RohanRohirrimBow
  ;	AutoChooseSources	= SECONDARY FROM_PLAYER FROM_SCRIPT FROM_AI
;End

	ArmorSet
		Conditions	  = None
		Armor		   = RohirrimArmor
		DamageFX		= NormalDamageFX
	End
	ArmorSet	;Horse Shield
		Conditions		= PLAYER_UPGRADE
		Armor			= RohirrimShieldArmor ;RohirrimHorseShieldArmor
		DamageFX		= NormalDamageFX
	End
	ArmorSet	;Heavy Armor
		Conditions		= PLAYER_UPGRADE_2
		Armor			= RohirrimHeavyArmor
		DamageFX		= NormalDamageFX
	End
	ArmorSet
		Conditions		= PLAYER_UPGRADE_2 PLAYER_UPGRADE
		Armor			= RohirrimShieldHeavyArmor ;RohirrimHorseShieldAndHeavyArmor
		DamageFX		= NormalDamageFX
	End
	
	BountyValue			= ROHAN_ROHIRRIM_BOUNTY_VALUE
	VisionRange			= ROHAN_ROHIRRIM_VISION_RANGE 	
	VisionSide = 35%
	VisionRear = 25%
	
	MaxVisionBonusPercent = 300%
	VisionBonusTestRadius = 200
	VisionBonusPercentPerFoot = 2.0%
	ShroudClearingRange = SHROUD_CLEAR_STANDARD

	DisplayName	= OBJECT:RohanRohirrim
	CrushableLevel	= 3		 ;What am I?:		0 = for infantry, 1 = for trees, 2 = general vehicles
	CrusherLevel	= 1
	CrushWeapon	= RohirrimCrush
	
	MinCrushVelocityPercent = 40 ; Has to be moving at at least 35% of full speed.
	CrushDecelerationPercent = 20 ; Lose 20 percent of max velocity when crushing.
	
	CrushKnockback 	= 40;
	CrushZFactor 	= 1.0;
	
	CommandSet 	= RohanRohirrimCommandSet
	CommandPoints 	= 8 	; originally 6


; *** AUDIO Parameters ***;

;VoiceAmbushed			= RohirrimVoiceAmbushed  (not recorded)
	VoiceAttack			= RohirrimVoiceAttack
	VoiceAttackCharge		= RohirrimVoiceAttackCharge
	VoiceAttackStructure 		= RohirrimVoiceAttack;RohirrimVoiceAttackBuilding not recorded
 	VoiceAttackMachine		= RohirrimVoiceAttack;RohirrimVoiceAttackBuilding not recorded
	VoiceCreated			= RohirrimVoiceSalute
	VoiceFullyCreated		= RohirrimVoiceSalute
	VoiceMove			= RohirrimVoiceMove
	VoiceMoveToCamp 		= RohirrimVoiceMoveCamp
	VoiceMoveWhileAttacking 	= RohirrimVoiceDisengage
	VoicePriority			= 53	
	VoiceRetreatToCastle 		= RohirrimVoiceRetreat
	VoiceSelect			= RohirrimVoiceSelectMS
	VoiceSelectBattle		= RohirrimVoiceSelectBattle
	VoiceGuard			= RohirrimVoiceMove
	

	SoundCrushing			= RohirrimCrushing ;Sound made when crushing another unit underhoof
	SoundImpact 			= ImpactHorse
	SoundMoveStart 			= GondorHorseMoveStart
	
	VoiceEnterStateAttack			= RohirrimVoiceEnterStateAttack
	VoiceEnterStateAttackCharge		= RohirrimVoiceEnterStateAttackCharge
	VoiceEnterStateAttackStructure 		= RohirrimVoiceEnterStateAttack;RohirrimVoiceAttackBuilding not recorded
 	VoiceEnterStateAttackMachine		= RohirrimVoiceEnterStateAttack;RohirrimVoiceAttackBuilding not recorded
	VoiceEnterStateMove			= RohirrimVoiceEnterStateMove
	VoiceEnterStateMoveToCamp 		= RohirrimVoiceEnterStateMoveCamp
	VoiceEnterStateMoveWhileAttacking	= RohirrimVoiceEnterStateDisengage
	VoiceEnterStateRetreatToCastle 		= RohirrimVoiceEnterStateRetreat
	
	UnitSpecificSounds
		VoiceEnterUnitElvenTransportShip	= RohirrimVoiceMove
		VoiceInitiateCaptureBuilding		= RohirrimVoiceMove
	End
	
	CrowdResponseKey = GoodMen

	#include "..\..\..\Includes\StandardUnitEvaEvents.inc"

	ClientBehavior = ModelConditionAudioLoopClientBehavior ModuleTag_foo
		ModelCondition = Required:RAISING_FLAG			Excluded:DYING ENGAGED	Sound:EmotionMenGoodCompilationBFME1and2VoxTauntSinglesLoop
	End

	ClientBehavior = AnimationSoundClientBehavior ModuleTag_AnimAudioBehavior
		MaxUpdateRangeCap = 800
		AnimationSound = Sound: HorseMoveFootstepsLoose		Animation: RURohrm_SKL.RURohrm_ACCL	Frames: 8 30
		AnimationSound = Sound: HorseMoveFootstepsLoose		Animation: RURohrm_SKL.RURohrm_RUNA	Frames: 0
		AnimationSound = Sound: HorseMoveFootstepsLoose		Animation: RURohrm_SKL.RURohrm_RUNB	Frames: 0
		AnimationSound = Sound: HorseMoveFootstepsLoose		Animation: RURohrm_SKL.RURohrm_RUNC	Frames: 0
		AnimationSound = Sound: HorseMoveFootstepsLoose		Animation: RURohrm_SKL.RURohrm_TNL1	Frames: 0
		AnimationSound = Sound: HorseMoveFootstepsLoose		Animation: RURohrm_SKL.RURohrm_TNR1	Frames: 0
		AnimationSound = Sound: HorseMoveFootstepsLoose		Animation: RURohrm_SKL.RURohrm_TRNL	Frames: 0
		AnimationSound = Sound: HorseMoveFootstepsLoose		Animation: RURohrm_SKL.RURohrm_TRNR	Frames: 0
		AnimationSound = Sound: HorseWhinny			Animation: RURohrm_SKL.RURohrm_CHRB	Frames: 8
		AnimationSound = Sound: HorseWhinny			Animation: RURohrm_SKL.RURohrm_CHRC	Frames: 15
		AnimationSound = Sound: HorseWhinny			Animation: RURohrm_SKL.RURohrm_DIEA	Frames: 0
;AnimationSound = Sound: HorseWhinny			Animation: RURohrm_SKL.RURohrm_DIEB	Frames: 0
		AnimationSound = Sound: BodyFallGeneric1		Animation: RURohrm_SKL.RURohrm_DIEA	Frames: 10 46
;AnimationSound = Sound: BodyFallGeneric1		Animation: RURohrm_SKL.RURohrm_DIEB	Frames: 11
		AnimationSound = Sound: BodyFallGeneric1		Animation: RURohrm_SKL.RURohrm_LNDA	Frames: 3 11
;AnimationSound = Sound: TauntHitShieldPitchShifted 	Animation: RURohrm_SKL.RURohrm_TNTB	Frames: 12 29
;need means for filtering for upgraded horse shields!
	End


; *** ENGINEERING Parameters ***
 
	RadarPriority = UNIT
	ThingClass = CAVALRY_UNIT
	KindOf = PRELOAD SELECTABLE CAN_CAST_REFLECTIONS CAVALRY SCORE GRAB_AND_DROP
	
	Body = ActiveBody ModuleTag_02
		CheerRadius 		= EMOTION_CHEER_RADIUS		;
		MaxHealth			= ROHAN_ROHIRRIM_HEALTH		;ROHAN_ROHIRRIM_ARCHER_HEALTH
		MaxHealthDamaged		= ROHAN_ROHIRRIM_HEALTH_DAMAGED;ROHAN_ROHIRRIM_ARCHER_HEALTH_DAMAGED
		BurningDeathBehavior	= Yes
		BurningDeathFX			= FX_CavalryBurningFlame
	End
	
	#include "..\..\..\includes\CaptureBuilding.inc"
   	
	Behavior = AIUpdateInterface ModuleTag_03
		AutoAcquireEnemiesWhenIdle	= Yes ATTACK_BUILDINGS
		AILuaEventsList				= RohirrimFunctions
		AttackPriority				= AttackPriority_Cavalry
		Turret
			TurretTurnRate			= 360				; turn rate, in degrees per sec
			ControlledWeaponSlots	= SECONDARY
		End
		BurningDeathTime			= BURNINGDEATH_DURATION_CAVALRY
	End
		
	LocomotorSet
		Locomotor = NormalHorseHordeMemberLocomotor
		Condition = SET_NORMAL 
		Speed	 = NORMAL_MOUNTED_MED_MEMBER_SPEED
	End

	LocomotorSet
		Locomotor = NormalHorseHordeMemberLocomotor
		Condition = SET_COMBO
		Speed	 = NORMAL_FOOT_FAST_MEMBER_SPEED
	End

	LocomotorSet
		Locomotor = BurningDeathLocomotorCavalry
		Condition = SET_BURNINGDEATH
		Speed	  = BURNINGDEATH_WANDERSPEED_CAVALRY
	End

	Behavior = PhysicsBehavior ModuleTag_04
		GravityMult = 1.0
		ShockStandingTime = 2533;msec
	End
	
	Behavior = SquishCollide ModuleTag_06
;nothing
	End
	
; RohanRohirrim
	Behavior = HordeMemberCollide ModuleTag_HMC
;nothing
	End

	Behavior = SlowDeathBehavior ModuleTag_08
		DeathTypes = ALL -FADED
		SinkDelay = 3000
		SinkRate = 1.0; in Dist/Sec
		DestructionDelay = 15000
;ProbabilityModifier = 33
		DeathFlags = DEATH_1; Tell model which death animation to play. Sets BOTH model condition and object status bits.
		Sound = INITIAL RohirrimVoiceDie
	End
	
	  Behavior = SlowDeathBehavior ModuleTag_FadeDeath
		DeathTypes = NONE +FADED
		FadeDelay = 0
		FadeTime = 4000
		DestructionDelay = 4000
		DeathFlags = DEATH_2
		FX = INITIAL FX_RohirrimAlliesUnsummon
	End

; Tie into LargeGroupAudio system
	Behavior = LargeGroupAudioUpdate ModuleTag_LGAU
		Key = Humanoid_Male Man Man_Male Unit Cavalry Rohirrim_Lancer
	End
			
;//--------------------UPGRADES---------------------------------------------
;//------Heavy Armor------
	Behavior = SubObjectsUpgrade Armor2_Upgrade
		TriggeredBy				= Upgrade_RohanHeavyArmorForRohirrim
		ShowSubObjects			= SHIELD
		UpgradeTexture			= RURohrm01.tga 0 RURohrm01HA.tga
		UpgradeTexture			= RURohrm02.tga 0 RURohrm02HA.tga
		UpgradeTexture			= RURohrm03.tga 0 RURohrm03HA.tga
		UpgradeTexture			= RURohrm04.tga 0 RURohrm04HA.tga
		
		UpgradeTexture			= RUHorse01.tga 0 RUHorse01HA.tga
		UpgradeTexture			= RUHorse02.tga 0 RUHorse02HA.tga
		UpgradeTexture			= RUHorse03.tga 0 RUHorse03HA.tga
		UpgradeTexture			= RUHorse04.tga 0 RUHorse04HA.tga

		RecolorHouse			= Yes
		ExcludeSubobjects		= Forged_Blade
	End

	Behavior = ArmorUpgrade ArmorUpgradeModuleTag
		TriggeredBy				= Upgrade_RohanHeavyArmorForRohirrim
		ArmorSetFlag			= PLAYER_UPGRADE_2
	End
	
;//------Fire Arrows------
	Behavior = SubObjectsUpgrade FireArrows_Upgrade
		TriggeredBy				= Upgrade_RohanFireArrows
		ShowSubObjects			= FireArowTip; arrownock
	End
	
	Behavior = WeaponSetUpgrade ModuleTag_FireArrows
		TriggeredBy				= Upgrade_RohanFireArrows
		RequiresAllTriggers		= Yes
		CustomAnimAndDuration   = AnimState:USER_2 AnimTime:0 TriggerTime:0;set flag forever
	End	
;//------Horse Shields------	
	Behavior = SubObjectsUpgrade Shield_Upgrade
		TriggeredBy				= Upgrade_RohanHorseShield
		ShowSubObjects			= SHIELD
		RecolorHouse			= Yes
		ExcludeSubobjects		= Forged_Blade
	End
	
	Behavior = ArmorUpgrade ModuleTagHorseShield
		TriggeredBy				= Upgrade_RohanHorseShield
		ArmorSetFlag			= PLAYER_UPGRADE
	End
;//------Forged Blades------		
	Behavior = SubObjectsUpgrade ForgedBlades_Upgrade
		TriggeredBy				= Upgrade_RohanForgedBladesForRohirrim
		ShowSubObjects			= Forged_Blade
	End
	
 ; Just a dummy upgrade module to allow this unit to be upgraded.
	  Behavior = StatusBitsUpgrade ModuleTag_ForgedBlades
		  TriggeredBy				= Upgrade_RohanForgedBladesForRohirrim 
	  End
  
	Geometry = CYLINDER
	GeometryMajorRadius = 8
	GeometryMinorRadius = 8
	GeometryHeight = 20.0
	GeometryIsSmall = No
	Shadow = SHADOW_DECAL
	ShadowSizeX = 30;
	ShadowSizeY = 21;
	ShadowTexture = ShadowI;

End

;; ----------------------------------------------------------------------------------------------
ChildObject RohanRohirrim_Gondor_1 RohanRohirrimBase
	EquivalentTo = RohanRohirrimBase
;//------Initial Armor------
	Behavior = SubObjectsUpgrade Armor_Initial
		TriggeredBy = Upgrade_AllFactionUpgrade
		UpgradeTexture = RURohrm02.tga 0 RURohrm01.tga
		UpgradeTexture = RUHorse03.tga 0 RUHorse01.tga
		RecolorHouse = No
		ExcludeSubobjects = Forged_Blade
	End
;//------Heavy Armor------
	Behavior = SubObjectsUpgrade Armor_Upgrade
		TriggeredBy = Upgrade_RohanHeavyArmorForRohirrim
		ShowSubObjects	= SHIELD
		UpgradeTexture = RURohrm02.tga 0 RURohrm01HA.tga
		UpgradeTexture = RUHorse03.tga 0 RUHorse01HA.tga
		RecolorHouse = No
		ExcludeSubobjects = Forged_Blade
	End
End

;; ----------------------------------------------------------------------------------------------
ChildObject RohanRohirrim_Gondor_2 RohanRohirrimBase
	EquivalentTo = RohanRohirrimBase
;//------Initial Armor------
	Behavior = SubObjectsUpgrade Armor_Initial
		TriggeredBy = Upgrade_AllFactionUpgrade
		UpgradeTexture = RURohrm02.tga 0 RURohrm02.tga
		UpgradeTexture = RUHorse03.tga 0 RUHorse02.tga
		RecolorHouse = No
		ExcludeSubobjects = Forged_Blade
	End
;//------Heavy Armor------
	Behavior = SubObjectsUpgrade Armor_Upgrade
		TriggeredBy = Upgrade_RohanHeavyArmorForRohirrim
		ShowSubObjects	= SHIELD
		UpgradeTexture = RURohrm02.tga 0 RURohrm02HA.tga
		UpgradeTexture = RUHorse02.tga 0 RUHorse02HA.tga
		RecolorHouse = No
		ExcludeSubobjects = Forged_Blade
	End
End

;; ----------------------------------------------------------------------------------------------
ChildObject RohanRohirrim_Gondor_3 RohanRohirrimBase
	EquivalentTo = RohanRohirrimBase
;//------Initial Armor------
	Behavior = SubObjectsUpgrade Armor_Initial
		TriggeredBy = Upgrade_AllFactionUpgrade
		UpgradeTexture = RURohrm02.tga 0 RURohrm03.tga
		UpgradeTexture = RUHorse03.tga 0 RUHorse03.tga
		RecolorHouse = No
		ExcludeSubobjects = Forged_Blade
	End
;//------Heavy Armor------
	Behavior = SubObjectsUpgrade Armor_Upgrade
		TriggeredBy = Upgrade_RohanHeavyArmorForRohirrim
		ShowSubObjects	= SHIELD
		UpgradeTexture = RURohrm02.tga 0 RURohrm03HA.tga
		UpgradeTexture = RUHorse03.tga 0 RUHorse03HA.tga
		RecolorHouse = No
		ExcludeSubobjects = Forged_Blade
	End
End

;; ----------------------------------------------------------------------------------------------
ChildObject RohanRohirrim_Gondor_4 RohanRohirrimBase
	EquivalentTo = RohanRohirrimBase
;//------Initial Armor------
	Behavior = SubObjectsUpgrade Armor_Initial
		TriggeredBy = Upgrade_AllFactionUpgrade
		UpgradeTexture = RURohrm02.tga 0 RURohrm04.tga
		UpgradeTexture = RUHorse03.tga 0 RUHorse04.tga
		RecolorHouse = No
		ExcludeSubobjects = Forged_Blade
	End

;//------Heavy Armor------
	Behavior = SubObjectsUpgrade Armor_Upgrade
		TriggeredBy = Upgrade_RohanHeavyArmorForRohirrim
		ShowSubObjects	= SHIELD
		UpgradeTexture = RURohrm02.tga 0 RURohrm04HA.tga
		UpgradeTexture = RUHorse03.tga 0 RUHorse04HA.tga
		RecolorHouse = No
		ExcludeSubobjects = Forged_Blade
	End
End



;; ----------------------------------------------------------------------------------------------
ChildObject RohanRohirrim_Summoned RohanRohirrim
	IsTrainable = No
	CommandPoints = 0
	EquivalentTo = RohanRohirrim
	
	Behavior = LifetimeUpdate ModuleTag_LifetimeUpdate
; This one does the work, but the one in the horde displays the timer
		MinLifetime		= 180000
		MaxLifetime		= 180000
		DeathType		= FADED
	End

	Behavior = AIUpdateInterface ModuleTag_03
		AutoAcquireEnemiesWhenIdle	= Yes ATTACK_BUILDINGS
		AILuaEventsList				= SummonedRohirrimFunctions
		AttackPriority				= AttackPriority_Cavalry
		BurningDeathTime			= BURNINGDEATH_DURATION_CAVALRY
	End

	  Behavior = SlowDeathBehavior ModuleTag_FadeDeath
		DeathTypes = NONE +FADED
		FadeDelay = 0
		FadeTime = 4000
		DestructionDelay = 4000
		DeathFlags = DEATH_2
		FX = INITIAL FX_RohirrimAlliesUnsummon
		Sound = INITIAL SpellGenericUnsummonFasterMS
	End
	
End

;------------------------------------------------------------------------------
; Royal Guard, RohirrimRoyalGuard
ChildObject RohanRoyalGuard RohanRohirrim
End

If it does not work then try to replace all:
TriggeredBy = Upgrade_AllFactionUpgrade
with
TriggeredBy = Upgrade_ObjectLevel1

Edited by Ridder Geel, 27 November 2008 - 03:47 PM.

Ridder Geel

#40 sporting1986

sporting1986

    Aragorn Elessar

  • Members
  • 526 posts
  • Location:Lisboa Portugal
  •  A newbie i am not, yet much to learn i still have

Posted 27 November 2008 - 03:30 PM

---------------------------
Game crash
---------------------------




Unknown field 'SelectPortrait' in block 'Object'.



Error parsing field 'SelectPortrait' in block 'Object' in file 'data\ini\object\goodfaction\units\men\rohanrohirrim.ini', line 3.





Error parsing field ' SelectPortrait' in block 'Object' in file 'data\ini\object\goodfaction\units\men\rohanrohirrim.ini', line 3.





Error parsing INI block ' SelectPortrait' in file 'data\ini\object\goodfaction\units\men\rohanrohirrim.ini'.

5 addresses:

(unknown)(0): game.dat+240382 Debug::PostStaticInit+3390

(unknown)(0): game.dat+2347216 IntRange::IntRange+93886

(unknown)(0): game.dat+2377423 IntRange::IntRange+124093

(unknown)(0): game.dat+6542103 Xfer::~Xfer+118430

(unknown)(0): kernel32.dll+94311 RegisterWaitForInputIdle+73


Because of the severity of this error the game will now exit.
---------------------------
OK
---------------------------

it says this




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users