HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Reversing a Peasant's Gold/Lumber Animations

06-22-2007, 06:37 AM#1
Pyrogasm
In a map project, I'm having peasants 'mine' materials by attacking tree-based doodads. The problem with this being that the peasant now carries lumber on his back after mining.

To rectify this problem, I attempted to switch the data for all relevant lumber-/gold- related animations. I tried what I thought would work, but it ended up having all sorts of animation errors after I edited the .mdl. These problems included:
  • When I ordered the worker to harvest from a tree (mine), he attacked it once and the lumber appeared on his shoulder, but then he kinda just froze up and a corpse appeared at his feet.
  • Although he was frozen in animations, you could still hear the sound of him hitting the tree and you could see the tree vibrate as if he had hit it.
  • When the worker got all the lumber he could carry, he turned about and just kinda slid over to the Lumber Mill building I put there. The worker did not play his walking animation; he just stood in place and slid over to the building.
  • The corpse that appeared earlier was still locked at his feet. When he reached the lumber mill, he deposited the lumber and walked back to the tree normally.
Both the original and edited .mdl files are attached... what did I do wrong?
Attached Files
File type: mdlpeasant.mdl (415.3 KB)
File type: mdlpeasant_switched.mdl (415.3 KB)
06-22-2007, 08:01 AM#2
Rising_Dusk
Not sure what you did wrong, but I got it working.
Attached is the working reversed gold/lumber peasant in .mdx form and a testmap to prove it works.

All I did was put a "Gold" everywhere I saw a "Lumber" in the animation list and vice versa.
Rather quick edit and it works.
Attached Files
File type: mdxpeasant2.mdx (137.1 KB)
File type: w3mRawrawr.w3m (70.5 KB)
06-22-2007, 08:07 AM#3
Pyrogasm
Oh, so if I just switch the word "Lumber" for "Gold" in the parts that say Anim "Stand Lumber" {, etc., that'll work?

I was switching all this crap for each animation:
Code:
		Interval { 18300, 19867 },
		MinimumExtent { -30.7913, -29.2415, 0.201665 },
		MaximumExtent { 19.058, 21.2577, 98.3751 },
		BoundsRadius 55.6318,

Thanks!