Forum

> > CS2D > Scripts > regenerate?
Forums overviewCS2D overview Scripts overviewLog in to reply

English regenerate?

7 replies
To the start Previous 1 Next To the start

old regenerate?

FironteS
User Off Offline

Quote
an script where counter terrorist regenerate your hp?

old Re: regenerate?

Rainoth
Moderator Off Offline

Quote
Use search function in forum or file archive. You didn't read the guidelines, did you..?

old Re: regenerate?

Alistaire
User Off Offline

Quote
1
2
3
4
5
6
7
8
9
addhook('second', '_secondHook')

function _secondHook()
	for _, id in pairs(player(0, 'team2living')) do
		if player(id, 'health') < player(id, 'maxhealth') then
			parse('sethealth '..id..' '..(player(id, 'health') + 1))
		end
	end
end

old Re: regenerate?

Alpha Beta
User Off Offline

Quote
It loops through the team2living table, which contains the IDs of all living CTs.

old Re: regenerate?

Pseudon
User Off Offline

Quote
I think he wants à script to make the CTs be able to act like doctors.
Quote
counter terrorist regenerate your hp?
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview