///////////////////////////////////////////////////
// M4.
///////////////////////////////////////////////////

class M4 extends Actor;

#exec MESH IMPORT MESH=M4 ANIVFILE=MODELS\M4_a.3d DATAFILE=MODELS\M4_d.3d X=0 Y=0 Z=0
#exec MESH ORIGIN MESH=M4 X=0 Y=0 Z=0

#exec MESH SEQUENCE MESH=M4 SEQ=All STARTFRAME=0 NUMFRAMES=30
#exec MESH SEQUENCE MESH=M4 SEQ=Still STARTFRAME=1 NUMFRAMES=1
#exec MESH SEQUENCE MESH=M4 SEQ=Select STARTFRAME=2 NUMFRAMES=11
#exec MESH SEQUENCE MESH=M4 SEQ=Shoot STARTFRAME=13 NUMFRAMES=3      RATE=18
#exec MESH SEQUENCE MESH=M4 SEQ=Reload STARTFRAME=16 NUMFRAMES=9     RATE=5
#exec MESH SEQUENCE MESH=M4 SEQ=Down STARTFRAME=25 NUMFRAMES=3
#exec MESH SEQUENCE MESH=M4 SEQ=Idle1 STARTFRAME=28 NUMFRAMES=1
#exec MESH SEQUENCE MESH=M4 SEQ=Idle2 STARTFRAME=29 NUMFRAMES=1


// add further '#exec MESH SEQUENCE' lines here to define additional animation sections

#exec MESHMAP NEW MESHMAP=M4 MESH=M4


//Edit X, Y, and Z values in line below to change size of mesh in game
#exec MESHMAP SCALE MESHMAP=M4 X=0.312036 Y=0.312036 Z=0.312036

#exec TEXTURE IMPORT NAME=M4Tex FILE=Textures\M4Tex.PCX GROUP="Skins"

#exec MESHMAP SETTEXTURE MESHMAP=M4 NUM=0 TEXTURE=M4Tex
#exec MESHMAP SETTEXTURE MESHMAP=M4 NUM=1 TEXTURE=WeaponHandsTex
#exec MESHMAP SETTEXTURE MESHMAP=M4 NUM=2 TEXTURE=BlackMaskTex
#exec MESHMAP SETTEXTURE MESHMAP=M4 NUM=3 TEXTURE=WeaponHandsTex
#exec MESHMAP SETTEXTURE MESHMAP=M4 NUM=4 TEXTURE=M4Tex

#exec MESH NOTIFY MESH=M4 SEQ=Shoot	TIME=0.05	FUNCTION=SwapMuzzleFlashTexture
#exec MESH NOTIFY MESH=M4 SEQ=Shoot	TIME=0.25	FUNCTION=SwapMuzzleFlashTexture
#exec MESH NOTIFY MESH=M4 SEQ=Shoot	TIME=0.45	FUNCTION=SwapMuzzleFlashTexture
#exec MESH NOTIFY MESH=M4 SEQ=Shoot	TIME=0.65	FUNCTION=SwapMuzzleFlashTexture
#exec MESH NOTIFY MESH=M4 SEQ=Shoot	TIME=0.85	FUNCTION=SwapMuzzleFlashTexture

defaultproperties
{
   // DrawType=DT_Mesh
    //Mesh=M4
}
