aboutsummaryrefslogtreecommitdiff
path: root/gamemode/core/clienteffects/cl_effects.lua
blob: d51cf7dbc6565bb005f053b12ab7589613e2fb83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
local effects = {}
effects["weapon_blocked"] = function()
	util.ScreenShake( LocalPlayer():GetPos(), 3, 3, 0.25, 100 )
end

net.Receive("art_clienteffect",function()
	local effectid = net.ReadUInt(32)
	local effectname = ART.screen_effect_ids[effectid]
	print("Got effect name",effectname)
	effects[effectname]()
end)