• Announcements

    • Brentonator

      Forum Rules (Please Read)

      Hello everyone and welcome to the No More Room In Hell Forums! We greatly appreciate your interest and support. Please feel free to begin post and become a part of this community. But please make sure that you read and understand the following rules so things can stay as clean and as orderly as possible around here. These rules are expected to be follow by any and all members at all times. Disobeying these rules will result in disciplinary action by a moderator. #1. Off color remarks are acceptable but can be deemed inappropriate at the discretion of the moderators. #2. Flaming and disrespecting other members of this community or this mod is strictly prohibited. #3. Please do not post links relating to warez or illegal downloading. #4. No offensive content is to be posted (gore, dead babies, porn). #5. Please do not spam topics to increase your post count. #6. No excessively large signatures. Signatures that violate this will be modified. #7. Signatures are not to be used as a spamming tool. If your signature's sole purpose is to annoy or distract other members, it will be removed. #8. Please do your part to be as friendly, respectful, and helpful to anyone and everyone on this forum. #9. Your posts may be removed at any time at our sole discretion. #10. Remember the terms of your registration...a copy is posted below but may not represent the latest version of our terms of use. #11. No advertising other communities or products. Have fun.
Sign in to follow this  
Followers 0
CactusPie

[Plugin] Self health check

18 posts in this topic

A very small sourcemod plugin that allows you to check your own health. It still doesn't display the exact value too keep the immersion!

Just hold the reload button to check your health.

Specific values:

health 75-100 = Great
health 50-74 = Fine
health 25-49 = Bad

health <25 = Critical

Plugin: http://cactuspie.eu/pliki/healthdisp.smx

Source: http://cactuspie.eu/pliki/healthdisp.sp

Edited by CactusPie

Share this post


Link to post
Share on other sites

These links work fine for me. Perhaps you could try checking the directory listing: http://www.sourcemod.net/smdrop/1.6/

I can't download it. Can you PLEASE uplode the files/folders? (so that I can just download & paste them) Want to use sourcemod so bad and can't download it from anywere. Thanks in advanced!

Share this post


Link to post
Share on other sites

These links work fine for me. Perhaps you could try checking the directory listing: http://www.sourcemod.net/smdrop/1.6/

I can't download it. Can you PLEASE uplode the files/folders? (so that I can just download & paste them) Want to use sourcemod so bad and can't download it from anywere. Thanks in advanced!

Same here, the website seems to be down for me.

Share this post


Link to post
Share on other sites

Thanks a lot!!

If it's not too much to ask, can you also upload this one "mmsource-1.10.1-hg870-windows.zip" ?

Thanks again.

Share this post


Link to post
Share on other sites

I actually like not knowing your health, if you're not infected, bleeding, or have a black and white screen you're ok

Share this post


Link to post
Share on other sites

Share this post


Link to post
Share on other sites

I actually like not knowing your health, if you're not infected, bleeding, or have a black and white screen you're ok

Unleast u die from last hit.

Share this post


Link to post
Share on other sites

This actually may help some color blind players ^_^ .

SourceMod, MetamodSource, AlliedMods and many other restricts some countries like mine (Argentina) because of some dumbass retard doing senseless DDoS attacks once in the past. My only way to get their files is through proxies, and it also affects my auto update functions in srcds.

Edited by vazzY

Share this post


Link to post
Share on other sites

Hi,

First I must say i really like your health status plugin, however, I took myself the liberty to edit it a little.

The changes I made:

  • I made the text smaller since I found it to be annoyingly large.
  • I added a loaded text for the server console.
  • I changed the health statuses to be more like current gameplay (Only showing which color that your teammates sees your name in)
#pragma semicolon 1#include <sourcemod>#include <sdktools>public Plugin:myinfo = {	name = "Health display",	author = "CactusPie",	description = "Allows to check your own health.",	version = "1.0",	url = "http://cactuspie.eu/"}public OnPluginStart(){    PrintToServer("Health display by CactusPie has been loaded.");}public OnGameFrame(){	for(new i=1; i<=MaxClients; i++)	{		if(IsClientInGame(i) && IsPlayerAlive(i) && (IN_RELOAD & GetClientButtons(i)))		{			new health = GetClientHealth(i);			if(health >= 66.666)			{				SetHudTextParams(0.01, 0.01, 0.1, 0, 255, 0, 255, 0, 0.0, 0.0, 0.0);				ShowHudText(i, 50, "Health: Green");			}			else if(health >= 33.333)			{				SetHudTextParams(0.01, 0.01, 0.1, 255, 255, 0, 255, 0, 0.0, 0.0, 0.0);				ShowHudText(i, 50, "Health: Orange");			}			else			{				SetHudTextParams(0.01, 0.01, 0.1, 255, 0, 0, 255, 0, 0.0, 0.0, 0.0);				ShowHudText(i, 50, "Health: Red");			}		}	}}

/zgd

Edited by zgd

Share this post


Link to post
Share on other sites

Honestly, I think it is a bit overkill to be running that every game frame :\ A repeating timer set at a second or even half a second would have the same effect and would not be called nearly as much.

**Edit**

You could most likely use the forward OnPlayerRunCmd and check for the buttons he used; when in reload, display his health for x amount of seconds via a repeating timer.

Edited by Marcus

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0