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

MPNumB 11-22-2011 10:41

Re: Grenade/C4 Fixes & Hud Enhancement
 
Quote:

Originally Posted by FOUTA (Post 1600420)
thank you for implementing that bug :D

Also implanted one more thing - secondary attack cancels the defuse. But I still need the information on the crash.

FOUTA 11-22-2011 18:09

Re: Grenade/C4 Fixes & Hud Enhancement
 
i don't see what the problem is, i just installed it and tested it, it didn't crash my server, im confused :(

MPNumB 11-23-2011 05:44

Re: Grenade/C4 Fixes & Hud Enhancement
 
1 Attachment(s)
What version of OS your server is running on? Linux or WinXP?

// EDIT:

Anyway, for those who want, I've uploaded 1.1beta2 - same as 1.1beta, only added fix that secondary attack cancels the defuse. Here I will quote myself on 1.1beta just in case.
Quote:

Originally Posted by MPNumB (Post 1600242)
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.

Like I said, 1.1beta2 is the same as 1.1beta, only with exception that secondary attack cancels the defuse.

FOUTA 11-24-2011 01:49

Re: Grenade/C4 Fixes & Hud Enhancement
 
crash info sent by pm :D

MPNumB 11-24-2011 07:52

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

Originally Posted by FOUTA (Post 1601744)
crash info sent by pm :D

Thanks. However that only helped me with information that it crashes somewhere when I cancel the defuse. Not enough info. This beta5 includes almost all pre and post logs of functions what may have potential to crash the server. If by any chance it would be possible to test this one, it would be awesome.

FOUTA 11-24-2011 09:36

Re: Grenade/C4 Fixes & Hud Enhancement
 
ok i will try to test this again, however i could not do that today, im so busy atm, ill try it asap :D

MPNumB 12-18-2011 05:47

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

115 downloads reset.

FOUTA 12-18-2011 10:51

Re: Grenade/C4 Fixes & Hud Enhancement
 
thanks you numb for the update, its installed in the server and no crashes happened :D

h3h3 01-07-2012 12:16

Re: Grenade/C4 Fixes & Hud Enhancement
 
Any option to get the mod without the huds? just the fix, I like to have everything clear, as accurate_fix.

MPNumB 01-08-2012 11:00

Re: Grenade/C4 Fixes & Hud Enhancement
 
Quote:

Originally Posted by h3h3 (Post 1627397)
Any option to get the mod without the huds? just the fix, I like to have everything clear, as accurate_fix.

There's no option for that. Plus I specially made this hud change, so people would easily see what servers have this plugin (plus I'd say this hud changes add more dynamics to the gameplay in one way or an other).

bibu 01-08-2012 11:32

Re: Grenade/C4 Fixes & Hud Enhancement
 
I would also like to see a version without edited hud. It looks like it changes the whole gameplay. How about splitting it into 2 plugins? Grenade/C4 Fixes. And the other just Hud Enhancement? Would be much better IMO.

LukeyB 01-11-2012 14:11

Re: Grenade/C4 Fixes & Hud Enhancement
 
Agreed. I would use the fixes without the HUD changes.

almantsas 01-14-2012 08:50

Re: Grenade/C4 Fixes & Hud Enhancement
 
I found some bugs:
1.
Quote:

L 01/14/2012 - 13:20:12: Invalid message argument 3
L 01/14/2012 - 13:20:12: [AMXX] Run time error 10 (plugin "grenade_c4_fixes_hud_enhancement.amxx") (native "set_msg_arg_int") - debug not enabled!
L 01/14/2012 - 13:20:12: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 01/14/2012 - 13:20:18: Invalid message argument 3
L 01/14/2012 - 13:20:18: [AMXX] Run time error 10 (plugin "grenade_c4_fixes_hud_enhancement.amxx") (native "set_msg_arg_int") - debug not enabled!
L 01/14/2012 - 13:20:18: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
2. After auto swap teams it shows white defuse kit hud for terrorists.

3. Server crashing, when spectate defusing ct.

xPaw 01-22-2012 15:09

Re: Grenade/C4 Fixes & Hud Enhancement
 
