Zombies Crash Server?

M

Mostlikely

Guest
Hi im new to this fourm, anyway,
Im using HL2 DM as my mod base, I fixed the ai relationship problems and can spawn zombies. However, after spawning a zombie using npc_create or trying to load my map containing them the game crashes after a second. Its not only my mod though, spawning zombies in just plain HL2 DM causes the server to crash in the same way. I followed Valves AI fix but that did help any

"Still, most part of the AI is still not suited to use in multiplayer. All calls to the functions AI_GetSinglePlayer, AI_IsSingleplayer and UTIL_GetLocalPlayer would need fixing. Also pieces of code like if ( gpGlobals->maxClients == 1) . There are over 100 calls and it's lots of work to fix this."

I tried setting the functions AI_IsSingleplayer to true and fixing the otherones to make the game think it was singleplayer if the functions were called. It didnt help any though. Has anyone gotten zombies to work in their HL2DM based mod? Or does anyone know what exactly it means to FIX these function calls. I've already wasted a week on this any help would be greatly appreciated. Thank You
 
well it took some time to figure out, I had to comment everything in npc_zombie.cpp out and then slowly comment things back in and test. But it turns out that the zombie moan is what causes it

//EmitSound( "Zombie.Idle" );
//MakeAISpookySound( 360.0f );
//m_flNextMoanSound = gpGlobals->curtime + random->RandomFloat( 1.0, 4.0 );

are the thinks i commented out
hope that helps
you making a zombie mod too?

-Mostlikely
 
Back
Top