Grenade/C4 Fixes & Hud Enhancement
Posted: Tue Nov 23, 2021 9:21 am
Description:
This plugin is designed to fix variety of grenade and c4 related bugs, while introducing some amount of hud improvements and editions.
Bomb Fixes:
When bomb is planted in water it will explode if not defused, instead of resulting in an infinite round.
Bomb cannot be moved by movable objects any longer.
Bomb cannot explode and be defused at the same time anymore.
Silent defuse by pressing use key twice, or using knife secondary attack, or activating flashlight is no longer possible.
Defuse cannot be started from air - log stays clean.
Bomb cannot squeeze itself through objects, to be planted outside the map.
"Counter-Terrorists win" sound doesn't overwrite "Bomb has been defused" one.
At new round reload isn't canceled if you have the bomb.
When dropped from large distance, bomb location on radar is accurate.
Secondary attack cancels the defuse.
Grenade Fixes:
Grenades have reasonable velocities when breaking glass.
Flash grenades exploded underwater can blind players on land, and the opposed way around.
Underwater explosions have ability to damage players who are on land.
Grenades cannot squeeze themselves out of map.
Other Fixes:
When disconnecting from a server where bomb was planted, and connecting into your non-bomb objective server, round timer is present anyway.
After playing a map with built-in echo system, echo glitch is fixed (however client must have s_eax set to 0 for it to work).
BarTime (loading bar) is canceled for spectators when planter or defuser dies.
BarTime (loading bar) is canceled when switching weapons during defuse or bomb plant.
HUD Changes:
If bomb is planted, round timer shows seconds remaining until detonation.
Condition-Zero style c4 scenario icon near round timer when bomb is planted.
Silver defuse kit icon when bomb isn't planted, when planted - green.
Defuse kit icon is blinking in red and green when defusing without a kit.
Red defuse kit icon when defusing with a kit.
While planting the bomb, c4 icon is red.
Silver buyzone icon when buytime passed.
Other Features:
Angle of planted bomb is the same as planter had when planting.
Flashbangs and he-grenades have a light effect when exploding.
Requires:
FakeMeta
HamSandWich
Additional info:
Tested in Counter-Strike 1.6 with amxmodx 1.8.2 (dev build hg21). Should also work in Condition-Zero.
Credits:
Special thanks to Arkshine for Counter-Strike SDK, and for providing other useful information! Thanks to xPaw for method of fixing "bomb has been defused" sound as well - method taken from his "The bomb has been defused" plugin. Also thanks to FOUTA for providing help by testing the plugin on live public server.
Change-Log:
* 1.2
- Fixed: Crash when stopping the defuse.
- Fixed: Error log due to client message.
- Fixed: Custom team switching will now remove defuser kit icon at player hud update.
- Fixed: Freezetime was not added to buytime - grey buy icon earlier than it should be.
- Added: Compatibility with mission scenario plugin. Basically just auto-changes the cvar.
* 1.1
- Added: Secondary attack now cancels the defuse.
- Added: BarTime (loading bar) is canceled when switching weapons during defuse or bomb plant.
- Fixed: Pausing the plugin is now more friendly.
* 1.0
- First release.
get plugin
This plugin is designed to fix variety of grenade and c4 related bugs, while introducing some amount of hud improvements and editions.
Bomb Fixes:
When bomb is planted in water it will explode if not defused, instead of resulting in an infinite round.
Bomb cannot be moved by movable objects any longer.
Bomb cannot explode and be defused at the same time anymore.
Silent defuse by pressing use key twice, or using knife secondary attack, or activating flashlight is no longer possible.
Defuse cannot be started from air - log stays clean.
Bomb cannot squeeze itself through objects, to be planted outside the map.
"Counter-Terrorists win" sound doesn't overwrite "Bomb has been defused" one.
At new round reload isn't canceled if you have the bomb.
When dropped from large distance, bomb location on radar is accurate.
Secondary attack cancels the defuse.
Grenade Fixes:
Grenades have reasonable velocities when breaking glass.
Flash grenades exploded underwater can blind players on land, and the opposed way around.
Underwater explosions have ability to damage players who are on land.
Grenades cannot squeeze themselves out of map.
Other Fixes:
When disconnecting from a server where bomb was planted, and connecting into your non-bomb objective server, round timer is present anyway.
After playing a map with built-in echo system, echo glitch is fixed (however client must have s_eax set to 0 for it to work).
BarTime (loading bar) is canceled for spectators when planter or defuser dies.
BarTime (loading bar) is canceled when switching weapons during defuse or bomb plant.
HUD Changes:
If bomb is planted, round timer shows seconds remaining until detonation.
Condition-Zero style c4 scenario icon near round timer when bomb is planted.
Silver defuse kit icon when bomb isn't planted, when planted - green.
Defuse kit icon is blinking in red and green when defusing without a kit.
Red defuse kit icon when defusing with a kit.
While planting the bomb, c4 icon is red.
Silver buyzone icon when buytime passed.
Other Features:
Angle of planted bomb is the same as planter had when planting.
Flashbangs and he-grenades have a light effect when exploding.
Requires:
FakeMeta
HamSandWich
Additional info:
Tested in Counter-Strike 1.6 with amxmodx 1.8.2 (dev build hg21). Should also work in Condition-Zero.
Credits:
Special thanks to Arkshine for Counter-Strike SDK, and for providing other useful information! Thanks to xPaw for method of fixing "bomb has been defused" sound as well - method taken from his "The bomb has been defused" plugin. Also thanks to FOUTA for providing help by testing the plugin on live public server.
Change-Log:
* 1.2
- Fixed: Crash when stopping the defuse.
- Fixed: Error log due to client message.
- Fixed: Custom team switching will now remove defuser kit icon at player hud update.
- Fixed: Freezetime was not added to buytime - grey buy icon earlier than it should be.
- Added: Compatibility with mission scenario plugin. Basically just auto-changes the cvar.
* 1.1
- Added: Secondary attack now cancels the defuse.
- Added: BarTime (loading bar) is canceled when switching weapons during defuse or bomb plant.
- Fixed: Pausing the plugin is now more friendly.
* 1.0
- First release.
get plugin