halflife icon indicating copy to clipboard operation
halflife copied to clipboard

[BUG] Spam defuse if defusing from air

Open MPNumB opened this issue 13 years ago • 4 comments

Whenever a person isn't on ground and attempts to defuse a bomb, it spams the long and the defuse sound.

I'd recommend to block defuse start if person is in air.

MPNumB avatar Feb 17 '13 14:02 MPNumB

I assume that you're referring to CS1.6.

MrSchism avatar Feb 18 '13 05:02 MrSchism

Yes.

MPNumB avatar Feb 18 '13 07:02 MPNumB

Which OS are you encountering this on? As well, what OSes are you aware of it happening on?

MrSchism avatar Feb 18 '13 08:02 MrSchism

It was like that for ever and works on every OS. You spam defuse start. A first thing what shots in my head is: join a server with a friend, ask him to plant the bomb, set gravity to 0, type this in console "-duck;wait;+duck;wait;-duck", so you will get up from ground, aim towards the bomb and hold your use key. Now enjoy spamming the logs and defuse sound.

I'm aware of it happening on LINUX and windows servers. I'm personally am using windows XP. Not that it makes a difference though...

Check this out: https://github.com/Arkshine/CSSDK/blob/master/dlls/ggrenade.cpp As you can see, there's no onground check in C4 start use function (from line 906 to line 979). A simple way to fix this glitch is to replace line 917 to:

if( pPlayer->m_iTeam == TEAM_CT && pPlayer->pev->flags & FL_ONGROUND )

MPNumB avatar Feb 18 '13 08:02 MPNumB