Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2019
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.26 KB | None | 0 0
  1.  
  2. --[[-------------------------------------------------------------------
  3.     Modified Lightsaber:
  4.         Runs on the intuitive wOS Lightsaber Base
  5.             Powered by
  6.                           _ _ _    ___  ____  
  7.                 __      _(_) | |_ / _ \/ ___|
  8.                 \ \ /\ / / | | __| | | \___ \
  9.                  \ V  V /| | | |_| |_| |___) |
  10.                   \_/\_/ |_|_|\__|\___/|____/
  11.                                              
  12.  _____         _                 _             _          
  13. |_   _|__  ___| |__  _ __   ___ | | ___   __ _(_) ___  ___
  14.   | |/ _ \/ __| '_ \| '_ \ / _ \| |/ _ \ / _` | |/ _ \/ __|
  15.   | |  __/ (__| | | | | | | (_) | | (_) | (_| | |  __/\__ \
  16.   |_|\___|\___|_| |_|_| |_|\___/|_|\___/ \__, |_|\___||___/
  17.                                          |___/            
  18. ----------------------------- Copyright 2017, David "King David" Wiltos ]]--[[
  19.                              
  20.     Lua Developer: King David
  21.     Contact: www.wiltostech.com
  22.        
  23. -- Copyright 2017, David "King David" Wiltos ]]--
  24.  
  25. AddCSLuaFile()
  26.  
  27.  
  28. SWEP.Author = "Robotboy655 + King David"
  29. SWEP.Category = "Lightsabers"
  30. SWEP.Contact = ""
  31. SWEP.RenderGroup = RENDERGROUP_BOTH
  32. SWEP.Slot = 0
  33. SWEP.SlotPos = 4
  34. SWEP.Spawnable = true
  35. SWEP.DrawAmmo = false
  36. SWEP.DrawCrosshair = false
  37. SWEP.AutoSwitchTo = false
  38. SWEP.AutoSwitchFrom = false
  39. SWEP.DrawWeaponInfoBox = false
  40. SWEP.ViewModel = "models/weapons/v_crowbar.mdl"
  41. SWEP.WorldModel = "models/sgg/starwars/weapons/w_anakin_ep2_saber_hilt.mdl"
  42. SWEP.ViewModelFOV = 55
  43. SWEP.Primary.ClipSize = -1
  44. SWEP.Primary.DefaultClip = -1
  45. SWEP.Primary.Automatic = false
  46. SWEP.Primary.Ammo = "none"
  47. SWEP.Secondary.ClipSize = -1
  48. SWEP.Secondary.DefaultClip = -1
  49. SWEP.Secondary.Automatic = true
  50. SWEP.Secondary.Ammo = "none"
  51.  
  52. ------------------------------------------------------------THINGS YOU WILL EDIT ARE BELOW HERE-------------------------------------------------------------------------
  53. SWEP.PrintName = "Personal Lightsaber" --Name of the lightsaber
  54. SWEP.Class = "weapon_lightsaber_personal" --The file name of this swep
  55. SWEP.DualWielded = false --Should this be a dual wielded saber?
  56. SWEP.CanMoveWhileAttacking = false -- Can the user move while attacking
  57. SWEP.SaberDamage = 50 --How much damage the saber does when it's being swung
  58. SWEP.SaberBurnDamage = 25 -- How much damage the saber does when it's colliding with someone ( coming in contact with laser )
  59. SWEP.MaxForce = 100 --The maximum amount of force in the meter
  60. SWEP.RegenSpeed = 1 --The MULTIPLIER for the regen speed. Half speed = 0.5, Double speed = 2, etc.
  61. SWEP.CanKnockback = true --Should this saber be able to push people back when they get hit?
  62. SWEP.ForcePowerList = { "Force Leap" }
  63. --Force powers you want the saber to have ( REMEMBER TO PUT A COMMA AFTER EACH ONE, AND COPY THE TITLE EXACTLY AS IT'S LISTED )
  64. --For a list of options, just look at the keys in autorun/client/wos_forcematerialbuilding.lua
  65.  
  66. SWEP.UseSkills = true
  67. SWEP.PersonalLightsaber = true
  68.  
  69. SWEP.CustomSettings = {}
  70.  
  71. --[[ Use this to overwrite the ULX Forms/Stances for this particular swep ( [ "FORMNAME" ] = { STANCENUM1, STANCENUM2, STANCENUM3 } )
  72.     Example:
  73.     SWEP.UseForms = {
  74.     ["Aggressive"] = { 1, 3 },
  75.     ["Defensive"] = { 2 },
  76. }
  77. ]]--
  78.  
  79. SWEP.UseForms = {}
  80.  
  81. --Use these options to overwrite the player's commands
  82. SWEP.UseHilt = false -- Model path of the hilt
  83. SWEP.UseLength = false -- Length of the saber
  84. SWEP.UseWidth = false -- Width of the saber
  85. SWEP.UseColor = false -- RGB Color of saber. Red = Color( 255, 0, 0 ) Blue = Color( 0, 0, 255 ), etc.
  86. SWEP.UseDarkInner = false -- Does it have a dark inner? 1 = true
  87. SWEP.UseLoopSound = false -- The loop sound path
  88. SWEP.UseSwingSound = false -- The swing sound path
  89. SWEP.UseOnSound = false -- The on sound path
  90. SWEP.UseOffSound = false -- The off sound path
  91.  
  92. --These are the ones for the second saber for dual wielding. If you are using a single saber, this doesn't do shit
  93. SWEP.UseSecHilt = false
  94. SWEP.UseSecLength = false
  95. SWEP.UseSecWidth = false
  96. SWEP.UseSecColor = false
  97. SWEP.UseSecDarkInner = false
  98.  
  99. -----------------------------------------------------------END OF EDIT----------------------------------------------------------------
  100.  
  101.  
  102. if !SWEP.DualWielded then
  103.     SWEP.Base = "wos_adv_single_lightsaber_base"
  104. else
  105.     SWEP.Base = "wos_adv_dual_lightsaber_base"
  106. end
  107.  
  108.  
  109.  
  110. if CLIENT then
  111.     killicon.Add( SWEP.Class, "lightsaber/lightsaber_killicon", color_white )
  112. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement