AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Nemesis with more from 100000000000 Health (https://forums.alliedmods.net/showthread.php?t=275733)

iLlegalzp 12-07-2015 08:39

Nemesis with more from 100000000000 Health
 
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

jimaway 12-07-2015 10:35

Re: Nemesis with more from 100000000000 Health
 
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

klippy 12-07-2015 11:04

Re: Nemesis with more from 100000000000 Health
 
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.

iLlegalzp 12-07-2015 11:39

Re: Nemesis with more from 100000000000 Health
 
Quote:

Originally Posted by KliPPy (Post 2369632)
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 ?

klippy 12-07-2015 12:07

Re: Nemesis with more from 100000000000 Health
 
Quote:

Originally Posted by iLlegalzp (Post 2369639)
...what codes i have to change ?

No one will ever know unless you provide the source code.

iLlegalzp 12-07-2015 13:46

Re: Nemesis with more from 100000000000 Health
 
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 :x


All times are GMT -4. The time now is 18:15.

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