Skip to content

Commit

Permalink
Admin Vladimir + misc changes
Browse files Browse the repository at this point in the history
  • Loading branch information
stants12 committed Dec 30, 2021
1 parent d2cfc06 commit 3c4e819
Show file tree
Hide file tree
Showing 34 changed files with 565 additions and 32 deletions.
6 changes: 3 additions & 3 deletions lua/autorun/vj_hlr_crack_autorun.lua
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,14 @@ if VJExists == true then
VJ.AddNPC("Soviet Grunt","npc_vj_hlrcl_sgrunt",vCat)
VJ.AddNPC("Suicide Bomber","npc_vj_hlrcl_terror",vCat)
VJ.AddNPC("Skellington","npc_vj_hlrcl_spooky",vCat)
VJ.AddNPC("The Final Boss","npc_vj_hlrcl_finalboss",vCat)
VJ.AddNPC("The Nimrod Force Fuckshit Triple Mafia Smasher of Crackheads X5000 Alpha Version 133.7","npc_vj_hlrcl_finalboss",vCat)
VJ.AddNPC("Viking Gargantua","npc_vj_hlrcl_garg_viking",vCat)
VJ.AddNPC("Zombozo","npc_vj_hlrcl_zombozo",vCat)

VJ.AddNPC("Steveman","npc_vj_hlrcl_steveman",vCat)
--VJ.AddNPC("Guardchav","npc_vj_hlrcl_guardchav",vCat)
--VJ.AddNPC("Admin Vladimir","npc_vj_hlrcl_vlad",vCat)
--VJ.AddNPC("Blackscary","npc_vj_hlrcl_blackscary",vCat)
VJ.AddNPC("Admin Vladimir","npc_vj_hlrcl_vlad",vCat)
--VJ.AddNPC(" ","npc_vj_hlrcl_blackscary",vCat)

