Adrian,

That actually was the reason why NPCs didn't hate each other. I worked
backwards from there to fix it...

Thanks a lot :)

Gerald

Adrian Finol wrote:

Is your gamerules initializing relationships correctly?

Check CHalfLife2::InitDefaultAIRelationships in hl2_gamerules.cpp to see
how HL2 does it.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Gerald
Sent: Saturday, December 04, 2004 4:21 PM
To: [EMAIL PROTECTED]
Subject: [hlcoders] NPCs acting differently

Hi

I'm trying to get NPCs to work in a multiplayer mod. What I've done use
use the single player code and run it with a net_start, sv_lan 1,
maxplayers 10 before starting the map. Players join fine, but NPCs just
sit there.

I worked out that it is the maxplayers variable that changes how NPCs
behave. As soon as it's bigger then 1, NPCs just stop working properly.

Also, NPCs obey the npc_go, etc commands just fine with any maxplayer
value.

I've trolled through the NPC code and the AI code, but can't find the
particular thing that changes this logic.

Any ideas?

Thanks,
Gerald


_______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders




_______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders







_______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders



Reply via email to