Infinite Rain: just use
image with <tile:x> as path
General
Ideas for Counter-Strike 2D 0.1.2.1
Infinite Rain: just use
image with <tile:x> as path
Allows the use of more entities in a single space (e.g. several items in one square rather than spread out, several trigger_use's in one square all triggered on by different events, break a box to reveal an item underneath.. etc.).
Saves space when creating maps for certain events or instances.
Currently they don't, or there's a glitch where if the trigger is next to a func_dynwall it doesn't work.
This way breakables such as boxes can return over a period of time or walls as well.
Misho has written
Re: Ideas for Counter-Strike 2D 0.1.2.1
MikuAuahDark has written
SkullzOrig has written
SkullzOrig has written
SkullzOrig has written
SkullzOrig has written
SkullzOrig has written
Alistaire has written
DC has writtenplayerImage = {}
addhook("spawn","onSpawn")
function onSpawn(id)
	if playerImage[id] then
		freeimage(playerImage[id])
		playerImage[id] = nil
	end
	playerImage[id] = image("gfx/sprites/flare2.bmp",0,0,100+id)
end
addhook("startround","onStart")
function onStart()
	playerImage = {}
end
Starkkz: I'm glad that you mention this. I already faced that problem myself. It's actually a very crucial design problem of the Lua system in CS2D. For that reason I already implemented a new hook for the next version:
startround_prespawn
startround_prespawn
spawn
startround
Yates: The problem is I don't know how to set the weapon to player on walkover then remove id weapon from tile. And the player choses the extra weapon/equipment he wants to use when he is spectating. The problem is when he drops his extra weapon and chooses to pick up another 1 of the same weapon type.