Raised This Month: $ Target: $400
 0% 

Max Helth per user - TFC Q


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
NomadCF
Member
Join Date: Oct 2006
Old 10-31-2006 , 11:37   Max Helth per user - TFC Q
Reply With Quote #1

This might sound dumb, but is there away to find what a users MAX health is ? By MAX health I mean the most life they can get before the server will start to reduce there life due to it being over X amount.

I know I could just hard code in the values for each class, but I was wondering if there was a way to just get the "know" MAX per user. (I'm trying NOT to make this a TFC only plugin)



Back info on TFC (for those who don't know):
In TFC your Class starts out with X life, This value differs from class to class. And if your life is over X then the system will reduce your life 1 point per sec. Until it reachs X again.

Last edited by NomadCF; 10-31-2006 at 13:08.
NomadCF is offline
Send a message via AIM to NomadCF
jRaven
AMX Mod X Beta Tester
Join Date: Jan 2006
Location: IA, USA
Old 10-31-2006 , 12:05   Re: Max Helth per class - TFC Q
Reply With Quote #2

I don't have an answer for you. But, in NeoTF, if you use "addhealth" your health is set to around 2000(?) points or so. It doesn't fade with time, but it does go from 255 to 0 several times as you lose the health from damage. The HUD seems to only reflect 0-255, but the value seems to be able to go much higher.
jRaven is offline
Send a message via ICQ to jRaven Send a message via AIM to jRaven
Silencer123
Veteran Member
Join Date: Jul 2006
Old 10-31-2006 , 14:26   Re: Max Helth per user - TFC Q
Reply With Quote #3

Sven Coop supports Health, Armor and Ammo to be displayed correctly from 0 to 999.
All other Games do this from 0 to 255.
__________________
EAT YOUR VEGGIES
Silencer123 is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 10-31-2006 , 15:38   Re: Max Helth per user - TFC Q
Reply With Quote #4

You could try checking EV_FL_max_health/pev_max_health. They might be set properly.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Silencer123
Veteran Member
Join Date: Jul 2006
Old 11-01-2006 , 07:29   Re: Max Helth per user - TFC Q
Reply With Quote #5

What ever you do. Do not set a Players Health/Armor/Ammo over the Limits.
Also, do not set a Players Health under 1, or their Armor or Ammo under 0.
For example, in Sven Cooperative you can crash a Clients Game by setting his
Health to 5000. I figured this out when playing with Entity Mod.
(Players look at you, type "entmod_keyvalue health 5000" in Console and your game crashes)
:O
__________________
EAT YOUR VEGGIES
Silencer123 is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:54.


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