Forum

> > CS2D > Scripts > can i make max health bigger
Forums overviewCS2D overview Scripts overviewLog in to reply

English can i make max health bigger

20 replies
Page
To the start Previous 1 2 Next To the start

old Re: can i make max health bigger

Jela331
User Off Offline

Quote
It would be better if the limit is still 250HP.
If it was unlimited, most of kids/angry admins would abuse it.
Soo, don't even think about it.

old Re: can i make max health bigger

Kantos
BANNED Off Offline

Quote
no i need just like to 999 no more i see one script got with zombies like 7000 hp :d


Bobakrome for u maybe inpossible i bilieve

old Re: can i make max health bigger

Bobakrome
User Off Offline

Quote
No, Its really impossible the max limit is 250 HP for Players, but max npc(zombie,headcrab, etc.) can be max 999,999 I think, if u want do that go in editor then when u make map and put a env_npc then u can set its hp -.-

old Re: can i make max health bigger

Kantos
BANNED Off Offline

Quote
lol its not in npc zombie is in zombie mod its possible but u dnt know how and me

i ll try open thats zmmbie script and try find out how if no one hlp me

old Re: can i make max health bigger

Glix
User Off Offline

Quote
He mean that he seed 7000hp zm in zombie plague script. Yes is possible, but you need for that script. With official commands max is 250.

old Re: can i make max health bigger

Bobakrome
User Off Offline

Quote
Aaaaa, why didn't he told me that was in zombie plague , well the health can be infinitely if its scripted like in zm but i thinked he meant about command

P.S:

Spoiler >


Edit--

user Kantos has written
lol its not in npc zombie is in zombie mod its possible but u dnt know how and me

i ll try open thats zmmbie script and try find out how if no one hlp me


Woah u edited i didn't know sorry

old Re: can i make max health bigger

Glix
User Off Offline

Quote
For boba
Spoiler >

old Re: can i make max health bigger

Infinite Rain
Reviewer Off Offline

Quote
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Max_HP = 1000

HP_ID = {}
for k = 1, 32 do
	HP_ID[k] = Max_HP
end

addhook('hit', 'HP_Hit')
function HP_Hit(id, source, weapon, hpdmg, apdmg)
	if HP_ID[id] > 100 then
		HP_ID[id] = HP_ID[id] - hpdmg
		parse('hudtxt2 '..id..' 1 "Health: '.. HP_ID[id] ..'" 100 400 0')
		return 1
	else
		HP_ID[id] = HP_ID[id] - hpdmg
		parse('hudtxt2 '..id..' 1 "Health: '.. HP_ID[id] ..'" 100 400 0')
	end
end

addhook('spawn', 'HP_Spawn')
function HP_Spawn(id)
	HP_ID[id] = Max_HP
	parse('hudtxt2 '..id..' 1 "Health: '.. HP_ID[id] ..'" 100 400 0')
end

here you are

old Re: can i make max health bigger

Alistaire
User Off Offline

Quote
That's like 1 fucking easy thing to do. First you must declare a variable[id] and then place how much health it has.

After that you should use addhook('hit','hithook') and make the hpdmg hit the variable[id] instead of the player.

old Re: can i make max health bigger

Infinite Rain
Reviewer Off Offline

Quote
user Alistaire has written
That's like 1 fucking easy thing to do. First you must declare a variable[id] and then place how much health it has.

After that you should use addhook('hit','hithook') and make the hpdmg hit the variable[id] instead of the player.

I already made one
To the start Previous 1 2 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview