AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   Server Hud Logo (https://forums.alliedmods.net/showthread.php?t=179878)

ReFlexPoison 03-06-2012 23:40

Server Hud Logo
 
27 Attachment(s)
Server Hud Logo

Description:
Add a custom hud logo for everyone to see. I saw other gaming communities using logos like this so I thought I'd create it for the public with more customization. The logo will appear on spawn. Supports team colors based off of Team Fortress's red and blue

https://forums.alliedmods.net/pictur...pictureid=1155

Click here for many color codes.
Click here for hex to RGB converter.
Control Variables:
  • sm_logo_enabled (default: 1) Enable/Disable the plugin
Version Log:
  • Version 2.2
    • Added configuration file to permit using multiple logos
    • Removed control variables and replaced them with the config
  • Version 2.1.1
    • Hopefully fixed invalid timer handle errors
  • Version 2.1
    • Now supports all supported games without throwing errors
    • Fixed bug with bots spamming errors before map start
    • Made team colors less eye straining
  • Version 2.0.1
    • Fixed memory leaks
    • Returns an error if a specific game doesn't support hud text
  • Version 2.0
    • Completely re-optimized code
    • Changed infinite setting for sm_logo_holdtime
    • Now clears logo from screen on player death
  • Version 1.1+
    • Added changeable effects
    • Allows custom position of screen logo (SetHudTextParams X and Y values)
    • Added choice of color based on RGB values. Editted by TnTSCS
  • Version 1.0
    • Initial Release
Installation:
1) Add the files included in this post to their folders relative to sourcemod/addons
  • serverlogo.smx to plugins
  • serverlogo.cfg to configs
Known Bugs:
  • All Hud effects may not work in every supported game. (Not yet compatible)
Special Thanks:
  • TnTSCS
My Plugins
intox Gaming

341464 03-07-2012 00:56

Re: Server Logo
 
Hm, it looks like a really simple plugin, but wait, is timer really necessary?

loranger 03-07-2012 04:16

Re: Server Logo
 
interesting

dharma_bum 03-07-2012 04:37

Re: Server Logo
 
cool, I'll give it a spin. I know this was intended to be very barebones and simple but any thoughts on getting a small image to appear?

your plugin has suddenly inspired me to picture a little logo from my steam group on the server. a brand if you will.

anyways...just a thought

Bacardi 03-07-2012 10:52

Re: Server Logo
 
This ShowHudText works HL2MP also

dharma_bum 03-07-2012 15:07

Re: Server Logo
 
Quote:

Originally Posted by ReFlexPoison (Post 1664457)
No, I'm just a basic scripter. Took me a few days to get this to work by the forums. I don't think a picture would work only because the function only supports text. However, if you are testing it out, make sure the server works properly. My server has been buggy lately, I don't know if it is the plugin causing it.

Yea I about two days ago went back and reinstalled/reconfigured everything on my server, and didn't notice anything wrong when I tested it last night. I'll let you know if it does do something, but I think your bugs aren't related to this.

My only two things are that I use a custom HUD so the ad is overlapped and I'd like it to be a different color.

The custom HUD thing I'm not stuck on, because 90% of tf2 players use the basic one, but if there was an easy way to make it where you could set a location (in some number based system) that would be nice.

And the color, again, I don't know anything about scripting but I just don't like green that much. Team color or something else would be a cool option.

341464 03-07-2012 15:25

Re: [TF2 | HL2MP] Server Logo
 
I think Team Color should be possible.
GetClientTeam, 1 = white, 2 = red, 3 = blue
that'd be cool
though the plugin is targeted on multi targets

dharma_bum 03-07-2012 18:06

Re: [TF2 | HL2MP] Server Logo
 
Okay so its fine and all, and no bugs, but it seems like it gets covered up in...ctf. But probably payload and all the rest too.

341464 03-08-2012 04:23

Re: [TF2 | HL2MP] Server Logo
 
Quote:

Originally Posted by ReFlexPoison (Post 1664601)
Well I suppose I will ask the forums for assistance. Like I said, I am a very nooby scripter. If you want to attempt to edit the code, I will add your name to the "Thanks To:" In all honesty I need all the help I can. :)

Well, I'm a noobish coder too, I'm not sure how to do it on multi targets, but I'll try.

ReFlexPoison 03-08-2012 09:18

Re: [TF2 | HL2MP] Server Logo
 
Quote:

Originally Posted by 341464 (Post 1664810)
Well, I'm a noobish coder too, I'm not sure how to do it on multi targets, but I'll try.

I released a version where you can change the color for yourself if you would like to use that.


All times are GMT -4. The time now is 14:30.

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