• entities draw over another entity's material (texture problem)
    2 replies, posted
so i created a basic entity, nothing special except that the material is set to the combine barrier material, and it looks like... this: [t]http://i.imgur.com/g1m8jMT.jpg[/t] i tried messing with render modes, and it didnt help. EDIT: I noticed weapons look fine, but players don't: [t]http://i.imgur.com/528hccy.jpg[/t] EDIT2: I'm now 99% sure that it has to do with the combine shield material, more specifically that it has "$translucent", but if thats the case then how could it work fine on HL2?
Can you show us some code?
[QUOTE=gonzalolog;47939773]Can you show us some code?[/QUOTE] [lua]if CLIENT then function ENT:Draw() self:DrawModel(); end end[/lua] [lua]function ENT:Initialize() if SERVER then self:SetSolid(SOLID_VPHYSICS); self:PhysicsInit(SOLID_VPHYSICS); else self:SetSolid(SOLID_NONE); self:PhysicsInit(SOLID_NONE); end self:SetModel("models/erikszeug/ff_4x4.mdl"); self:SetMaterial("effects/com_shield003a"); self:SetRenderMode(RENDERMODE_NORMAL); self:SetAngles(Angle(0,0,90)); self:SetCustomCollisionCheck(true); self:EmitSound("ambient/machines/combine_shield_loop3.wav", 70, 100, 1, CHAN_AUTO); self:EmitSound("ambient/machines/combine_shield_touch_loop1.wav", 55, 100, 1, CHAN_AUTO); self:EmitSound("ambient/machines/combine_shield_touch_loop1.wav", 10, 0, 2, CHAN_AUTO); end[/lua] I'm now 99% sure that it has to do with the combine shield material, more specifically that it has "$translucent", but if thats the case then how could it work fine on HL2?
Sorry, you need to Log In to post a reply to this thread.