

addhook("spawn","spawn") function spawn(id) if player(id,"team")==1 and player(id,"look")==1 then id1=image("gfx/files/zombie.bmp",2,1,200+id) -- freeimage(id) end end
CS2D/mods/...
CS2D/gfx/npc/zombie.bmpfile.
lookattribute of the
lookattribute is indexed at 0, rather than 1 (which goes against all known laws for Lua scripting), which means it's 0 to 3, rather than 1 to 4.
CS2D/gfx/npc/zombie.bmpfile is shared between both zombie players, and zombie NPCs!