大馒头 发表于 2007-4-21 04:59:59

如何去掉AWP的枪声?

如何去掉AWP的枪声?

大馒头 发表于 2007-4-26 12:57:26

回复: 如何去掉AWP的枪声?

顶,谁能帮忙??????

Cs.K 发表于 2007-4-26 18:30:45

回复: 如何去掉AWP的枪声?

修改或者删掉cstrike\sound\weapons\awp1.wav

shinyrose 发表于 2007-4-26 20:57:27

回复: 如何去掉AWP的枪声?

Post by Cs.K
修改或者删掉cstrike\sound\weapons\awp1.wav
哈哈,这个叫做掩耳盗铃.....:D

Rulzy 发表于 2007-4-27 17:48:00

回复: 如何去掉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
    ....
}

Ryu2877 发表于 2007-4-27 19:04:16

回复: 如何去掉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 )
{
......
}

Rulzy 发表于 2007-4-28 23:39:09

回复: 如何去掉AWP的枪声?

呵呵,写错了点,现在修正。

askwy 发表于 2007-5-9 20:32:53

回复: 如何去掉AWP的枪声?

开灯可以减小 消除应该不可能吧   除非掩耳盗铃
页: [1]
查看完整版本: 如何去掉AWP的枪声?