mirror of
https://github.com/lifestorm/wnsrc.git
synced 2025-12-17 05:43:46 +03:00
Upload
This commit is contained in:
19
lua/entities/npc_vj_hlr2_com_elite/init.lua
Normal file
19
lua/entities/npc_vj_hlr2_com_elite/init.lua
Normal file
@@ -0,0 +1,19 @@
|
||||
--[[
|
||||
| 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/
|
||||
--]]
|
||||
|
||||
AddCSLuaFile("shared.lua")
|
||||
include('shared.lua')
|
||||
/*-----------------------------------------------
|
||||
*** Copyright (c) 2012-2023 by DrVrej, All rights reserved. ***
|
||||
No parts of this code or any of its contents may be reproduced, copied, modified or adapted,
|
||||
without the prior written consent of the author, unless otherwise indicated for stand-alone materials.
|
||||
-----------------------------------------------*/
|
||||
ENT.Model = {"models/combine_super_soldier.mdl"} -- The game will pick a random model from the table when the SNPC is spawned | Add as many as you want
|
||||
ENT.StartHealth = 100
|
||||
34
lua/entities/npc_vj_hlr2_com_elite/shared.lua
Normal file
34
lua/entities/npc_vj_hlr2_com_elite/shared.lua
Normal file
@@ -0,0 +1,34 @@
|
||||
--[[
|
||||
| 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_hlr2_com_soldier"
|
||||
ENT.Type = "ai"
|
||||
ENT.PrintName = "Overwatch Elite"
|
||||
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(5,4.5,0)
|
||||
local size = 12
|
||||
local col = Color(255,0,0)
|
||||
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)
|
||||
render.DrawSprite(glowOrigin, size, size, col)
|
||||
render.DrawSprite(glowOrigin, size, size, col)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user