HsK
CCN@HsK
级别: 版主
版区: CS插件区
x1701
x1108
|
分享:
▲
▼
第二: 怎样修改受伤的声音?
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; }
|
HsK-Dev Blog By CCN
|
x2
[1 楼]
From:香港有线宽频 | Posted:2010-07-24 18:08 |
|
|
a7811311622
我…在工作了…
级别: 版主
版区: CS提问区
x771
x2152
|
分享:
▲
▼
第一: 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
[2 楼]
From:台湾中华电信 | Posted:2010-07-24 18:34 |
|
|
tony987852
|
分享:
▲
▼
下面是引用 a7811311622 于 2010-07-24 18:34 发表的 : 第一: sma有哪个参数可以把w档隐形? register_forward(FM_SetModel, "fw_SetModel") public fw_SetModel(entity, const model[]) { if (!pev_valid(entity)) ....... w_weaponbox.mdl 要改成隐形的w档的名字吗? 下面是引用 sk@.@ 于 2010-07-24 18:08 发表的 : 第二: 怎样修改受伤的声音? register_forward(FM_EmitSound, "fw_EmitSound")
public fw_EmitSound(id, channel, const sample[], Float:volume, Float:attn, flags, pitch) { ....... new sex_girl_behit[4][]= { "声音1", "2", "3", "4" } 是这样吗? 话说..这应该是你那个「男女独立运行的 AMXX」???
|
|
x1
[3 楼]
From:未知地址 | Posted:2010-07-24 20:31 |
|
|
|