Forum

> > CS2D > Scripts > can i make max health bigger
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch can i make max health bigger

20 Antworten
Seite
Zum Anfang Vorherige 1 2 Nächste Zum Anfang

alt Re: can i make max health bigger

Jela331
User Off Offline

Zitieren
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.

alt Re: can i make max health bigger

Kantos
BANNED Off Offline

Zitieren
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

alt Re: can i make max health bigger

Bobakrome
User Off Offline

Zitieren
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 -.-

alt Re: can i make max health bigger

Kantos
BANNED Off Offline

Zitieren
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

alt Re: can i make max health bigger

Glix
User Off Offline

Zitieren
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.

alt Re: can i make max health bigger

Bobakrome
User Off Offline

Zitieren
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 hat geschrieben
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

alt Re: can i make max health bigger

Glix
User Off Offline

Zitieren
For boba
Spoiler >

alt Re: can i make max health bigger

Infinite Rain
Reviewer Off Offline

Zitieren
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

alt Re: can i make max health bigger

Alistaire
User Off Offline

Zitieren
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.

alt Re: can i make max health bigger

Infinite Rain
Reviewer Off Offline

Zitieren
user Alistaire hat geschrieben
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
Zum Anfang Vorherige 1 2 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht