$modelname "weapons\v_ied.mdl"
$cdmaterials models\weapons\v_models\c4

$include "../common.qci"

// This is actually ul lr (upper left lower right) since that's how the vgui 3D rendering expects it to be.
$attachment "controlpanel0_ll" "v_weapon.c4" -1.45 1.80 1.8 rotate 0 180 90
$attachment "controlpanel0_ur" "v_weapon.c4" -4.60 1.80 1.2 rotate 0 180 90
$attachment "led" "v_weapon.c4" -1.8 1.8 -0.4 rotate 0 0 0

// 0 bone controllers

//$origin -2.5 -1 8.2
//$origin -1.5 3 0.7
//$origin 0 3 2
$origin 1 9 0 

$bodygroup studio
{
	studio "v_ied_model.smd"
}

//Events
// 5004 - play .wav file
// 7001 - set the screen to the passed string


// 4 sequences
$sequence idle1 "v_ied_idle" fps 12  activity ACT_VM_IDLE 1

$sequence draw "v_ied_draw" fps 25 snap {
	activity ACT_VM_DRAW 1
	{ event 7001 0 "" }
	{ event 5004 0 "c4.draw" }
}

$sequence drop "v_ied_plant" fps 30 {
	activity ACT_VM_SECONDARYATTACK 1
	{ event 7001 0 "*******" }
}

// [mlowrance] I found that these frame values have been hard coded in weapon_c4.cpp
// any changes here need to be modified there as well.
$sequence pressbutton "v_ied_pressbuttons" fps 30 {
	activity ACT_VM_PRIMARYATTACK 1
	{ event 5004 20 "c4.click" }
	{ event 5004 29 "c4.click" }
	{ event 5004 37 "c4.click" }
	{ event 5004 44 "c4.click" }
	{ event 5004 50 "c4.click" }
	{ event 5004 59 "c4.click" }
	{ event 5004 65 "c4.click" }
	{ event 7001 0 "" }
	{ event 7001 20 "7" }
	{ event 7001 29 "73" }
	{ event 7001 37 "735" }
	{ event 7001 44 "7355" }
	{ event 7001 50 "73556" }
	{ event 7001 59 "735560" }
	{ event 7001 65 "7355608" }
	{ event 7001 71 "*******" }
}