-- !!!!!! DON'T TOUCH ANYTHING BELOW THIS !!!!!! -------------------------------------------------------------------------------------------------------------------------
AddCSLuaFile(AutorunFile)
Expand Down
111 changes: 111 additions & 0 deletions lua/entities/npc_vj_hlrcl_blackscary/init.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
AddCSLuaFile("shared.lua")
include('shared.lua')
/*-----------------------------------------------
*** Copyright (c) 2012-2019 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/cracklife/blackscary.mdl"} -- The game will pick a random model from the table when the SNPC is spawned | Add as many as you want
ENT.BloodColor = "Red" -- The blood type, this will determine what it should use (decal, particle, etc.)
ENT.CustomBlood_Particle = {"vj_hl_blood_red"}
ENT.CustomBlood_Decal = {"VJ_HLR_Blood_Red"} -- Decals to spawn when it's damaged
ENT.VJ_NPC_Class = {"CLASS_CRACKLIFE_HORROR"} -- NPCs with the same class with be allied to each other
ENT.StartHealth = 60

//ENT.HasDeathAnimation = true -- Does it play an animation when it dies?
ENT.DeathAnimationTime = 0.47 -- Time until the SNPC spawns its corpse and gets removed

ENT.SoundTbl_FootStep = {"vj_hlr/crack_fx/npc_step1.wav","vj_hlr/crack_fx/npc_step2.wav","vj_hlr/crack_fx/npc_step3.wav","vj_hlr/crack_fx/npc_step4.wav"}
ENT.SoundTbl_Idle = {"vj_hlr/crack_npc/zombie/zo_idle1.wav","vj_hlr/crack_npc/zombie/zo_idle2.wav","vj_hlr/crack_npc/zombie/zo_idle3.wav","vj_hlr/crack_npc/zombie/zo_idle4.wav"}
ENT.SoundTbl_Alert = {"vj_hlr/crack_npc/zombie/zo_alert10.wav","vj_hlr/crack_npc/zombie/zo_alert20.wav","vj_hlr/crack_npc/zombie/zo_alert30.wav"}
ENT.SoundTbl_BeforeMeleeAttack = {"vj_hlr/crack_npc/zombie/zo_attack1.wav","vj_hlr/crack_npc/zombie/zo_attack2.wav"}
ENT.SoundTbl_Pain = {"vj_hlr/crack_npc/zombie/zo_pain1.wav","vj_hlr/crack_npc/zombie/zo_pain2.wav"}
ENT.SoundTbl_Death = {"vj_hlr/crack_npc/zombie/zo_pain1.wav","vj_hlr/crack_npc/zombie/zo_pain2.wav"}
ENT.SoundTbl_MeleeAttackExtra = {"vj_hlr/crack_fx/bat_hit.wav","vj_hlr/crack_fx/bat_hit.wav","vj_hlr/crack_fx/bat_hit.wav"}

ENT.SCI_NextMouthMove = 0
ENT.SCI_NextMouthDistance = 0
ENT.SpawnHat = true
---------------------------------------------------------------------------------------------------------------------------------------------
function ENT:CustomOnAcceptInput(key, activator, caller, data)
//print(key)
if key == "event_emit step" then
self:FootStepSoundCode()
end
if key == "event_mattack right" or key == "event_mattack left" or key == "event_mattack both" then
self:MeleeAttackCode()
end
if key == "body" then
VJ_EmitSound(self, "vj_hlr/crack_fx/bodydrop.wav", 85, 100)
end
end
---------------------------------------------------------------------------------------------------------------------------------------------
--[[ mouth movement looks terrible
---------------------------------------------------------------------------------------------------------------------------------------------
function ENT:CustomOnThink()
if CurTime() < self.SCI_NextMouthMove then
if self.SCI_NextMouthDistance == 0 then
self.SCI_NextMouthDistance = math.random(50,150)
else
self.SCI_NextMouthDistance = 0
end
self:SetPoseParameter("m",self.SCI_NextMouthDistance)
else
self:SetPoseParameter("m",0)
end
end
---------------------------------------------------------------------------------------------------------------------------------------------
function ENT:OnPlayCreateSound(SoundData,SoundFile)
self.SCI_NextMouthMove = CurTime() + SoundDuration(SoundFile)
end
--]]
---------------------------------------------------------------------------------------------------------------------------------------------
function ENT:CustomGibOnDeathSounds(dmginfo,hitgroup)
VJ_EmitSound(self,"vj_hlr/crack_fx/bodysplat.wav", 90, math.random(100,100))
VJ_EmitSound(self, "vj_gib/default_gib_splat.wav", 90, math.random(100,100))
return false
end
---------------------------------------------------------------------------------------------------------------------------------------------
function ENT:CustomOnDeath_BeforeCorpseSpawned(dmginfo,hitgroup)
if self.SpawnHat == true then
self:SetBodygroup(0,1)
self:CreateGibEntity("obj_vj_gib","models/vj_hlr/cracklife/chav_bat.mdl",{BloodDecal="",Pos=self:LocalToWorld(Vector(8,-8,10)),CollideSound={""}})
self.SpawnHat = false
end
end
---------------------------------------------------------------------------------------------------------------------------------------------
function ENT:SetUpGibesOnDeath(dmginfo,hitgroup)
self.HasDeathSounds = false
if self.HasGibDeathParticles == true then
local bloodeffect = EffectData()
bloodeffect:SetOrigin(self:GetPos() +self:OBBCenter())
bloodeffect:SetColor(VJ_Color2Byte(Color(130,19,10)))
bloodeffect:SetScale(120)
util.Effect("VJ_Blood1",bloodeffect)

local bloodspray = EffectData()
bloodspray:SetOrigin(self:GetPos())
bloodspray:SetScale(8)
bloodspray:SetFlags(3)
bloodspray:SetColor(0)
util.Effect("bloodspray",bloodspray)
util.Effect("bloodspray",bloodspray)
end
self:CreateGibEntity("obj_vj_gib","models/vj_hlr/gibs/flesh1.mdl",{BloodDecal="VJ_HLR_Blood_Red",Pos=self:LocalToWorld(Vector(0,0,40))})
self:CreateGibEntity("obj_vj_gib","models/vj_hlr/gibs/flesh2.mdl",{BloodDecal="VJ_HLR_Blood_Red",Pos=self:LocalToWorld(Vector(0,0,40))})
self:CreateGibEntity("obj_vj_gib","models/vj_hlr/gibs/flesh3.mdl",{BloodDecal="VJ_HLR_Blood_Red",Pos=self:LocalToWorld(Vector(0,0,40))})
self:CreateGibEntity("obj_vj_gib","models/vj_hlr/gibs/flesh4.mdl",{BloodDecal="VJ_HLR_Blood_Red",Pos=self:LocalToWorld(Vector(0,0,40))})
self:CreateGibEntity("obj_vj_gib","models/vj_hlr/gibs/hgib_b_bone.mdl",{BloodDecal="VJ_HLR_Blood_Red",Pos=self:LocalToWorld(Vector(0,0,50))})
self:CreateGibEntity("obj_vj_gib","models/vj_hlr/gibs/hgib_b_gib.mdl",{BloodDecal="VJ_HLR_Blood_Red",Pos=self:LocalToWorld(Vector(0,0,40))})
self:CreateGibEntity("obj_vj_gib","models/vj_hlr/gibs/hgib_guts.mdl",{BloodDecal="VJ_HLR_Blood_Red",Pos=self:LocalToWorld(Vector(0,0,40))})
self:CreateGibEntity("obj_vj_gib","models/vj_hlr/gibs/hgib_hmeat.mdl",{BloodDecal="VJ_HLR_Blood_Red",Pos=self:LocalToWorld(Vector(0,0,45))})
self:CreateGibEntity("obj_vj_gib","models/vj_hlr/gibs/hgib_lung.mdl",{BloodDecal="VJ_HLR_Blood_Red",Pos=self:LocalToWorld(Vector(0,0,45))})
self:CreateGibEntity("obj_vj_gib","models/vj_hlr/gibs/hgib_legbone.mdl",{BloodDecal="VJ_HLR_Blood_Red",Pos=self:LocalToWorld(Vector(0,0,15))})
return true
end

/*-----------------------------------------------
*** Copyright (c) 2012-2019 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.
-----------------------------------------------*/
8 changes: 8 additions & 0 deletions lua/entities/npc_vj_hlrcl_blackscary/shared.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
ENT.Base = "npc_vj_hlr1_zombie"
ENT.Type = "ai"
ENT.PrintName = "Gopnik"
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"
2 changes: 1 addition & 1 deletion lua/entities/npc_vj_hlrcl_finalboss/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function ENT:CustomOnInitialize()
end
---------------------------------------------------------------------------------------------------------------------------------------------
function ENT:CustomOnAcceptInput(key,activator,caller,data)
print(key)
//print(key)
if key == "step" then
self:FootStepSoundCode()
end
Expand Down
2 changes: 1 addition & 1 deletion lua/entities/npc_vj_hlrcl_garg_viking/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function ENT:CustomOnInitialize()
end
---------------------------------------------------------------------------------------------------------------------------------------------
function ENT:CustomOnAcceptInput(key,activator,caller,data)
print(key)
//print(key)
if key == "step" then
self:FootStepSoundCode()
end
Expand Down
2 changes: 1 addition & 1 deletion lua/entities/npc_vj_hlrcl_gopnik_super/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ include('shared.lua')
-----------------------------------------------*/
ENT.Model = {"models/vj_hlr/cracklife/superchav.mdl"} -- The game will pick a random model from the table when the SNPC is spawned | Add as many as you want
ENT.HasIdleSounds = false
ENT.StartHealth = 180
ENT.StartHealth = 150

