Raised This Month: $99 Target: $400
 24% 

[CS] Scoreboard Defusekits Manager


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Server Management       
Natsheh
Veteran Member
Join Date: Sep 2012
Old 10-12-2020 , 16:17   [CS] Scoreboard Defusekits Manager
Reply With Quote #1

Description:- Well basically its a small plugin which will add a cvar/fix to showing the defuse kits in the scoreboard.


Cvar:- mp_scoreboard_showdkits (default value: 2)

following values has the following effects.

0. will Disable showing it to everyone.
  1. will enable showing CT Defuse kits to everyone ( current default behaviour )
  2. will show it to teammates only!
  3. will show it to yourself only!


CHANGE LOG :-
Code:
v1.0: released.
v1.1: Fixed a bug which was preventing the whole scoreboard attributes from showing depending to the cvar.
Attached Files
File Type: sma Get Plugin or Get Source (cs_scoreboard_defusekits.sma - 42 views - 1.3 KB)
__________________
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Last edited by Natsheh; 10-13-2020 at 12:31.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
Shadows Adi
AlliedModders Donor
Join Date: Aug 2019
Location: Romania
Old 10-13-2020 , 07:34   Re: [CS] Scoreboard Defusekits Manager
Reply With Quote #2

This already exists in reHLDS's reGameDLL.

You've forgot to set the message.
__________________

Last edited by Shadows Adi; 10-13-2020 at 07:35.
Shadows Adi is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 10-13-2020 , 12:30   Re: [CS] Scoreboard Defusekits Manager
Reply With Quote #3

Quote:
Originally Posted by Shadows Adi View Post
This already exists in reHLDS's reGameDLL.

You've forgot to set the message.

I don't know and i don't care if its already exists in reHLDS/reGameDLL, I always like to stick to the original game source. and this a fix which will be helpful for the one who running the regular HLDS engine.
__________________
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Last edited by Natsheh; 10-13-2020 at 12:30.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 10-13-2020 , 13:41   Re: [CS] Scoreboard Defusekits Manager
Reply With Quote #4

Maybe something stupid and small, but the most logic thing to do is to make cvar option 1 as default, as this is also implented in CS:GO.

Also i agree on focusing on the original game source.
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
tarsisd2
Veteran Member
Join Date: Feb 2016
Location: brazil
Old 10-13-2020 , 14:18   Re: [CS] Scoreboard Defusekits Manager
Reply With Quote #5

Quote:
Originally Posted by Natsheh View Post
I don't know and i don't care if its already exists in reHLDS/reGameDLL, I always like to stick to the original game source. and this a fix which will be helpful for the one who running the regular HLDS engine.
is anyone still using regular HLDS engine?
tarsisd2 is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 10-13-2020 , 14:41   Re: [CS] Scoreboard Defusekits Manager
Reply With Quote #6

Quote:
Originally Posted by tarsisd2 View Post
is anyone still using regular HLDS engine?
i'd for sure.
__________________
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
Shadows Adi
AlliedModders Donor
Join Date: Aug 2019
Location: Romania
Old 10-13-2020 , 15:32   Re: [CS] Scoreboard Defusekits Manager
Reply With Quote #7

Quote:
Originally Posted by Natsheh View Post
I don't know and i don't care if its already exists in reHLDS/reGameDLL, I always like to stick to the original game source. and this a fix which will be helpful for the one who running the regular HLDS engine.
Ok, I agree this, but...

Quote:
Originally Posted by Shadows Adi View Post
You've forgot to set the message.
__________________
Shadows Adi is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 10-13-2020 , 17:28   Re: [CS] Scoreboard Defusekits Manager
Reply With Quote #8

Quote:
Originally Posted by Shadows Adi View Post
Ok, I agree this, but...
What do you mean with that?

If you mean the fix that's why I released v1.1
__________________
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
csykosoma
Member
Join Date: Dec 2011
Old 10-13-2020 , 22:47   Re: [CS] Scoreboard Defusekits Manager
Reply With Quote #9

User MPNumB has created a similar plugin that blocks the c4 ghosting of counter-terrorist. In his plugin, there are several other edge cases to detect. MPNumB I believe have the highest level iq.

https://forums.alliedmods.net/showthread.php?p=1087396
csykosoma is offline
Shadows Adi
AlliedModders Donor
Join Date: Aug 2019
Location: Romania
Old 10-14-2020 , 01:14   Re: [CS] Scoreboard Defusekits Manager
Reply With Quote #10

Quote:
Originally Posted by Natsheh View Post
What do you mean with that?

If you mean the fix that's why I released v1.1
So... after you get a message, you need to set it's value, for example:

These are valid bitsum values
CstrikeDatas.h
PHP Code:
#define SCOREATTRIB_DEAD            (1<<0)
#define SCOREATTRIB_BOMB            (1<<1)
#define SCOREATTRIB_DEFUSEKIT        (1<<3)
#define SCOREATTRIB_VIP            (1<<4) 
after you know these values, you need to set the argument value after getting argument value:
PHP Code:
set_msg_arg_int(2ARG_BYTESCOREATTRIB_DEFUSEKIT    
__________________

Last edited by Shadows Adi; 10-14-2020 at 01:19.
Shadows Adi 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 15:38.


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