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,40 @@
AddCSLuaFile( )
ENT.Type = "anim"
ENT.PrintName = "Ditched BF2 ZParachute"
ENT.Author = "Magenta/V92"
ENT.Spawnable = false
ENT.AdminOnly = true
function ENT:Initialize( )
self:SetModel( Model( "models/jessev92/codmw2/parachute_ground_skins.mdl" ) )
self:SetMoveType( MOVETYPE_FLYGRAVITY )
self:SetSolid( SOLID_VPHYSICS )
self:SetSkin( 1 )
self:DrawShadow( true )
self:SetCollisionBounds( Vector( -1 , -1 , -1 ) , Vector( 1 , 1 , 1 ) )
self:SetCollisionGroup( COLLISION_GROUP_WORLD )
self:SetNetworkedString( "Owner" , "World" )
self:EmitSound( "VNT_ParachuteZ_DetachClip" )
self.RemoveMe = CurTime( ) + 10
end
function ENT:Think( )
if not SERVER then return false end
if self.RemoveMe < CurTime( ) then
if SERVER then
SafeRemoveEntity( self )
end
end
end

View File

@@ -0,0 +1,65 @@
AddCSLuaFile( )
ENT.Type = "anim"
ENT.PrintName = "Active BF2 ZParachute"
ENT.Author = "Magenta/V92"
ENT.Spawnable = false
ENT.AdminOnly = true
function ENT:Initialize( )
self:SetModel( Model( "models/jessev92/bf2/parachute.mdl" ) )
self:SetMoveType( MOVETYPE_NONE )
self:SetSolid( SOLID_BBOX )
self:DrawShadow( true )
self:SetCollisionBounds( Vector( -1 , -1 , -1 ) , Vector( 1 , 1 , 1 ) )
self:SetCollisionGroup( COLLISION_GROUP_WORLD )
self:SetNetworkedString( "Owner" , "World" )
self:EmitSound( "VNT_ParachuteZ_BF2_Deploy" )
end
function ENT:Think( )
local owner = self:GetOwner( )
if owner:IsValid( ) then
if CLIENT then
self:SetRenderOrigin( owner:GetPos( ) + owner:GetUp( ) * 5 + owner:GetForward( ) * -2 )
end
if SERVER then
self:SetAngles( self:GetOwner( ):GetAngles( ) )
self:SetPos( self:GetOwner( ):GetPos( ) + self:GetOwner( ):GetUp( ) * 2 + self:GetOwner( ):GetForward( ) * -4 )
end
end
if owner.Parachuting == false then
if SERVER and IsValid( self ) then
SafeRemoveEntity( self )
end
end
end
function ENT:OnRemove( )
if SERVER and IsValid( self ) then
SafeRemoveEntity( self )
end
end

View File

@@ -0,0 +1,40 @@
AddCSLuaFile( )
ENT.Type = "anim"
ENT.PrintName = "Landed BF2 ZParachute"
ENT.Author = "Magenta/V92"
ENT.Spawnable = false
ENT.AdminOnly = true
function ENT:Initialize( )
self:SetModel( Model( "models/jessev92/codmw2/parachute_ground_skins.mdl" ) )
self:SetMoveType( MOVETYPE_FLYGRAVITY )
self:SetSolid( SOLID_VPHYSICS )
self:SetSkin( 1 )
self:DrawShadow( true )
self:SetCollisionBounds( Vector( -1 , -1 , -1 ) , Vector( 1 , 1 , 1 ) )
self:SetCollisionGroup( COLLISION_GROUP_WORLD )
self:SetNetworkedString( "Owner" , "World" )
self:EmitSound( "VNT_ParachuteZ_DetachClip" )
self.RemoveMe = CurTime( ) + 10
end
function ENT:Think( )
if not SERVER then return false end
if self.RemoveMe < CurTime( ) then
if SERVER then
SafeRemoveEntity( self )
end
end
end

View File

@@ -0,0 +1,52 @@
AddCSLuaFile()
--SWEP.Base = "weapon_rp_base"
if CLIENT then
SWEP.PrintName = "Парашют"
SWEP.DrawAmmo = false
end
SWEP.ViewModel = Model('models/weapons/v_hands.mdl')
SWEP.ViewModelFOV = 62
SWEP.Category = "Other"
SWEP.Spawnable = true
SWEP.AdminSpawnable = false
SWEP.HoldType = "normal"
SWEP.ViewModel = "models/weapons/c_arms.mdl"
SWEP.WorldModel = ""
function SWEP:Initialize()
if not SERVER then return end
self.preventWalkPress = 0
end
function SWEP:PrimaryAttack()
if not IsValid(self.Owner) then return end
local ply = self.Owner
local reloadTime = ix and ix.config.Get("parachuteReloadTime", 20) or 20
local minVel = ix and ix.config.Get("parachuteMinVelocity", -600) or -600
if ply:Alive() and ((ply:GetNW2Int("r_parachute") or 0) <= CurTime()) and ply:IsValid() and not (ply:GetMoveType() == MOVETYPE_NOCLIP or ply:InVehicle() or ply:OnGround() or ply:GetVelocity().z > minVel) then
ply:SetNW2Int("r_parachute", CurTime() + reloadTime)
self.preventWalkPress = CurTime() + reloadTime
end
end
function SWEP:CanSecondaryAttack()
return false
end
function SWEP:SecondaryAttack()
end
function SWEP:Reload()
return false
end