need some insight: hl2 mod, random zombie skins at runtime

Grab your favourite IDE and tinker with the innards of game engines

need some insight: hl2 mod, random zombie skins at runtime

Postby hobodefcon on Mon Mar 19, 2012 2:14 am

I realize this is probably not the best approach to making random zombie skins, but for the sake of learning, I'll try to stick with this as long as possible. The idea is to have each Classic zombie spawned cycle through skins when they spawn at runtime. So far I have a static interger in the base zombie class that is incremented in the npc_zombie.cpp. Based on the static integer, it precaches a specific mdl in the spawn function and sets that mdl to the zombie. The mdls themselves were clones of the classic zombie in the hl2/source content gcf, recompiled with the qc file edited to work with different vtfs.

In my test map, the zombies spawn with different skins, however, they dont move anywhere. They will look at the player and rotate, but wont move towards the player. Also, there are sparks above the zombies, which I assume is a debug thing. On top of that, when I kill a zombie, it ragdolls fine, but the second zombie I kill will take on the skin of the first one that died for some reason. Any thoughts? Thanks.
hobodefcon
Just Joined
Just Joined
 
Joined: Mon Mar 19, 2012 1:54 am

Return to Programming

Who is online

Users browsing this forum: No registered users