Animals won't provide food

Modding, Map Editor, IES Scripting and Other Questions
Post Reply
User avatar
Gonzalo
Posts: 336
Joined: 24 Aug 2018, 08:56
Been thanked: 3 times

Animals won't provide food

Post by Gonzalo »

My (new) animals when killed sink automatically into ground and don't wait to be harvested. Also citizens won't show harvesting cursor when placed on an animal (old ones from game do). I have tried to edit deadanimal parent = LowFood instead of Highfood, and to copy subjectedly from original animals, but problem persist. Please help!

Code: Select all

//------------------------------------------------
//	GAZELLE
//------------------------------------------------
UnitType Gazelle
{
	parent = LandAnimal
	ownertype = PlayerOrWorld
	properties {	
		rps = Animal	
		displayName = tx_utn_Faugazelle_name	
		VerboseTooltip = vtt_unit_Faugazelle
		hitpoints = 10
		SizeX = 0.3
		SizeY = 0.3
	}
	sounds {
		sndSelection = ["fx_animal_deer_sel_01"]
	}
	abilities = [
		Move {mustMoveToTurn = 0; speed = 2.07; angSpeed = 720}
		LOS { range = 3 }
	]
}

UnitModel GazelleBase
{
	Parent 		= BaseLandAnimal
	DefaultModel 	= faugazelle.nif
	ChildNames 		= [ UnitShadow ]
	UIRenderingParams {
		xOffset = -0.53
		yOffset = 2.80
		zoffset = 0.01
		scale = 1.28
		angle = 52.11
		rotationSpeed = 0.00
		pitch = 10.01
		lightAngle = 30.00
		lightPitch = 90.00
		lightDiffuse = [50 50 45 255]
		lightSpecular = [0 0 0 255]
		lightAmbient = [40 40 40 255]
	}
}

UnitModel Gazelle
{
	Parent 		= GazelleBase
	States 		= [
		{	StateName = Idle	AnimName = sh_faudeer_idle01.kf
			AnimVariants = [ sh_faudeer_idle02.kf sh_faudeer_idle03.kf ] AnimVariantsWeights = [ 0.3 0.1 ]
		}
		{ 	StateName = Walk	AnimName = sh_faudeer_walk01.kf }
		{ 	StateName = Run 	AnimName = sh_faudeer_run01.kf }
		{ 	StateName = Death	AnimName = sh_faudeer_death01.kf 
				TextKeys = [{ Name = PLAY_SOUND Data = fx_animal_deer_die_01 KeyTime = 0.0 }]}
			]
}

UnitType DeadAnimalGazelle
{
	parent = DeadAnimal_MediumFood
	properties {
		displayName = tx_utn_DeadFaugazelle_name
		VerboseTooltip = vtt_unit_DeadFaugazelle
	}
}

UnitModel DeadAnimalGazelle
{
	Parent 		= GazelleBase
	DefaultState = Death
	States 		= [
		{ 	StateName = Death	AnimName = sh_faudeer_death01.kf }
			]
	UIRenderingParams {
		xOffset = -1.05
		yOffset = 5.79
		zOffset = 2.63
		scale = 1.53
		angle = 56.84
		rotationSpeed = 0.00
		pitch = 10.01
		lightAngle = 30.00
		lightPitch = 90.00
		lightDiffuse = [50 50 45 255]
		lightSpecular = [0 0 0 255]
		lightAmbient = [40 40 40 255]
	}
}


Added after 23 minutes 32 seconds:
PS Sorry for wrong sub-menu...

User avatar
Gonzalo
Posts: 336
Joined: 24 Aug 2018, 08:56
Been thanked: 3 times

Re: Animals won't provide food

Post by Gonzalo »

Problem solved.
Post Reply

Return to “Questions”