Raised This Month: $ Target: $400
 0% 

Nemesis with more from 100000000000 Health


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
iLlegalzp
Member
Join Date: Dec 2015
Location: Burgas
Old 12-07-2015 , 08:39   Nemesis with more from 100000000000 Health
Reply With Quote #1

Hi, I use ZPA 1.6.1 and i want the nemesis to have more HP from 100000000000 i wrote 100000000000 in the cfg file but when i became a nemesis i got auto-slay :X

Last edited by iLlegalzp; 12-07-2015 at 08:39.
iLlegalzp is offline
Send a message via Skype™ to iLlegalzp
jimaway
Heeeere's Jimmy!
Join Date: Jan 2009
Location: Estonia
Old 12-07-2015 , 10:35   Re: Nemesis with more from 100000000000 Health
Reply With Quote #2

2,147,483,647 is the max value that a 32 bit integer can hold. if you want more health than that you have to add some health back when some damage is taken until desired amount is given
jimaway is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 12-07-2015 , 11:04   Re: Nemesis with more from 100000000000 Health
Reply With Quote #3

Health is actually a float in game code.
When setting health through set_user_health(), you're limited to an int32, but if you do it through set_pev() or entity_set_float(), I am sure it would work, as they accept a float value, which has much greater bounds.

Last edited by klippy; 12-07-2015 at 11:05.
klippy is offline
iLlegalzp
Member
Join Date: Dec 2015
Location: Burgas
Old 12-07-2015 , 11:39   Re: Nemesis with more from 100000000000 Health
Reply With Quote #4

Quote:
Originally Posted by KliPPy View Post
Health is actually a float in game code.
When setting health through set_user_health(), you're limited to an int32, but if you do it through set_pev() or entity_set_float(), I am sure it would work, as they accept a float value, which has much greater bounds.
You explained it good but the problem is there so i don't know good pawn would you tell me what codes i have to change ?
iLlegalzp is offline
Send a message via Skype™ to iLlegalzp
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 12-07-2015 , 12:07   Re: Nemesis with more from 100000000000 Health
Reply With Quote #5

Quote:
Originally Posted by iLlegalzp View Post
...what codes i have to change ?
No one will ever know unless you provide the source code.

Last edited by klippy; 12-07-2015 at 12:07.
klippy is offline
iLlegalzp
Member
Join Date: Dec 2015
Location: Burgas
Old 12-07-2015 , 13:46   Re: Nemesis with more from 100000000000 Health
Reply With Quote #6

Before users from this forum are helped me from private things and if i upload the code they will be angry. Here is the default ZPA code [ http://pastebin.com/R1s6izjx ] when you click on this link you will see the ZPA default code and you will see it and after this you will tell me what parts in my ZPA code i have to change


PS: Sorry for my bad English
__________________

Last edited by iLlegalzp; 12-07-2015 at 13:46.
iLlegalzp is offline
Send a message via Skype™ to iLlegalzp
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 18:15.


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