Page 1 of 1

[CSGO] CBaseGrenade::BounceSound() offset

Posted: Wed Mar 25, 2020 3:38 am
by VinciT
I know it's a long shot, since they stripped the symbols from the binaries. But does anyone know the offset for this virtual function?

Re: [CSGO] CBaseGrenade::BounceSound() offset

Posted: Wed Mar 25, 2020 4:24 pm
by VinciT
Took a while, but I found it! If anyone needs the offset, add this to your CBaseGrenade.ini:

Syntax: Select all

[virtual_function]

[[bounce_sound]]
offset_linux = 240
offset_windows = 239

And here's how you'd block the flashbang bounce sound:

Syntax: Select all

# ../flash_bounce/flash_bounce.py

# Source.Python
from entities.hooks import EntityPreHook, EntityCondition


is_flashbang_projectile = EntityCondition.equals_entity_classname(
'flashbang_projectile')


@EntityPreHook(is_flashbang_projectile, 'bounce_sound')
def bounce_sound_pre(stack_data):
return False