[ZP] Human HP Disguise
1 Attachment(s)
[ZP] Human HP Disguise 1.0 BOYSplayCS Description: When the humans HP drops below a certain amount, they will turn semi-invisible. Cvars: zp_disguise_health "35" - Determines the health needed to turn semi-invisible zp_disguise_alpha "0" - Determines the invisibility amount Credits: Exolent - Provided coding help/optimization Changelog: 4/4/09: Plugin Released (1.0) 4/4/09: Code Changed (1.0) //thanks to Exolent |
Re: [ZP] Human HP Disguise
o0o, shouldn't this be under the zp topic?
By the way, nice plugin |
Re: [ZP] Human HP Disguise
You know, I'm not so sure. I've been reading about where to post it and everything is confusing me. I think I post it here first, I am not sure at all.
Thank you :) |
Re: [ZP] Human HP Disguise
All submitted plugins should be posted here.
If it is for a certain mod that has it's own sub-forum, it will be moved if it is approved. |
Re: [ZP] Human HP Disguise
Thank you Exolent. I need some feedback for this plugin so I can get it approved. It does work for me though.
|
Re: [ZP] Human HP Disguise
Notice: View the regular version here!
|
Re: [ZP] Human HP Disguise
Okay, lets start.
1. I suggest a cvar for the visibility. 2. I don't think you need ".inc" in the #include. Code:
3. Code:
Code:
4. Code:
5. I haven't tested, but it seems like the message will be displayed every time the player is hurt after the message has shown the first time. 6. I would do it like this: Code:
Also, you can take these same suggestions for the "Normal" version. |
Re: [ZP] Human HP Disguise
I was actually in the middle of adding a cvar for the invis amount.
About the %d, that was a mistake, lol. I was rushing through it and must have accidentally typed d. I will add your suggestions, thank you :) |
Re: [ZP] Human HP Disguise
No, %d isn't the problem. %d and %i are the same. The problem is that you used "hplevel" in the formatting instead of "get_pcvar_num(hplevel)".
|
Re: [ZP] Human HP Disguise
I thought that for a cvar value you always used %i though? Guess not, thanks!
Updated |
| All times are GMT -4. The time now is 16:52. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.