Raised This Month: $109 Target: $400
 27% 

Grenade/C4 Fixes & Hud Enhancement


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Technical/Development        Approver:   Arkshine (91)
MPNumB
Veteran Member
Join Date: Feb 2007
Location: Lithuania
Old 11-11-2011 , 09:47   Grenade/C4 Fixes & Hud Enhancement
Reply With Quote #1

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:
  1. When bomb is planted in water it will explode if not defused, instead of resulting in an infinite round.
  2. Bomb cannot be moved by movable objects any longer.
  3. Bomb cannot explode and be defused at the same time anymore.
  4. Silent defuse by pressing use key twice, or using knife secondary attack, or activating flashlight is no longer possible.
  5. Defuse cannot be started from air - log stays clean.
  6. Bomb cannot squeeze itself through objects, to be planted outside the map.
  7. "Counter-Terrorists win" sound doesn't overwrite "Bomb has been defused" one.
  8. At new round reload isn't canceled if you have the bomb.
  9. When dropped from large distance, bomb location on radar is accurate.
  10. Secondary attack cancels the defuse.
Grenade Fixes:
  1. Grenades have reasonable velocities when breaking glass.
  2. Flash grenades exploded underwater can blind players on land, and the opposed way around.
  3. Underwater explosions have ability to damage players who are on land.
  4. Grenades cannot squeeze themselves out of map.
Other Fixes:
  1. When disconnecting from a server where bomb was planted, and connecting into your non-bomb objective server, round timer is present anyway.
  2. 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).
  3. BarTime (loading bar) is canceled for spectators when planter or defuser dies.
  4. BarTime (loading bar) is canceled when switching weapons during defuse or bomb plant.
HUD Changes:
  1. If bomb is planted, round timer shows seconds remaining until detonation.
  2. Condition-Zero style c4 scenario icon near round timer when bomb is planted.
  3. Silver defuse kit icon when bomb isn't planted, when planted - green.
  4. Defuse kit icon is blinking in red and green when defusing without a kit.
  5. Red defuse kit icon when defusing with a kit.
  6. While planting the bomb, c4 icon is red.
  7. Silver buyzone icon when buytime passed.
Other Features:
  1. Angle of planted bomb is the same as planter had when planting.
  2. 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.
Attached Files
File Type: sma Get Plugin or Get Source (grenade_c4_fixes_hud_enhancement.sma - 1677 views - 52.9 KB)
__________________
Skill and no annoying bugs with fixed balance issues is my goal!
My approved plugins what don't show up in Approved List:
* Bomb/Death/CSS Radar
* HotVision
___
Need help? Please check this documentation first.

Last edited by MPNumB; 01-08-2018 at 12:39.
MPNumB is offline
Send a message via Skype™ to MPNumB
kramesa
Veteran Member
Join Date: Feb 2011
Location: Brazil
Old 11-11-2011 , 11:20   Re: Grenade/C4 Fixes & Hud Enhancement
Reply With Quote #2

Cool
__________________
kramesa is offline
BeasT
Senior Member
Join Date: Apr 2007
Location: Lithuania
Old 11-11-2011 , 16:20   Re: Grenade/C4 Fixes & Hud Enhancement
Reply With Quote #3

Another solid plugin by MPNumB. Nice.
BeasT is offline
Send a message via Skype™ to BeasT
EDUTz
Senior Member
Join Date: Jun 2010
Location: Dracula's Homeland
Old 11-18-2011 , 12:25   Re: Grenade/C4 Fixes & Hud Enhancement
Reply With Quote #4

my server crashes when defusing cs 1.6
EDUTz is offline
Vlamis
Junior Member
Join Date: Jun 2010
Old 11-18-2011 , 15:44   Re: Grenade/C4 Fixes & Hud Enhancement
Reply With Quote #5

Quote:
Originally Posted by EDUTz View Post
my server crashes when defusing cs 1.6
have the same problem
Vlamis is offline
FOUTA
Senior Member
Join Date: Nov 2010
Location: Lebanon
Old 11-20-2011 , 09:39   Re: Grenade/C4 Fixes & Hud Enhancement
Reply With Quote #6

ok i havent tested it yet but it seems cool, dont you get tired of yourself releasing these bug fixs?? lol

anyway did you fix this bug:
when defusing the bomb and you switch to your primary weapon or secondary one, and you move, the defusing bar remains on the screen
is it fixed?
__________________
www.cstuts.tk
Everything you might for Counter Strike
FOUTA is offline
MPNumB
Veteran Member
Join Date: Feb 2007
Location: Lithuania
Old 11-21-2011 , 07:42   Re: Grenade/C4 Fixes & Hud Enhancement
Reply With Quote #7

Quote:
Originally Posted by EDUTz View Post
my server crashes when defusing cs 1.6
Quote:
Originally Posted by Vlamis View Post
have the same problem
I need some more information:
  1. What OS you guys are using Linux or Windows?
  2. Does it crashes the server on other operational system (hlds please)?
  3. Server crashes when starting the defuse?
  4. Server crashes somewhere in the middle of defuse?
  5. Server crashes at the end of defuse?
  6. Does server crashes always, or only when there are people spectating the defuser in first person?

---


Quote:
Originally Posted by FOUTA View Post
ok i havent tested it yet but it seems cool, dont you get tired of yourself releasing these bug fixs?? lol

anyway did you fix this bug:
when defusing the bomb and you switch to your primary weapon or secondary one, and you move, the defusing bar remains on the screen
is it fixed?
Nah, I like fixing unbalanced stuff. Anti-doubleduck plugin was a big fail in my opinion. Am not aware of this bug - as far as I know, bar goes away by itself. However it may stay there for spectators. If that's what you mean - fixed.

// EDIT:

P.S. Sorry for delayed reply.
__________________
Skill and no annoying bugs with fixed balance issues is my goal!
My approved plugins what don't show up in Approved List:
* Bomb/Death/CSS Radar
* HotVision
___
Need help? Please check this documentation first.

Last edited by MPNumB; 11-21-2011 at 07:54.
MPNumB is offline
Send a message via Skype™ to MPNumB
FOUTA
Senior Member
Join Date: Nov 2010
Location: Lebanon
Old 11-21-2011 , 09:03   Re: Grenade/C4 Fixes & Hud Enhancement
Reply With Quote #8

heres what i am talking about

as you can see i was defusing the bomb, i switched to my secondary weapon and steped back, the bar remains there, but then it goes away,
__________________
www.cstuts.tk
Everything you might for Counter Strike
FOUTA is offline
MPNumB
Veteran Member
Join Date: Feb 2007
Location: Lithuania
Old 11-21-2011 , 10:46   Re: Grenade/C4 Fixes & Hud Enhancement
Reply With Quote #9

Quote:
Originally Posted by FOUTA View Post
heres what i am talking about

as you can see i was defusing the bomb, i switched to my secondary weapon and steped back, the bar remains there, but then it goes away,
Nice find. Also same thing with when planting c4... Weird, I clearly remember times, when bartime was canceled when switching weapons. Well, one way or an other, am currently working on a fix. Am already like 99% done. However wont publish the update until I'll get some info on that crash, or until I wont find that info myself.

// EDIT:

Ok, included that fix and it seems to work properly. However like I said, will try to get more info on that crash.

// EDIT2:

This version is for those who are interested in helping me to find out more information on that crash. However you still can use it as normal one, due to bug-fix of not canceled bartime when switching weapons when defusing or planting the bomb (just if you do it for this purpose, make sure you set "gc4fhe_debug" cvar to 0 in your server cfg). Also I've added more support for when you pause the plugin. If you are experiencing crashes with 1.0 version, please download 1.1beta, and leave that cvar ("gc4fhe_debug") at 1, and after crash, check your latest logs in "addons/amxmodx/logs" and post them here or PM me privately - it will provide useful information, thanks to what I can fix the crash issue. If requested, I'll add credit in first post and in-plugin description for your provided help.

Please note, that version in this post wont go in changelog of the plugin, once 1.1 version is released (there won't be changelog of 1.1beta in main post nor in-source-code). Also don't read in-source-code description of 1.1beta, it's identical to 1.0.

Also I must warn you, due to debug ability, plugin may and most probably will use more of your resources. However it won't be that much more, to critical.
Attached Files
File Type: sma Get Plugin or Get Source (grenade_c4_fixes_hud_enhancement_v1.1beta.sma - 848 views - 52.0 KB)
__________________
Skill and no annoying bugs with fixed balance issues is my goal!
My approved plugins what don't show up in Approved List:
* Bomb/Death/CSS Radar
* HotVision
___
Need help? Please check this documentation first.

Last edited by MPNumB; 11-21-2011 at 11:56.
MPNumB is offline
Send a message via Skype™ to MPNumB
FOUTA
Senior Member
Join Date: Nov 2010
Location: Lebanon
Old 11-21-2011 , 15:42   Re: Grenade/C4 Fixes & Hud Enhancement
Reply With Quote #10

thank you for implementing that bug
__________________
www.cstuts.tk
Everything you might for Counter Strike
FOUTA is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:11.


Powered by vBulletin®
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Theme made by Freecode