Forum

> > CS2D > Scripts > Zombie Skins
Forums overviewCS2D overview Scripts overviewLog in to reply

English Zombie Skins

5 replies
To the start Previous 1 Next To the start

old Zombie Skins

NanuPlayer
User Off Offline

Quote
Hi us i want zombie skins like you can choose zombie skin when you press M then 1... i will replace terrorists with new zombies so if you can help me pls help

old Re: Zombie Skins

Unknown_Cheater
User Off Offline

Quote
1
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

old Re: Zombie Skins

Mami Tomoe
User Off Offline

Quote
@user NanuPlayer: That's because zombies only have 1 skin, it's placed in the
CS2D/gfx/npc/zombie.bmp
file.

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
look
attribute of the cs2d lua cmd player function, and spreadsheet images similar to the way @user 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
look
attribute 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.bmp
file is shared between both zombie players, and zombie NPCs!
edited 2×, last 09.05.21 12:48:31 pm
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview