|
发表于 2003-2-28 12:10:37
|
显示全部楼层
|阅读模式
来自 中国–上海–上海–浦东新区
说 /woohoo或/crap 就能让所有人听见声音 "woohoo" "crap"
原来的sound.cfg需要一些hl的文件,如果没有会出错,这点只需注释掉相关语句即可。
不过原来的脚本在人物死后还是可以喊叫而且可用数恢复为初值。现改为死亡后spv=0,开局恢复。另外,取消了在无可用次数情况下再次使用被kick
sm_mode3 set p
localinfo spv 2 //每回合可用次数,请自行修改
sm_menu "Sound Aliases\y\R{sm_mode3&p?ON:OFF}" "sm_mode3 {sm_mode3&p?remove:set} p"
sm_reg "SM_PutInServer p 3" "{%.spc{p.id}=0}" bde
sm_reg "ResetHud p 3" "{%.spc{p.id}=0}" bde
sm_reg "SM_DeathMsg p 3" "{%.spc{p.id}={I.spv}}" ade
sm_reg "SM_RoundStart p 3" "{%.spc{p.id}=0}" bde
sm_do "{#.voyes2=sm_tell2 #{p.uid} \'** This was your {%.spc{p.id}}th sound of {I.spv} sounds **\' 3}"
sm_do "{#.vono=sm_clexec2 #{p.uid} \'echo \\'<{C.hostname}> ** reached voice-alias limit **\\'\'}"
sm_do "{#.voyesa=sm_clexec2 * \'spk misc/woohoo\'}"
sm_do "{#.voyesb=sm_clexec2 * \'spk misc/awwcrap2\'}"
sm_alias "/woohoo" "{sm_mode3&p?:#}{%.spc{p.id}+1}{%.spc{p.id}>{I.spv}?{#.vono}:{#.voyesa};{#.voyes2}}" b
sm_alias "/crap" "{sm_mode3&p?:#}{%.spc{p.id}+1}{%.spc{p.id}>{I.spv}?{#.vono}:{#.voyesb};{#.voyes2}}" b |
|