AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   New Plugin Submissions (https://forums.alliedmods.net/forumdisplay.php?f=26)
-   -   [CS] Scoreboard Defusekits Manager (https://forums.alliedmods.net/showthread.php?t=327834)

Natsheh 10-12-2020 16:17

[CS] Scoreboard Defusekits Manager
 
1 Attachment(s)
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.



Servers are using this plugin...

Shadows Adi 10-13-2020 07:34

Re: [CS] Scoreboard Defusekits Manager
 
This already exists in reHLDS's reGameDLL.

You've forgot to set the message.

Natsheh 10-13-2020 12:30

Re: [CS] Scoreboard Defusekits Manager
 
Quote:

Originally Posted by Shadows Adi (Post 2721173)
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.

Napoleon_be 10-13-2020 13:41

Re: [CS] Scoreboard Defusekits Manager
 
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.

tarsisd2 10-13-2020 14:18

Re: [CS] Scoreboard Defusekits Manager
 
Quote:

Originally Posted by Natsheh (Post 2721200)
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? :shock:

Natsheh 10-13-2020 14:41

Re: [CS] Scoreboard Defusekits Manager
 
Quote:

Originally Posted by tarsisd2 (Post 2721212)
is anyone still using regular HLDS engine? :shock:

i'd for sure.

Shadows Adi 10-13-2020 15:32

Re: [CS] Scoreboard Defusekits Manager
 
Quote:

Originally Posted by Natsheh (Post 2721200)
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 (Post 2721173)
You've forgot to set the message.


Natsheh 10-13-2020 17:28

Re: [CS] Scoreboard Defusekits Manager
 
Quote:

Originally Posted by Shadows Adi (Post 2721220)
Ok, I agree this, but...

What do you mean with that?

If you mean the fix that's why I released v1.1

csykosoma 10-13-2020 22:47

Re: [CS] Scoreboard Defusekits Manager
 
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

Shadows Adi 10-14-2020 01:14

Re: [CS] Scoreboard Defusekits Manager
 
Quote:

Originally Posted by Natsheh (Post 2721234)
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    



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

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