AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   New Plugin Submissions (https://forums.alliedmods.net/forumdisplay.php?f=26)
-   -   CSDM - Display (for Deathmatch Plugins) (https://forums.alliedmods.net/showthread.php?t=165216)

sake 08-20-2011 15:38

CSDM - Display (for Deathmatch Plugins)
 
20 Attachment(s)
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/?dm=8ION
http://imagehost.gamerone.net/?pm=8IONhttp://imagehost.gamerone.net/?pm=8ION

sake

Arkshine 08-20-2011 15:40

Re: killdeathdisplay (for Deathmatch Plugins)
 
Removed AMXX file, you are not allowed to upload compiled plugins. Also, "Get Plugin" is here for that.

sake 08-20-2011 15:40

Re: killdeathdisplay (for Deathmatch Plugins)
 
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...

bibu 08-20-2011 17:23

Re: Kill/Death on HUD (for Deathmatch Plugins)
 
Just use channel -1.

sake 08-20-2011 17:44

Re: Kill/Death on HUD (for Deathmatch Plugins)
 
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?

sake 08-21-2011 14:14

Re: CSDM - Display (for Deathmatch Plugins)
 
Updated some stuff that was not working.

Gam3ronE 08-21-2011 19:36

Re: CSDM - Display (for Deathmatch Plugins)
 
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...

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

ConnorMcLeod 08-21-2011 19:55

Re: CSDM - Display (for Deathmatch Plugins)
 
register_message(get_user_msgid("RoundTime"), "block");

Ever heard about set_msg_block ?

Gam3ronE 08-21-2011 20:32

Re: CSDM - Display (for Deathmatch Plugins)
 
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

sake 08-22-2011 12:19

Re: CSDM - Display (for Deathmatch Plugins)
 
Quote:

Originally Posted by ConnorMcLeod (Post 1538035)
register_message(get_user_msgid("RoundTime"), "block");

Ever heard about set_msg_block ?

Uhm. No. Will fix this :P.

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.

Exolent[jNr] 08-22-2011 12:23

Re: CSDM - Display (for Deathmatch Plugins)
 
Quote:

Originally Posted by sake (Post 1538524)
Somebody knows a way to create a own channel?

No, but you can use DHUD and have 8 channels.

sake 08-22-2011 19:19

Re: CSDM - Display (for Deathmatch Plugins)
 
Hmmm. But DHUD doesn't make me choose which channel I want, but that's part of the functionality I need, because I want to override the already existing stats display.

sake 09-02-2011 06:14

Re: CSDM - Display (for Deathmatch Plugins)
 
Is there hope that this plugin will be approved?

HardZone 09-02-2011 06:31

Re: CSDM - Display (for Deathmatch Plugins)
 
If your going to use normal hud messages, then I would use Sync Huds.

bOeM 09-18-2011 12:49

Re: CSDM - Display (for Deathmatch Plugins)
 
When you fix this plugin?

sake 09-18-2011 16:13

Re: CSDM - Display (for Deathmatch Plugins)
 
It never has been broken. But yes, I think I will do it soon :).

sake 09-19-2011 05:49

Re: CSDM - Display (for Deathmatch Plugins)
 
@bOeM: If you meant SyncHuds, they work now :).

sake 09-24-2011 04:27

Re: CSDM - Display (for Deathmatch Plugins)
 
1 Attachment(s)
About the paintballmod. Try this one. I removed the stuff that removed some hudstuff in there.

sake 10-19-2011 17:17

Re: CSDM - Display (for Deathmatch Plugins)
 
Just a reminder: Has been updated quite a time ago.

luki1412 05-12-2012 12:44

Re: CSDM - Display (for Deathmatch Plugins)
 
1 Attachment(s)
Dont want to revive old thread, but this plugin is cool and is missing something. I mean, it works but this is not K/D but S/D because it shows score not kills. Also it's not in the middle of the screen. I think it should be written in full lenght SCORE/DEATHS and you should add cvar for color change. I edited yours to like I want it...

Grammaton Dimi Cleric 05-23-2012 15:37

Re: CSDM - Display (for Deathmatch Plugins)
 
Thanks.Very good plug.

sake 08-11-2012 04:55

Re: CSDM - Display (for Deathmatch Plugins)
 
Quote:

Originally Posted by luki1412 (Post 1707451)
Dont want to revive old thread, but this plugin is cool and is missing something. I mean, it works but this is not K/D but S/D because it shows score not kills. Also it's not in the middle of the screen. I think it should be written in full lenght SCORE/DEATHS and you should add cvar for color change. I edited yours to like I want it...

Thanks :). I will add your version to the top posting.

luki1412 08-12-2012 11:52

Re: CSDM - Display (for Deathmatch Plugins)
 
Maybe you can make version with only Kills and Deaths... or cvar for both... just suggestion

like... amx_displayit 1 - shows Kills/Deaths
amx_displayit 2 - shows Score/Deaths
amx_displayit 0 - this will display nothing

also ...
amx_displaycolor "255 255 255" - shows Score/deaths in this color

I know that DM are not used with bombs and hostages, but there are other plugins which can give you score points and they will not be kills so the title is inaccurate...

sake 09-16-2012 07:02

Re: CSDM - Display (for Deathmatch Plugins)
 
Hmm okay I hopefully have the time to look into that during the next week :)


All times are GMT -4. The time now is 06:36.

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