HL2 Zombies and DoDS?
When I wrote scripts with EventScripts a few years ago, I tried to spawn the HL2 Zombies in a DoDS map, for fun. Well, ES couldn’t even do that without crashing, so I thought I’d try again with SourceMod.
Reading through their forums, FoxMulder, posted a video showing working HL2 Zombies in TF2 and this intrigued me. He didn’t want to share the code (understandable) so I had to start from scratch.
I tried spawning all sorts of npc_* entities, cycle* entities, monster_* entities. Most were not supported by DoDS and the rest spawned zombies that’s didn’t animate. So I had to look at a different type of entity. Prop_dynamics can do animations so I started messing around with them. Sure enough, the entities were spawned but they moved on the one spot…which is kinda hopeless! Next job was to work out how to move them along, determining their velocity and make them point towards the player. Then, once they had reached the player, to change the animation to the attack mode.
It all began to take shape.
This was the end alpha result. Still a lot of work to do but it might be usable.
I’m not sure how to insert it into L4DoD. Should it be a drop from a Zombie or should it spawn with the Grey Dude or should I create a whole new Zombie, replace the Gasman or the Emo and get him to spawn them all over the map. Unlike the bots, I am not restricted in numbers, other than CPU power. I have it set to a maximum of 64 and with the bots, my own computer chugs along, so I will have to do a lot more testing.






