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.


All times are GMT -4. The time now is 22:43.

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