This commit is contained in:
2026-06-15 22:58:58 +03:00
commit 6b294fc220
2010 changed files with 185745 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
--this was made to remain compatible with unofficial stuff, consider moving to new method!
AddCSLuaFile()
include("mwb_shelleject.lua")
local oldInit = EFFECT.Init
function EFFECT:Init(data)
local shellstr = data:GetEntity().Shell
self.Model = shellstr.Model
self.Force = shellstr.Force
self.Scale = shellstr.Scale
self.Offset = shellstr.Offset || Vector()
self.m_TouchSound = shellstr.Sound
oldInit(self, data)
end
function EFFECT:EmitSurfaceSound(tr)
self:EmitSound(self.m_TouchSound)
end