//=============================================================================
// Boulder.
//=============================================================================
class Boulder expands Decoration;

#exec MESH IMPORT MESH=Boulder ANIVFILE=MODELS\rock_a.3D DATAFILE=MODELS\rock_d.3D X=0 Y=0 Z=0
#exec MESH ORIGIN MESH=Boulder X=0 Y=0 Z=0 YAW=64

#exec MESH SEQUENCE MESH=Boulder SEQ=All  STARTFRAME=0  NUMFRAMES=4
#exec MESH SEQUENCE MESH=Boulder SEQ=Pos1  STARTFRAME=0   NUMFRAMES=1
#exec MESH SEQUENCE MESH=Boulder SEQ=Pos2  STARTFRAME=1   NUMFRAMES=1
#exec MESH SEQUENCE MESH=Boulder SEQ=Pos3  STARTFRAME=2   NUMFRAMES=1
#exec MESH SEQUENCE MESH=Boulder SEQ=Pos4  STARTFRAME=3   NUMFRAMES=1

#exec TEXTURE IMPORT NAME=JBoulder1 FILE=MODELS\rock.PCX GROUP=Skins
#exec MESHMAP SCALE MESHMAP=Boulder X=0.1 Y=0.1 Z=0.2
#exec MESHMAP SETTEXTURE MESHMAP=Boulder NUM=1 TEXTURE=JBoulder1

function PreBeginPlay()
{
	local float Decision;

	Decision = FRand();
	if (Decision<0.25) PlayAnim('Pos1');
	if (Decision<0.5) PlayAnim('Pos2');
	if (Decision<0.75) PlayAnim('Pos3');
	else PlayAnim('Pos4');	
}