I can confirm the crashes when someone is defusing the bomb. It happens randomly, and i am not sure how to exactly to reproduce it, but it looked like server was running into infinite loop.

MPNumB 01-26-2012 07:23

Re: Grenade/C4 Fixes & Hud Enhancement
 
Perfect, so crashes are still there, but no feedback what so ever (except the debug log what gives me as much information as I would gain by looking on a rock for my entire life) (how convinient).

And for the last time, I will not split up the plugin.

xPaw 01-26-2012 07:28

Re: Grenade/C4 Fixes & Hud Enhancement
 
Quote:

Originally Posted by MPNumB (Post 1638641)
Perfect, so crashes are still there, but no feedback what so ever (except the debug log what gives me as much information as I would gain by looking on a rock for my entire life) (how convinient).

And for the last time, I will not split up the plugin.

There is no debug log. it does NOT crash, it is freezing the server.

ot_207 01-26-2012 07:48

Re: Grenade/C4 Fixes & Hud Enhancement
 
Quote:

Originally Posted by xPaw (Post 1638643)
There is no debug log. it does NOT crash, it is freezing the server.

That means that this plugin is somehow creating an infinite loop.
I haven't checked the code but are you calling the same forward in a forward?

xPaw 01-26-2012 08:56

Re: Grenade/C4 Fixes & Hud Enhancement
 
Quote:

Originally Posted by ot_207 (Post 1638652)
That means that this plugin is somehow creating an infinite loop.
I haven't checked the code but are you calling the same forward in a forward?

That's not my plugin, and that's what i already said.

Quote:

Originally Posted by xPaw (Post 1636742)
it looked like server was running into infinite loop.


BeasT 01-27-2012 08:44

Re: Grenade/C4 Fixes & Hud Enhancement
 
I'm running this plugin and I did not notice any freeze type of crashes.

ot_207 02-01-2012 07:57

Re: Grenade/C4 Fixes & Hud Enhancement
 
Quote:

Originally Posted by xPaw (Post 1638677)
That's not my plugin, and that's what i already said.

Oh, didn't see that, sorry. And the question was for Numb :).

MPNumB 03-07-2012 07:11

Re: Grenade/C4 Fixes & Hud Enhancement
 
1 Attachment(s)
Sorry for long response... Well as far as I can guess, I have no idea what's causing the crashes. Most obvious case scenario is that in some cases I manually force defuse to cancel... My conclusion meanwhile is only that it crashes when player stops defusing (not when defuse is finished). Anyway, try this version and set cvar "gc4fhe_crash" to "1", what will block the manual defuse cancellation. This may cause some minor glitches, but if servers wont crash with it - than at least I'll have a clue of where to look.

Arkshine 04-03-2012 09:42

Re: Grenade/C4 Fixes & Hud Enhancement
 
Unapproved per author's request.

MPNumB 01-08-2018 12:26

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

661 downloads reset.

ArminC 02-03-2018 16:35

Re: Grenade/C4 Fixes & Hud Enhancement
 
Hi can you put only grenades fix (in a separate plugin) ? Especially "Grenades cannot squeeze themselves out of map." [Thanks]

sekac 05-18-2018 13:21

Re: Grenade/C4 Fixes & Hud Enhancement
 
How can I remove the c4 timer when the c4 is planted?

Midnight Kid 09-04-2018 12:36

Re: Grenade/C4 Fixes & Hud Enhancement
 
Quote:

Originally Posted by MPNumB (Post 2570652)
Updated to 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.

661 downloads reset.

MPNumB, why is CS closed when I shoot C4? There's the same bug with this plugin.

ExodoX 10-26-2018 02:05

Re: Grenade/C4 Fixes & Hud Enhancement
 
Amazing! ty for upd

lolerto 09-09-2019 19:19

Re: Grenade/C4 Fixes & Hud Enhancement
 
I have seen that with the plugin, the flashbang emits a wave of light, can it be deactivated?

Trivor 07-15-2020 12:46

Re: Grenade/C4 Fixes & Hud Enhancement
 
Please remove this flashlight screen. It is very bright and make people 10FPS


All times are GMT -4. The time now is 14:53.

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