This commit is contained in:
lifestorm
2024-08-05 18:40:29 +03:00
parent c4d91bf369
commit 324f19217d
8040 changed files with 1853423 additions and 21 deletions

View File

@@ -0,0 +1,44 @@
--[[
| 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/vj_hlr/hl2b/elitepolice.mdl"} -- The game will pick a random model from the table when the SNPC is spawned | Add as many as you want
ENT.StartHealth = 60
ENT.GeneralSoundPitch1 = 80
ENT.GeneralSoundPitch2 = 80
---------------------------------------------------------------------------------------------------------------------------------------------
function ENT:CustomOnTakeDamage_BeforeDamage(dmginfo, hitgroup)
if dmginfo:IsBulletDamage() then
if self.HasSounds == true && self.HasImpactSounds == true then VJ_EmitSound(self, "vj_impact_metal/bullet_metal/metalsolid"..math.random(1,10)..".wav", 70) end
if math.random(1, 3) == 1 then
dmginfo:ScaleDamage(0.50)
local spark = ents.Create("env_spark")
spark:SetKeyValue("Magnitude","1")
spark:SetKeyValue("Spark Trail Length","1")
spark:SetPos(dmginfo:GetDamagePosition())
spark:SetAngles(self:GetAngles())
spark:SetParent(self)
spark:Spawn()
spark:Activate()
spark:Fire("StartSpark", "", 0)
spark:Fire("StopSpark", "", 0.001)
self:DeleteOnRemove(spark)
else
dmginfo:ScaleDamage(0.80)
end
end
end

View File

@@ -0,0 +1,39 @@
--[[
| 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_civilp"
ENT.Type = "ai"
ENT.PrintName = "Civil Protection 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(3.75,7,1.75)
local size = 8
local col = Color(255,213,123)
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