引用 | 编辑
tony987852
2010-07-24 17:27 |
楼主
▼ |
||
x0
第一: sma有哪个参数可以把w档隐形?第二: 怎样修改受伤的声音? 麻烦你们! x0
|
引用 | 编辑
HsK
2010-07-24 18:08 |
1楼
▲ ▼ |
第二: 怎样修改受伤的声音?
register_forward(FM_EmitSound, "fw_EmitSound") public fw_EmitSound(id, channel, const sample[], Float:volume, Float:attn, flags, pitch) { if (!is_user_connected(id)) return FMRES_IGNORED; if (sample[7] == 'b' && sample[8] == 'h' && sample[9] == 'i' && sample[10] == 't') //被击中声音 { engfunc(EngFunc_EmitSound, id, channel, sex_girl_behit[random_num(0, sizeof sex_girl_behit - 1)], volume, attn, flags, pitch) return FMRES_SUPERCEDE; } return FMRES_IGNORED; } x2 |
引用 | 编辑
a7811311622
2010-07-24 18:34 |
2楼
▲ ▼ |
第一: sma有哪个参数可以把w档隐形?
register_forward(FM_SetModel, "fw_SetModel") public fw_SetModel(entity, const model[]) { if (!pev_valid(entity)) return FMRES_IGNORED; if (equal(model[7], "w_weaponbox.mdl")) fm_set_rendering(entity,kRenderFxGlowShell,0,0,0,kRenderTransAlpha,0) return FMRES_IGNORED; } stock fm_set_rendering(entity, fx = kRenderFxNone, r = 255, g = 255, b = 255, render = kRenderNormal, amount = 16) { static Float:color[3] color[0] = float(r) color[1] = float(g) color[2] = float(b) set_pev(entity, pev_renderfx, fx) set_pev(entity, pev_rendercolor, color) set_pev(entity, pev_rendermode, render) set_pev(entity, pev_renderamt, float(amount)) } x1 |
引用 | 编辑
tony987852
2010-07-24 20:31 |
3楼
▲ ▼ |
下面是引用 a7811311622 于 2010-07-24 18:34 发表的 : w_weaponbox.mdl 要改成隐形的w档的名字吗? 下面是引用 sk@.@ 于 2010-07-24 18:08 发表的 : new sex_girl_behit[4][]= { "声音1", "2", "3", "4" } 是这样吗? 话说..这应该是你那个「男女独立运行的 AMXX」??? x1 |
引用 | 编辑
tony987852
2010-07-25 09:01 |
5楼
▲ |
谢谢你们^^
x0 |