[CSGO] CBaseGrenade::BounceSound() offset

Please post any questions about developing your plugin here. Please use the search function before posting!
User avatar
VinciT
Senior Member
Posts: 331
Joined: Thu Dec 18, 2014 2:41 am

[CSGO] CBaseGrenade::BounceSound() offset

Postby VinciT » Wed Mar 25, 2020 3:38 am

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?
ImageImageImageImageImage
User avatar
VinciT
Senior Member
Posts: 331
Joined: Thu Dec 18, 2014 2:41 am

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

Postby VinciT » Wed Mar 25, 2020 4:24 pm

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
ImageImageImageImageImage

Return to “Plugin Development Support”

Who is online

Users browsing this forum: No registered users and 18 guests