• NPC Physbox
    0 replies, posted
I hope now i not posted it in wrong section. Look like my custom npc physbox work only on 1 bone, because he take damage only when i shooting in middle of him, but ragdoll of this npc work good with all collisions. I don't know what's wrong: lua code or my model! Here is init of npc: [CODE]function ENT:Initialize() self:SetModel( "models/Tripwire/Killing Floor 2/Patriarch/Patriarch.mdl" ) self:SetHullType( HULL_MEDIUM ) self:SetSolid( SOLID_VPHYSICS ) self:SetMoveType( MOVETYPE_STEP ) self:CapabilitiesAdd( CAP_MOVE_GROUND ) self:SetCollisionGroup(COLLISION_GROUP_NPC) self:SetMaxYawSpeed( 700 ) self:SetHealth(500) self:DrawShadow(true) self:AddRelationship("player D_HT 60") self:AddEFlags(EFL_NO_DISSOLVE) end[/CODE] [B][U]*After 30 minutes of unuseful time spending*[/U][/B] I replaced combine with my npc model. On combine collisions work fine...
Sorry, you need to Log In to post a reply to this thread.