Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- ████──█───███ ███─██─██─███─███─███─█───█ ████──██─██ ████──████─████─███─███─█──█─█─█─████─█───█
- █──██─█───█ █────███──█────█──█───██─██ █──██──███ █──██─█──█─█──█─█───█───██─█─█─█─█──█─█───█
- █──██─█───███ █────███──█────█──█───██─██ ████────█ █──██─████─████─███─███─█─██─█─█─████─█───█
- █──██─█─────█ ███───█───███──█──███─█─█─█ █──██───█ █──██─█──█─█─█────█─█───█──█─███─█──█─█───█
- ████──███─███ ──█───█─────█──█──█───█───█ ████────█ ████──█──█─█─█──███─███─█──█──█──█──█─███─███
- ███───█───███──█──███─█───█
- Copyrights reserved, 2017
- Contact the author: http://steamcommunity.com/id/darsenvall/
- No any re-destribution allowed
- --]]
- AddCSLuaFile()
- SWEP.Author = "Robotboy655 + Darsenvall"
- SWEP.Category = "[DLS] Lightsabers"
- SWEP.Contact = ""
- SWEP.RenderGroup = RENDERGROUP_BOTH
- SWEP.Slot = 0
- SWEP.SlotPos = 4
- SWEP.Spawnable = true
- SWEP.DrawAmmo = false
- SWEP.DrawCrosshair = false
- SWEP.AutoSwitchTo = false
- SWEP.AutoSwitchFrom = false
- SWEP.DrawWeaponInfoBox = false
- SWEP.ViewModel = "models/weapons/v_crowbar.mdl"
- SWEP.WorldModel = "models/sgg/starwars/weapons/w_anakin_ep2_saber_hilt.mdl"
- SWEP.ViewModelFOV = 55
- SWEP.Primary.ClipSize = -1
- SWEP.Primary.DefaultClip = -1
- SWEP.Primary.Automatic = false
- SWEP.Primary.Ammo = "none"
- SWEP.Secondary.ClipSize = -1
- SWEP.Secondary.DefaultClip = -1
- SWEP.Secondary.Automatic = true
- SWEP.Secondary.Ammo = "none"
- SWEP.PrintName = "Sabre de Dark Vador" -- Give your lightsaber a name
- SWEP.Class = "weapon_lightsaber_dls_vader" -- Filename of the saber
- SWEP.DualWielded = false -- Set to true if you want it to be dualwielded
- SWEP.SaberDamage = 300 -- Swing damage of the saber
- SWEP.SaberBurnDamage = 25 -- Collision damage
- SWEP.MaxForce = 100 -- Maximum force energy. Default is 100
- SWEP.RegenSpeed = 1 -- Regeneration speed of force energy. It's a > multiplier <, so if you want it to be half speed set it to 0.5, double speed is 2
- SWEP.MeditateAmount = 50 -- How much health you get each 3 seconds of meditation
- SWEP.MeditateMaximumAmount = 2000 -- Maximum amount of health you can reach with meditation
- SWEP.ForceHealAmount = 25 -- How much health you restore with Force Heal ability
- SWEP.ForceLightningDamage = 5 -- Force Lightning damage
- SWEP.CanKnockback = false -- Set it to true if you want the saber to push people back when they hit it. Default is true
- SWEP.ForcePowerList = { "Force Leap", "Saber Throw", "Force Push", "Force Pull", "Meditate", "Force Repulse", "Sith Rage" }
- -- Available skills: Force Leap, Force Protection, Force Heal, Invisibility, Force Lightning, Saber Throw, Force Repulse, Force Push, Force Pull, Meditate, Force Levitate, Striking Charge, Sith Rage, Balance of the Force
- -- Dont forget about ""
- -- More skills will be added in future.
- -- Use these options to overwrite the player's toolgun options
- SWEP.UseHilt = "models/sgg/starwars/weapons/w_vader_saber_hilt.mdl" -- Model path of the hilt
- SWEP.UseLength = 40 -- Length of the saber
- SWEP.UseWidth = 2 -- Width of the saber
- SWEP.UseColor = Color( 255, 0, 0 ) -- RGB Color of saber. Red = Color( 255, 0, 0 ) Blue = Color( 0, 0, 255 ), etc.
- SWEP.UseDarkInner = false -- Does it have a dark inner? 1 = true
- SWEP.UseLoopSound = false -- The loop sound path
- SWEP.UseSwingSound = false -- The swing sound path
- SWEP.UseOnSound = false -- The on sound path
- SWEP.UseOffSound = false -- The off sound path
- -- These are the ones for the second saber for dual wielding. If you are using a single saber, don't touch it
- SWEP.UseSecHilt = false
- SWEP.UseSecLength = false
- SWEP.UseSecWidth = false
- SWEP.UseSecColor = false
- SWEP.UseSecDarkInner = false
- -- Battle Stages
- SWEP.UseForms = true -- Set this to true if you want to remove some stances for the saber. Then you'll need to type which of the stances and their animation sets you want to be included
- SWEP.UseForms = {
- ["Aggressive"] = { 1, 2, 3 },
- ["Defensive"] = { 1, 2, 3 },
- ["Agile"] = { 1, 2, 3 },
- ["Sweep"] = { 1, 2, 3 },
- }
- -- I don't recommend touching anything below. It's up to you, but you can easily break something if you don't know lua.
- if !SWEP.DualWielded then
- SWEP.Base = "dls_single_lightsaber_base"
- else
- SWEP.Base = "dls_dual_lightsaber_base"
- end
- if CLIENT then
- killicon.Add( SWEP.Class, "lightsaber/lightsaber_killicon", color_white )
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement