Forum

> > CS2D > Scripts > Zombie Skins
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Zombie Skins

5 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Zombie Skins

NanuPlayer
User Off Offline

Zitieren
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

alt Re: Zombie Skins

Unknown_Cheater
User Off Offline

Zitieren
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

alt Re: Zombie Skins

Mami Tomoe
User Off Offline

Zitieren
@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!
2× editiert, zuletzt 09.05.21 12:48:31
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht