Forum

> > CS2D > Scripts > He ball knife
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch He ball knife

2 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt He ball knife

Pamoon
User Off Offline

Zitieren
Dear guys, i have a problems, strip knife to He Grenades...
When attack with knife, then spaw a He or Snowball to enemy or ahead. Of course: infinity he.
Like this:
1
2
3
4
5
6
7
addhook("attack","attack")
function attack(id)
	if player(id,"weapon") == 50 then
		parse("strip "..id.." 75")
	end

end
Bad Eng.

alt Re: He ball knife

Rainoth
Moderator Off Offline

Zitieren
Your code doesn't do that in the least.

1
2
3
4
5
6
addhook("attack","boom")
function boom(id)
	if player(id,"weapontype")==50 then
		parse("spawnprojectile "..id.." 51 "..player(id,"x").." "..player(id,"y").." 350 "..player(id,"rot"))
	end
end

If you want accurate distance you'll have to use reqcld to get the position of your cursor and then calculate the distance between it and you.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht