diff options
| author | Alexander Pickering <alexandermpickering@gmail.com> | 2017-10-09 16:20:46 -0400 |
|---|---|---|
| committer | Alexander Pickering <alexandermpickering@gmail.com> | 2017-10-09 16:20:46 -0400 |
| commit | da81a0a23a3704dd2de3ab2249496c1ad1912d1c (patch) | |
| tree | 915edc671acbb292191adad2f25f87ba26e567cf /gamemode/core/combat/cl_damage.lua | |
| parent | 497be6ff15989c7bf9de5beb138d2ef042dca6bd (diff) | |
| download | artery-da81a0a23a3704dd2de3ab2249496c1ad1912d1c.tar.gz artery-da81a0a23a3704dd2de3ab2249496c1ad1912d1c.tar.bz2 artery-da81a0a23a3704dd2de3ab2249496c1ad1912d1c.zip | |
Updated internal representation of inventories
Diffstat (limited to 'gamemode/core/combat/cl_damage.lua')
| -rw-r--r-- | gamemode/core/combat/cl_damage.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gamemode/core/combat/cl_damage.lua b/gamemode/core/combat/cl_damage.lua index 5059588..a45cb72 100644 --- a/gamemode/core/combat/cl_damage.lua +++ b/gamemode/core/combat/cl_damage.lua @@ -3,11 +3,12 @@ local drawables = {} net.Receive("art_damage_ent",function() - print("Notified of damage") + --print("Notified of damage") local who = net.ReadEntity() local dmg = net.ReadDouble() --A random vector in the entity + if not IsValid(who) then return end local aa,bb = who:WorldSpaceAABB() local mr = math.random local rx,ry,rz = mr(aa.x,bb.x),mr(aa.y,bb.y),mr(aa.z,bb.z) |
