Forum

> > CS2D > Scripts > glow lua
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch glow lua

9 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt glow lua

king923
User Off Offline

Zitieren
can some one make a lua script where tero glows red and counter glows blue automatic and arround the player whithout key press or command please?

thnx

alt Re: glow lua

Avo
User Off Offline

Zitieren
It's not so hard. I'll maybe make it, but later.

alt Re: glow lua

king923
User Off Offline

Zitieren
that makes all player glow yellow
thnx bolt if you have time i want players to glow like sys > Lua > Samples > Glow.lua (with glow around them) but ct blue and tero red
thnx
1× editiert, zuletzt 19.07.12 17:16:29

alt Re: glow lua

Yates
Reviewer Off Offline

Zitieren
user king923 hat geschrieben
that makes all player glow yellow

Then add:
1
2
3
4
5
if player(id,"team") == 1 then -- Terrorist
	imagecolor([imageid],255,0,0)
elseif player(id,"team") == 2 then -- Counter-Terrorist
	imagecolor([imageid],0,0,255)
end
Somewhere in the code. I have not seen the code, but you could add this on spawn.

alt Re: glow lua

king923
User Off Offline

Zitieren
yates can you see how ys > Lua > Samples > glowingplayers.lua work and edit it please?

alt Re: glow lua

MikuAuahDark
User 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
imgs = {} for id = 1,32 do imgs[id]=0 end
addhook("spawn","glowing")
function glowing(id)
	imgs[id]=image("gfx/sprites/flare2.bmp",0,0,(id+100))
	imageblend(imgs[id],1)
	imagealpha(imgs[id],0.5)
	if player(id,"team")==1 then
		imagecolor(imgs[id],255,0,0)
	elseif player(id,"team")==2 then
		imagecolor(imgs[id],0,0,255)
	elseif player(id,"team")==3 then
		imagecolor(imgs[id],255,255,255)
	end
end

addhook("die","notglow")
function notglow(id)
	if imgs[id]>0 then
		freeimage(imgs[id])
		imgs[id]=0
	end
end
1× editiert, zuletzt 21.07.12 04:17:51

alt Re: glow lua

omg
User Off Offline

Zitieren
its inefficient to keep deleting and remaking the images each death/spawn; better off doing it more like the sample
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht