AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Grenade/C4 Fixes & Hud Enhancement (https://forums.alliedmods.net/showthread.php?t=171831)

MPNumB 11-11-2011 09:47

Grenade/C4 Fixes & Hud Enhancement
 
1 Attachment(s)
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.

kramesa 11-11-2011 11:20

Re: Grenade/C4 Fixes & Hud Enhancement
 
Cool

BeasT 11-11-2011 16:20

Re: Grenade/C4 Fixes & Hud Enhancement
 
Another solid plugin by MPNumB. Nice.

EDUTz 11-18-2011 12:25

Re: Grenade/C4 Fixes & Hud Enhancement
 
my server crashes when defusing :| cs 1.6 :|

Vlamis 11-18-2011 15:44

Re: Grenade/C4 Fixes & Hud Enhancement
 
Quote:

Originally Posted by EDUTz (Post 1598616)
my server crashes when defusing :| cs 1.6 :|

have the same problem

FOUTA 11-20-2011 09:39

Re: Grenade/C4 Fixes & Hud Enhancement
 
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?

MPNumB 11-21-2011 07:42

Re: Grenade/C4 Fixes & Hud Enhancement
 
Quote:

Originally Posted by EDUTz (Post 1598616)
my server crashes when defusing :| cs 1.6 :|

Quote:

Originally Posted by Vlamis (Post 1598708)
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 (Post 1599684)
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.

FOUTA 11-21-2011 09:03

Re: Grenade/C4 Fixes & Hud Enhancement
 
heres what i am talking about :D
http://i41.tinypic.com/icvih3.jpg
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, :P

MPNumB 11-21-2011 10:46

Re: Grenade/C4 Fixes & Hud Enhancement
 
1 Attachment(s)
Quote:

Originally Posted by FOUTA (Post 1600199)
heres what i am talking about :D
http://i41.tinypic.com/icvih3.jpg
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, :P

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.

FOUTA 11-21-2011 15:42

Re: Grenade/C4 Fixes & Hud Enhancement
 
thank you for implementing that bug :D


All times are GMT -4. The time now is 19:29.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.