Raised This Month: $51 Target: $400
 12% 

CSDM - Display (for Deathmatch Plugins)


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Statistical       
sake
Senior Member
Join Date: Jul 2011
Old 08-20-2011 , 15:38   CSDM - Display (for Deathmatch Plugins)
Reply With Quote #1

Hello there,

I think I have something useful for you guys. The plugin removes the Roundtimer from the HUD and prints the current Kills and Deaths at this location. I recommend to use it with noobjectives (from VEN, maybe with some modifications because it removes the Timer, too. We don't need the same thing twice) and with a Roundendblocking Plugin. It also removes the money HUD Icon.

Using Instructions:

Try to find a channel hud channel, that works for you. Every hud message that is being sent (statsx, Announcements, etc.) could mess up the display. So use a channel that isn't used or not used that often.

Requirements:

- Engine
- any AMXModX Version
- for Paintballmod: use fixed paintballmod version below. Replace the old paintballmod.amxx with this one. (Thx @ Graham for telling me about this problem)

Credits:

- VEN for some Code from noobjectives
- Arkshine (help with the hud stuff)
- HardZone (telling me about SyncHuds)

Changelog:

- 1.0 (initial Release)
- 1.1 (introduced SyncHud support, removed old hudmessages)
- 1.1 version from luki1412 added. (Score/Death instead of K/D)

Picture (thx@Graham):


http://imagehost.gamerone.net/?pm=8ION

sake
Attached Files
File Type: sma Get Plugin or Get Source (csdmdisplay.sma - 1543 views - 1.7 KB)
File Type: sma Get Plugin or Get Source (paintballmod_fix.sma - 1426 views - 18.2 KB)
File Type: sma Get Plugin or Get Source (csdmsake_score.sma - 1290 views - 1.7 KB)
__________________

Last edited by sake; 08-11-2012 at 04:59.
sake is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-20-2011 , 15:40   Re: killdeathdisplay (for Deathmatch Plugins)
Reply With Quote #2

Removed AMXX file, you are not allowed to upload compiled plugins. Also, "Get Plugin" is here for that.
__________________
Arkshine is offline
sake
Senior Member
Join Date: Jul 2011
Old 08-20-2011 , 15:40   Re: killdeathdisplay (for Deathmatch Plugins)
Reply With Quote #3

Ok. Sorry about that. And another thing: I didn't comment the code because I don't think it is neccessary (only few lines).

EDIT:

I will add a CVAR for the channel that we have to use.

EDIT2:

Done.

EDIT3:

Grml. There are quite big conflicts with other plugins that use hudmessages...
__________________

Last edited by sake; 08-20-2011 at 17:06.
sake is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 08-20-2011 , 17:23   Re: Kill/Death on HUD (for Deathmatch Plugins)
Reply With Quote #4

Just use channel -1.
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
sake
Senior Member
Join Date: Jul 2011
Old 08-20-2011 , 17:44   Re: Kill/Death on HUD (for Deathmatch Plugins)
Reply With Quote #5

The problem with that is that I show the hudmessage for 120sec to reduce load. And then the text is over the previous one.

EDIT:

Added some extra Functionality to the plugin. Now removes useless Money Display. Renamed it.

EDIT2:

about channel == -1:

I could do this but I would have to reset the HUD via ResetHUD, and by doing so I would kill all the HUD messages, that are displayed, right?
__________________

Last edited by sake; 08-20-2011 at 18:38.
sake is offline
sake
Senior Member
Join Date: Jul 2011
Old 08-21-2011 , 14:14   Re: CSDM - Display (for Deathmatch Plugins)
Reply With Quote #6

Updated some stuff that was not working.
__________________
sake is offline
Gam3ronE
SourceMod Donor
Join Date: Aug 2010
Old 08-21-2011 , 19:36   Re: CSDM - Display (for Deathmatch Plugins)
Reply With Quote #7

Great idea here mate well done, very good job.

I'm using it on my GunGame server and Paintball which is also currently CSDM style.

Edit: Here's a screenshot for you...


Last edited by Gam3ronE; 08-21-2011 at 20:14. Reason: Added a Screenshot
Gam3ronE is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 08-21-2011 , 19:55   Re: CSDM - Display (for Deathmatch Plugins)
Reply With Quote #8

register_message(get_user_msgid("RoundTime"), "block");

Ever heard about set_msg_block ?
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Gam3ronE
SourceMod Donor
Join Date: Aug 2010
Old 08-21-2011 , 20:32   Re: CSDM - Display (for Deathmatch Plugins)
Reply With Quote #9

In Real Paintball Mod, it didn't remove the timer but did add the HUD message. Works fine in GunGame though.
Here's the PB Mod: http://forums.alliedmods.net/showthread.php?p=695730
Gam3ronE is offline
sake
Senior Member
Join Date: Jul 2011
Old 08-22-2011 , 12:19   Re: CSDM - Display (for Deathmatch Plugins)
Reply With Quote #10

Quote:
Originally Posted by ConnorMcLeod View Post
register_message(get_user_msgid("RoundTime"), "block");

Ever heard about set_msg_block ?
Uhm. No. Will fix this .

Problem about this:
Sharing a HUD channel with other stuff sucks. Somebody knows a way to create a own channel?

@Graham:
Will look into that, too.
__________________

Last edited by sake; 08-22-2011 at 12:22.
sake is offline
Reply



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 07:15.


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