This has been bothering me for a while and I haven’t found a solution for it yet.
Why doesn’t physics based entities emit collision sounds and effects?
I’ve followed several tutorials how to create lua entities, and none of them gets proper collision sounds.
ENT.Type = "anim" ENT.PrintName = "Test" ENT.Author = "Mornedil" ENT.Spawnable = true ENT.AdminSpawnable = false
include("shared.lua") function ENT:Draw() self.Entity:DrawModel() end
AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include("shared.lua") function ENT:Initialize() self:SetModel("models/props_vehicles/car002b.mdl") self:PhysicsInit( SOLID_VPHYSICS ) self:SetMoveType( MOVETYPE_VPHYSICS ) self:SetSolid( SOLID_VPHYSICS ) end
It feels very weird when a huge car entity falls next to me and doesn’t make a sound or shake the view.