This commit is contained in:
lifestorm
2024-08-04 23:12:27 +03:00
parent 8064ba84d8
commit 9c918c46e5
7081 changed files with 2173485 additions and 14 deletions

View File

@@ -0,0 +1,50 @@
--[[
| 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-2021 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/spitball_small.mdl","models/spitball_medium.mdl","models/spitball_medium.mdl"} -- The models it should spawn with | Picks a random one from the table
ENT.DoesRadiusDamage = true -- Should it do a blast damage when it hits something?
ENT.RadiusDamageRadius = 70 -- How far the damage go? The farther away it's from its enemy, the less damage it will do | Counted in world units
ENT.RadiusDamage = 20 -- How much damage should it deal? Remember this is a radius damage, therefore it will do less damage the farther away the entity is from its enemy
ENT.RadiusDamageUseRealisticRadius = true -- Should the damage decrease the farther away the enemy is from the position that the projectile hit?
ENT.RadiusDamageType = DMG_ACID-- Damage type
ENT.DoesDirectDamage = true -- Should it do a direct damage when it hits something?
ENT.DirectDamage = 10 -- How much damage should it do when it hits something
ENT.DirectDamageType = DMG_ACID -- Damage type
ENT.DecalTbl_DeathDecals = {"VJ_AcidSlime1"}
ENT.SoundTbl_Idle = {"vj_acid/acid_idle1.wav"}
ENT.SoundTbl_OnCollide = {"vj_acid/acid_splat.wav"}
---------------------------------------------------------------------------------------------------------------------------------------------
function ENT:CustomOnThink()
end
function ENT:CustomOnInitialize()
ParticleEffectAttach("antlion_spit_trail",PATTACH_ABSORIGIN_FOLLOW,self,0)
ParticleEffect("antlion_spit",self:GetPos(),Angle(0,0,0),nil)
end
function ENT:CustomPhysicsObjectOnInitialize(phys)
phys:Wake()
phys:SetBuoyancyRatio(0)
phys:EnableDrag(false)
end
function ENT:DeathEffects(data,phys)
util.VJ_SphereDamage(self,self,self:GetPos(),340,10,DMG_NERVEGAS,true,true)
ParticleEffect("antlion_spit",data.HitPos,Angle(0,0,0),nil)
ParticleEffect("antlion_gib_01",data.HitPos,Angle(0,0,0),nil)
ParticleEffect("antlion_gib_02_floaters", data.HitPos, Angle(0,0,0), nil)
ParticleEffect("antlion_gib_01_juice", data.HitPos, Angle(0,0,0), nil)
end

View File

@@ -0,0 +1,26 @@
--[[
| 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.Type = "anim"
ENT.Base = "obj_vj_projectile_base"
ENT.PrintName = "Corrosive Projectie"
ENT.Author = "Random72638"
ENT.Contact = "http://steamcommunity.com/groups/vrejgaming"
ENT.Information = "It's a projectile type weapon"
ENT.Category = "Yo Mama"
if (CLIENT) then
local Name = "Corrosive Projectile"
local LangName = "obj_vj_corrosive_proj"
language.Add(LangName, Name)
killicon.Add(LangName,"HUD/killicons/default",Color(255,80,0,255))
language.Add("#"..LangName, Name)
killicon.Add("#"..LangName,"HUD/killicons/default",Color(255,80,0,255))
end