English Zombie Skins

5 replies
Goto Page
To the start Previous 1 Next To the start
09.05.21 06:59:22 am
Up
NanuPlayer
User
Offline Off
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
Bad Life
09.05.21 11:28:59 am
Up
Unknown_Cheater
User
Offline Off
Code:
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
FUCK YOU
09.05.21 12:09:41 pm
Up
NanuPlayer
User
Offline Off
@user Unknown_Cheater: not working and the bmp in mods like

mods/test/gfx/player/t1
Bad Life
09.05.21 12:10:56 pm
Up
@user NanuPlayer: Do you want only four skins that you can select from the team menu? If so, use server mods.

CS2D/mods/...
fish
09.05.21 12:20:30 pm
Up
NanuPlayer
User
Offline Off
@user Mami Tomoe: game mode is zombies but i cant choose terrorist skins for zombies thats the problem
Bad Life
09.05.21 12:26:01 pm
Up
@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
fish
To the start Previous 1 Next To the start