mirror of
https://github.com/lifestorm/wnsrc.git
synced 2025-12-17 13:53:45 +03:00
Upload
This commit is contained in:
64
lua/entities/apchl2_hull/cl_init.lua
Normal file
64
lua/entities/apchl2_hull/cl_init.lua
Normal file
@@ -0,0 +1,64 @@
|
||||
--[[
|
||||
| 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/
|
||||
--]]
|
||||
|
||||
|
||||
include('shared.lua')
|
||||
|
||||
function ENT:Initialize()
|
||||
end
|
||||
--[[
|
||||
if( SinglePlayer() ) then
|
||||
|
||||
function ENT:RenderOverride()
|
||||
|
||||
-- if( self:GetVelocity():Length() < 50 ) then self:DrawModel() return end
|
||||
|
||||
local phys = self:GetPhysicsObject()
|
||||
|
||||
local speed = 1
|
||||
|
||||
if( phys:IsValid() ) then
|
||||
|
||||
print( "yay got phys" )
|
||||
speed = phys:GetAngleVelocity().y
|
||||
|
||||
end
|
||||
|
||||
local itr, max_iterations = 1, 8
|
||||
|
||||
for i=itr, max_iterations do
|
||||
|
||||
-- self:SetLocalAngles( 0,0,0 )
|
||||
local a = self:GetAngles()
|
||||
a:RotateAroundAxis( self:GetUp(), i * 3)
|
||||
|
||||
render.SetBlend( i / max_iterations )
|
||||
self:SetupBones()
|
||||
self:SetRenderAngles( a )
|
||||
self:DrawModel()
|
||||
--self:SetRenderAngles( nil )
|
||||
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
]]--
|
||||
|
||||
function ENT:Draw()
|
||||
|
||||
-- self:SetupBones()
|
||||
self:DrawModel()
|
||||
|
||||
end
|
||||
|
||||
function ENT:CustomOnRemove()
|
||||
end
|
||||
37
lua/entities/apchl2_hull/init.lua
Normal file
37
lua/entities/apchl2_hull/init.lua
Normal file
@@ -0,0 +1,37 @@
|
||||
--[[
|
||||
| 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( "cl_init.lua" )
|
||||
AddCSLuaFile( "shared.lua" )
|
||||
include( 'shared.lua' )
|
||||
|
||||
function ENT:Initialize()
|
||||
|
||||
self:SetModel( "models/combine_apc2.mdl" )
|
||||
self:PhysicsInit( SOLID_VPHYSICS )
|
||||
//self:SetMoveType( MOVETYPE_VPHYSICS )
|
||||
self:SetSolid( SOLID_VPHYSICS )
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
self.PhysObj = self:GetPhysicsObject()
|
||||
|
||||
if ( self.PhysObj:IsValid() ) then
|
||||
|
||||
self.PhysObj:EnableDrag( true )
|
||||
self.PhysObj:Wake()
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
17
lua/entities/apchl2_hull/shared.lua
Normal file
17
lua/entities/apchl2_hull/shared.lua
Normal file
@@ -0,0 +1,17 @@
|
||||
--[[
|
||||
| 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.Author = "Hoffa"
|
||||
ENT.Category = "NeuroTec Helicopters";
|
||||
ENT.Spawnable = false
|
||||
ENT.AdminSpawnable = false
|
||||
|
||||
Reference in New Issue
Block a user