Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SWEP.Base = "weapon_lightsaber" -- No reason to change this
- SWEP.Spawnable = true -- Can be spawned through the Q menu
- SWEP.PrintName = "Sith Acolyte Blade" -- SWEP name on the Q menu
- SWEP.IsLightsaber = true -- Self explanatory
- function SWEP:GetForcePowers()
- return {"Force Repulse"} -- Force abilities added here, make sure each string is seperated by a comma
- end
- function SWEP:GetForms()
- return {"Phalanx B"} -- Force abilities added here, make sure each string is seperated by a comma
- end
- function SWEP:SetupDataTables()
- self:NetworkVar( "Float", 0, "BladeLength" )
- self:NetworkVar( "Float", 1, "MaxLength" )
- self:NetworkVar( "Float", 2, "BladeWidth" )
- self:NetworkVar( "Float", 3, "Force" )
- self:NetworkVar( "Float", 4, "MaxForce" )
- self:NetworkVar( "Float", 5, "ForceRegen" )
- self:NetworkVar( "Bool", 0, "DarkInner" )
- self:NetworkVar( "Bool", 1, "Enabled" )
- self:NetworkVar( "Bool", 2, "Swung" )
- self:NetworkVar( "Bool", 3, "Blocking" )
- self:NetworkVar( "Bool", 4, "DualBlade" )
- self:NetworkVar( "Int", 0, "ForceType" )
- self:NetworkVar( "Int", 1, "IncorrectPlayerModel" )
- self:NetworkVar( "Int", 2, "SwingSequence" )
- self:NetworkVar( "Int", 3, "HeroHealth" )
- self:NetworkVar( "Int", 4, "Blades" )
- self:NetworkVar( "Vector", 0, "CrystalColor" )
- self:NetworkVar( "Vector", 1, "1CrystalColor" )
- self:NetworkVar( "Vector", 2, "2CrystalColor" )
- self:NetworkVar( "Vector", 3, "3CrystalColor" )
- self:NetworkVar( "String", 0, "WorldModel" )
- self:NetworkVar( "String", 1, "OnSound" )
- self:NetworkVar( "String", 2, "OffSound" )
- self:NetworkVar( "String", 3, "SecWorldModel" )
- self:NetworkVar( "Bool", 5, "Open" )
- self:NetworkVar( "Bool", 6, "Close" )
- self:NetworkVar( "Int", 5, "FormType" )
- self:NetworkVar( "Bool", 7, "Anim" )
- self:NetworkVar( "Bool", 8, "Stunned")
- self:SetNWString("IdleAnim", "phalanx_b_idle")
- self:SetNWString("IdleAnimLower", "phalanx_b_idle")
- self:SetNWString("WalkAnimLower", "phalanx_b_run")
- self:SetNWString("RunAnimLower", "phalanx_b_run")
- self:SetNWString("RunAnimBody", "phalanx_b_run_body")
- self:SetNWString("BlockingAnim", "b_block_left")
- if ( SERVER ) then
- self:SetBladeLength( 0 )
- self:SetBladeWidth( 2 )
- self:SetMaxLength( 42 )
- self:SetDarkInner( false )
- self:SetEnabled( true )
- self:SetOnSound( "lightsaber/saber_on" .. math.random( 1, 4 ) .. ".wav" )
- self:SetOffSound( "lightsaber/saber_off" .. math.random( 1, 4 ) .. ".wav" )
- self:SetWorldModel( "models/sgg/starwars/weapons/w_anakin_ep2_saber_hilt.mdl" )
- self:SetCrystalColor( Vector(0, 0, 255 ) )
- self:SetForceType( 1 )
- self:SetForce( 100 )
- self:SetMaxForce(100)
- self:SetForceRegen(0)
- self:SetAnim(false)
- self:SetOpen(false)
- self:SetClose(false)
- self:SetFormType( 1 )
- self:SetStunned(false)
- self:NetworkVarNotify( "Force", self.OnForceChanged )
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement