如何去掉AWP的枪声?
如何去掉AWP的枪声?回复: 如何去掉AWP的枪声?
顶,谁能帮忙??????回复: 如何去掉AWP的枪声?
修改或者删掉cstrike\sound\weapons\awp1.wav回复: 如何去掉AWP的枪声?
Post by Cs.K修改或者删掉cstrike\sound\weapons\awp1.wav
哈哈,这个叫做掩耳盗铃.....:D
回复: 如何去掉AWP的枪声?
这样试试:#include <fakemeta>
public plugin_init()
{
....
register_forward(FM_EmitSound, "Hook_EmitSound")
....
}
public Hook_EmitSound(index, channel, sample[], Float:vol, Float:att,flags, pitch)
{
if(equali(sample,"sound/weapons/awp1.wav"))
return FMRES_HANDLED
....
}
回复: 如何去掉AWP的枪声?
Post by Rulzy这样试试:
#include <fakemeta>
public plugin_init()
{
....
register_forward(EngFunc_EmitSound, "Hook_EmitSound")
....
}
public Hook_EmitSound(index, channel, sample[], Float:vol, Float:att,flags, pitch)
{
if(equali(sample,"sound/weapons/awp1.wav"))
...
一点小改动:
register_forward(FM_EmitSound, "FM_EmitSound_BlockSound")
public FM_EmitSound_BlockSound(iEnt, iChannel, const sSample[], Float: fVolume, Float: fAttenuation, iFlags, iPitch )
{
......
}
回复: 如何去掉AWP的枪声?
呵呵,写错了点,现在修正。回复: 如何去掉AWP的枪声?
开灯可以减小 消除应该不可能吧 除非掩耳盗铃
页:
[1]