as the title says, is there a way to do so?
Thanks in advance

Syntax: Select all
from core import PLATFORM
import memory
from memory import Convention
from memory import DataType
from memory.hooks import PreHook
server = memory.find_binary('server')
# UTIL_CSRadioMessage(IRecipientFilter &, int, int, char const*, char const*, char const*, char const*, char const*)
if PLATFORM == 'windows':
identifier = b'\x55\x8B\xEC\x68\x2A\x2A\x2A\x2A\x8B\x45\x08'
else:
identifier = '_Z19UTIL_CSRadioMessageR16IRecipientFilteriiPKcS2_S2_S2_S2_'
UTIL_CSRadioMessage = server[identifier].make_function(
Convention.CDECL,
[DataType.POINTER, DataType.INT, DataType.INT, DataType.STRING, DataType.STRING, DataType.STRING, DataType.STRING, DataType.STRING],
DataType.VOID
)
@PreHook(UTIL_CSRadioMessage)
def pre_radio_message(args):
if args[6] == '#Cstrike_TitlesTXT_Fire_in_the_hole':
return False
satoon101 wrote:Well, he asked for the sound not the message. I thought they added a convar for that (at least the message), but I can't seem to find it on my phone.
*Edit: found it, it's sv_ignoregrenaderadio
I remembered I created an ES addon for it: http://addons.eventscripts.com/addons/view/LooneyGrenades
Return to “Plugin Development Support”
Users browsing this forum: No registered users and 156 guests