add sborka

This commit is contained in:
2026-03-31 10:27:04 +03:00
commit f5e5f56c84
2345 changed files with 382127 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
AddCSLuaFile()
ENT.Base = "tacrp_proj_gyrojet"
ENT.PrintName = "HE Gyrojet Round"
ENT.Spawnable = false
ENT.SmokeTrail = true
ENT.FlareColor = Color(255, 200, 128, 100)
ENT.FlareLife = 0.5
function ENT:Impact(data, collider)
return false
end
function ENT:Detonate()
local attacker = self.Attacker or self:GetOwner() or self
local inflictor = attacker.GetWeapon and attacker:GetWeapon("tacrp_sd_gyrojet")
local dmg = inflictor and inflictor:GetValue("Damage_Max") or 50
if attacker:IsNPC() and !TacRP.ConVars["npc_equality"]:GetBool() then
dmg = dmg * 0.25
end
util.BlastDamage(self, attacker, self:GetPos(), 128, dmg)
local fx = EffectData()
fx:SetOrigin(self:GetPos())
fx:SetNormal(self:GetForward())
if self:WaterLevel() > 0 then
util.Effect("WaterSurfaceExplosion", fx)
else
util.Effect("HelicopterMegaBomb", fx)
end
self:EmitSound(table.Random(self.ExplodeSounds), 80, 110, 0.75)
self:Remove()
end