mirror of
https://github.com/lifestorm/wnsrc.git
synced 2025-12-16 21:33:46 +03:00
39 lines
1.4 KiB
Lua
39 lines
1.4 KiB
Lua
--[[
|
|
| This file was obtained through the combined efforts
|
|
| of Madbluntz & Plymouth Antiquarian Society.
|
|
|
|
|
| Credits: lifestorm, Gregory Wayne Rossel JR.,
|
|
| Maloy, DrPepper10 @ RIP, Atle!
|
|
|
|
|
| Visit for more: https://plymouth.thetwilightzone.ru/
|
|
--]]
|
|
|
|
ENT.Base = "npc_vj_human_base"
|
|
ENT.Type = "ai"
|
|
ENT.PrintName = "Civil Protection"
|
|
ENT.Author = "DrVrej"
|
|
ENT.Contact = "http://steamcommunity.com/groups/vrejgaming"
|
|
ENT.Purpose = "Spawn it and fight with it!"
|
|
ENT.Instructions = "Click on the spawnicon to spawn it."
|
|
ENT.Category = "Half-Life Resurgence"
|
|
|
|
if CLIENT && GetConVar("vj_hlr2_combine_eyeglow"):GetInt() == 1 then
|
|
local mat = Material("sprites/light_glow02_add")
|
|
local vecOrigin = Vector(3.6,6.75,1.7)
|
|
local size = 8
|
|
local col = Color(118,236,110)
|
|
function ENT:CustomOnDraw()
|
|
local bone = self:LookupBone("ValveBiped.Bip01_Head1")
|
|
local pos,ang = self:GetBonePosition(bone)
|
|
local glowOrigin = pos + ang:Forward() * vecOrigin.x + ang:Right() * vecOrigin.y + ang:Up() * vecOrigin.z
|
|
|
|
render.SetMaterial(mat)
|
|
for i = 1, 2 do
|
|
if i == 2 then
|
|
glowOrigin = pos + ang:Forward() * vecOrigin.x + ang:Right() * vecOrigin.y + ang:Up() * -vecOrigin.z
|
|
end
|
|
render.DrawSprite(glowOrigin, size, size, col)
|
|
render.DrawSprite(glowOrigin, size, size, col)
|
|
end
|
|
end
|
|
end |