ENT.SoundTbl_Alert = {"vj_hlr/crack_npc/superchav/zo_alert10.wav","vj_hlr/crack_npc/superchav/zo_alert20.wav","vj_hlr/crack_npc/superchav/zo_alert30.wav"}
ENT.SoundTbl_BeforeMeleeAttack = {"vj_hlr/crack_npc/superchav/zo_attack1.wav","vj_hlr/crack_npc/superchav/zo_attack2.wav"}
Expand Down
2 changes: 1 addition & 1 deletion lua/entities/npc_vj_hlrcl_skrillex/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ function ENT:F_CreateAlly()
end
---------------------------------------------------------------------------------------------------------------------------------------------
function ENT:F_SpawnAlly()
-- Can have a total of 2, only 1 can be spawned at a time with a delay until another one is spawned
-- Can have a total of 3, only 1 can be spawned at a time with a delay until another one is spawned
if !IsValid(self.ChavAlly1) then
self.ChavAlly1 = self:F_CreateAlly()
return 15
Expand Down
2 changes: 1 addition & 1 deletion lua/entities/npc_vj_hlrcl_steveman/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ include('shared.lua')
ENT.Model = {"models/vj_hlr/cracklife/gman.mdl"} -- The game will pick a random model from the table when the SNPC is
---------------------------------------------------------------------------------------------------------------------------------------------
function ENT:CustomOnInitialize()
self:SetCollisionBounds(Vector(16,16,70),Vector(-16,-16,-0.5)) --0.1 fixes the bad lighting on the model
self:SetCollisionBounds(Vector(16,16,70),Vector(-16,-16,-2.5)) --0.1 fixes the bad lighting on the model
self:SetBodygroup(0,1)
self.SoundTbl_FootStep = {"vj_hlr/crack_fx/npc_step1.wav","vj_hlr/crack_fx/npc_step2.wav","vj_hlr/crack_fx/npc_step3.wav","vj_hlr/crack_fx/npc_step4.wav"}
self.SoundTbl_IdleDialogue = {"vj_hlr/crack_npc/gman/gman_nasty.wav","vj_hlr/crack_npc/gman/gman_choose1.wav","vj_hlr/crack_npc/gman/gman_choose2.wav","vj_hlr/crack_npc/gman/gman_otherwise.wav","vj_hlr/crack_npc/gman/gman_stepin.wav"}
Expand Down
Loading

0 comments on commit 3c4e819

Please sign in to comment.