Maybe something wrong with class? I watch in vj base and not find npc class. In vj code npc use strings as class (don't fully understand how it work). I just do this:
[CODE]ENT.m_fMaxYawSpeed = 240
ENT.m_iClass = CLASS_ZOMBIE
AccessorFunc( ENT, "m_iClass", "NPCClass" )
AccessorFunc( ENT, "m_fMaxYawSpeed", "MaxYawSpeed" )[/CODE]
Very interesting. If i not set npc class and add this in enemy find code in entity "checking":
[CODE]if(TEMP_NPC:IsNPC()&&string.sub(TEMP_NPC:GetClass(),1,10)!="npc_kfmod_"&&TEMP_NPC:Classify()!=CLASS_ZOMBIE) then
self:AddEntityRelationship(TEMP_NPC,D_HT,99)
TEMP_NPC:AddEntityRelationship(self,D_HT,99)
end[/CODE]
npc fight with Alyx and no crushes...wtf?
Sorry, you need to Log In to post a reply to this thread.