Forum
CS2D Scripts Zombie SkinsZombie Skins
5 replies 1
1
2
3
4
5
6
7
2
3
4
5
6
7
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
mods/test/gfx/player/t1
CS2D/mods/...
CS2D/gfx/npc/zombie.bmpfile.
If you want to change it, I recommend using mods, also, you can only have 1 skin through that menu.
Though, with enough Lua knowledge, you can use the
lookattribute of the player function, and spreadsheet images similar to the way @ Unknown_Cheater did them, but even then, on the team menu, you'd still only see the default skin, and you'd not naturally know which skin you're getting, until you choose it.
Note: 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.
EDIT:
Note that the
CS2D/gfx/npc/zombie.bmpfile is shared between both zombie players, and zombie NPCs!
edited 2×, last 09.05.21 12:48:31 pm
1