Forum

> > CS2D > Scripts > 1HP and knife
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch 1HP and knife

5 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt 1HP and knife

Moogurn
BANNED Off Offline

Zitieren
How to make so that all came with 1 HP and only knife?
INFO
On all maps.

alt Re: 1HP and knife

Rainoth
Moderator Off Offline

Zitieren
1
2
3
4
5
6
7
addhook("startround","_sr")
function _sr(mode)
	for _,id in pairs (player(0,"tableliving")) do
		parse("sethealth "..id.." 1")
		parse("strip "..id)
	end
end

Does not prevent acquiring weapons after round starts. Does not prevent healing after round starts. Does not work on modes where knife is not default weapon (for example 'Zombies').

alt Re: 1HP and knife

Hajt
User Off Offline

Zitieren
or simply
1
2
3
4
5
addhook("spawn","myspawnhook")
function myspawnhook(id)
	parse("sethealth "..id.." 1")
	return "x"
end

alt Re: 1HP and knife

Yates
Reviewer Off Offline

Zitieren
Use setmaxhealth instead. This would fix issues with there being bandages or any other type of healing item, entity or armour on a map.
1× editiert, zuletzt 25.01.16 14:49:54

alt Re: 1HP and knife

Rainoth
Moderator Off Offline

Zitieren
Wasn't sure if it worked with weapons carried from last round so used my method to write it. If it works too, use user Hajt's code.

alt Mode for basic

Paulo49
User Off Offline

Zitieren
1
2
3
4
5
addhook("spawn","_knifemode")
function _knifemode(id)
parse("sethealth "..id.." 1")
parse("strip "..id.."")
end
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht