// Bomb Events

sm_mode set gjfkpr

alias set_bm "sm_sayformat 200 100 0 -1 0.30 0 6 6 0.5 1.5 1" //Bomb event

sm_menu "Count. to explosion\\y\\R{sm_mode&g?ON:OFF}" "sm_mode {sm_mode&g?remove:set} g"
sm_menu "Bomb Pl. announce\\y\\R{sm_mode&f?ON:OFF}" "sm_mode {sm_mode&f?remove:set} f"
sm_menu "Bomb Def. Success\\y\\R{sm_mode&j?ON:OFF}" "sm_mode {sm_mode&j?remove:set} j"
sm_menu "Bomb Def. Failure\\y\\R{sm_mode&k?ON:OFF}" "sm_mode {sm_mode&k?remove:set} k"
sm_menu "Bomb Pick. announce\\y\\R{sm_mode&p?ON:OFF}" "sm_mode {sm_mode&p?remove:set} p"
sm_menu "Bomb Drop. announce\\y\\R{sm_mode&r?ON:OFF}" "sm_mode {sm_mode&r?remove:set} r"


// bomb planter and defuser
sm_reg "StatusIcon kfjpr" "{%.bpln={p.name}}" bdeg "1=1" "1=2" "2=c4"
sm_reg "BarTime gkj" "{%.btm={p.id}}{%.bpln={p.name}}" bdeg "1=10" "1=5"
sm_reg "BarTime g" "{%.btm=0}" bdeg "1=0"

// Count down to the bomb explosion
sm_reg "SM_C4Timer g" "sm_clexec * \'spk \\'vox/thirty seconds until explosion\\'\'" ade "1=30"
sm_reg "SM_C4Timer g" "sm_clexec * \'spk \\'vox/twenty seconds until explosion\\'\'" ade "1=20"
sm_reg "SM_C4Timer g" "sm_clexec * \'spk vox/{W.{V1}}\'" ade "1<11"

// Count down also for defuser
sm_reg "SM_C4Timer g" "{%.bpln?{%.btm=0?#}:#}sm_tell #{p{%.btm}.uid} {V1} 4" adeg

sm_reg "SendAudio f" "set_bm;sm_tell * \'{%.bpln} set up us the bomb!!!\'" ade "2=%!MRAD_BOMBPL"
sm_reg "SendAudio kfj" "{%.bpln=0}" ade "2=%!MRAD_BOMBPL"
sm_reg "TextMsg k" "{%.bpln?:#}set_bm;sm_tell * \'{%.bpln} failed to defuse the bomb...\'{%.bpln=0}" ae "2=#Target_B"
sm_reg "SendAudio j" "set_bm;sm_tell * \'{%.bpln} defused the bomb!\'{%.bpln=0}" ade "2=%!MRAD_BOMBDEF"
sm_reg "TextMsg p" "set_bm;sm_tell * \'{p.name} picked up the bomb...\'" bce "2=#Got_bomb"
sm_reg "TextMsg r" "set_bm;sm_tell * \'{%.bpln} dropped the bomb!!!\'" bce "2=#Game_bomb_d"