Posts: 341
Threads: 59
Joined: Jul 2010
Reputation:
0
A car takes fire when it has vehicle health 249. Black smoke is at 250.
No, this cant be changed.
Posts: 351
Threads: 43
Joined: Jan 2010
Reputation:
0
yes i know, but i mean so that on my string it shows 0 when it blows...
Posts: 341
Threads: 59
Joined: Jul 2010
Reputation:
0
You mean like, something that sets the textdraw to 0 when vehicle has 249 or less?
If thats the case then its not possible.
Posts: 351
Threads: 43
Joined: Jan 2010
Reputation:
0
that's what i mean, so if it's impossible with floatsqroot, with what can i do it?
Posts: 351
Threads: 43
Joined: Jan 2010
Reputation:
0
you mean to *0.1 ? if yes it would show health as 75 :\
otherwise i dont know what ur talking about xD
Posts: 351
Threads: 43
Joined: Jan 2010
Reputation:
0
22.08.2010, 17:56
(
Последний раз редактировалось pmk1; 22.08.2010 в 19:32.
)
yea its getting better, but the problem is that it will show 25 health be4 it gets in fire, then sudently go down to 0 :\
you were right, i fixed it with that, thx slice
Posts: 4,878
Threads: 85
Joined: Jun 2007
Reputation:
0
adjustedhealth = (health - 250) / 7.5
if(adjustedhealth < 0) adjustedhealth = 0;
should go down smoothly from 100 (full health) to 0 (starts burning).