Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- easylua.StartEntity("bomb")
- if SERVER then
- function ENT:Initialize()
- self:SetModel("models/props_c17/FurnitureWashingmachine001a.mdl")
- self:PhysicsInit(SOLID_VPHYSICS)
- self:StartMotionController()
- local phys = self:GetPhysicsObject()
- phys:EnableMotion(false)
- phys:EnableGravity(true)
- end
- function ENT:PhysicsSimulate(phys)
- phys:AddVelocity(self:GetUp() * 15)
- --phys:AddAngleVelocity(self:LocalToWorldAngles(self:GetAngles()):Up() * 20)
- end
- function ENT:PhysicsCollide(data)
- if data.Speed > 200 then
- self:Explode()
- end
- end
- function ENT:Explode()
- Say("DeaD")
- self:Remove()
- end
- end
- easylua.EndEntity(true, true)
Advertisement
Add Comment
Please, Sign In to add comment