Forum

> > CS2D > Scripts > Script Terrorists Hidden
Forums overviewCS2D overview Scripts overviewLog in to reply

English Script Terrorists Hidden

2 replies
To the start Previous 1 Next To the start

old Re: Script Terrorists Hidden

Rainoth
Moderator Off Offline

Quote
It is impossible to hide players.
There's semi-solutions though.

One would be to manipulate player armor, but I can see how it couldn't work with multiple players.

Another one would be to set tile image on terrorists. Since images can be player ID'd, you wouldn't get a problem but it still won't hide the player perfectly.

That's two solutions that don't work 100% but ye... they're there...

old Re: Script Terrorists Hidden

GeoB99
Moderator Off Offline

Quote
As user Rainoth said, you cannot hide a specific player completely unless you're giving them the Stealth suit for example but that won't hide 100% but it does the job a bit.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
function HideT(id)
	if player(id, "team") == 1 then
		return "84"
	end
end

Items = {79, 80, 81, 82, 83}

function walkover_(id, iid, type)
	if player(id, "team") == 1 then
		for _, i in pairs(Items) do
			if type == i then
				return 1
			end
		end
	end
end

addhook("spawn","HideT")
addhook("walkover","walkover_")
I've additionally added from 7 to 17 line an extra snippet of code to prevent Terrorists to pick up any armour on the ground, depending on the map, you can check Items ID reference in CS2D website.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview