Advertisement
Deadman69330

tree

Oct 2nd, 2019
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.52 KB | None | 0 0
  1.  
  2. --[[-------------------------------------------------------------------
  3. Lightsaber Force Powers:
  4. The available powers that the new saber base uses.
  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. local TREE = {}
  26.  
  27. --Name of the skill tree
  28. TREE.Name = "Commando"
  29.  
  30. --Description of the skill tree
  31. TREE.Description = "Become more powerful than you can possibly imagine."
  32.  
  33. --Icon for the skill tree ( Appears in category menu and above the skills )
  34. TREE.TreeIcon = "wos/skilltrees/characterstats/characterstats.png"
  35.  
  36. --What is the background color in the menu for this
  37. TREE.BackgroundColor = Color( 255, 0, 0, 25 )
  38.  
  39. --How many tiers of skills are there?
  40. TREE.MaxTiers = 6
  41.  
  42. --Add user groups that are allowed to use this tree. If anyone is allowed, set this to FALSE ( TREE.UserGroups = false )
  43. TREE.UserGroups = false
  44.  
  45. TREE.Tier = {}
  46.  
  47. --Tier format is as follows:
  48. --To create the TIER Table, do the following
  49. --TREE.Tier[ TIER NUMBER ] = {}
  50. --To populate it with data, the format follows this
  51. --TREE.Tier[ TIER NUMBER ][ SKILL NUMBER ] = DATA
  52. --Name, description, and icon are exactly the same as before
  53. --PointsRequired is for how many skill points are needed to unlock this particular skill
  54. --Requirements prevent you from unlocking this skill unless you have the pre-requisite skills from the last tiers. If you are on tier 1, this should be {}
  55. --OnPlayerSpawn is a function called when the player just spawns
  56. --OnPlayerDeath is a function called when the player has just died
  57. --OnSaberDeploy is a function called when the player has just pulled out their lightsaber ( assuming you have SWEP.UsePlayerSkills = true )
  58.  
  59.  
  60. TREE.Tier[1] = {}
  61. TREE.Tier[1][1] = {
  62. Name = "Gold Finger 1",
  63. Description = "Adds 100$ per Payday",
  64. Icon = "wos/skilltrees/characterstats/health.png",
  65. PointsRequired = 1,
  66. Requirements = {},
  67.  
  68. OnPlayerSpawn = function( ply ) timer.Create(ply:SteamID64().."_GoldFinger2", 900, 0, function() ply:addMoney(100) end) end,
  69. OnPlayerDeath = function( ply ) timer.Remove(ply:SteamID64().."_GoldFinder2") end,
  70. OnSaberDeploy = function( wep ) end,
  71. }
  72.  
  73. TREE.Tier[1][2] = {
  74. Name = "Bandolier 1",
  75. Description = "Adds 500 rounds",
  76. Icon = "wos/skilltrees/characterstats/armor.png",
  77. PointsRequired = 1,
  78. Requirements = {},
  79.  
  80. OnPlayerSpawn = function( ply ) ply:GiveAmmo( 500, "item_ammo_357", false ) end,
  81. OnPlayerDeath = function( ply ) end,
  82. OnSaberDeploy = function( wep ) end,
  83. }
  84.  
  85. TREE.Tier[1][3] = {
  86. Name = "Bullets Stopper 1",
  87. Description = "Reduce the damage you receive from bullets to 2.5%",
  88. Icon = "wos/skilltrees/characterstats/speed.png",
  89. PointsRequired = 1,
  90. Requirements = {},
  91. OnPlayerSpawn = function( ply ) ply:SetNWInt("Deadman:SkillPoints:Level", 1) end,
  92. OnPlayerDeath = function( ply ) end,
  93. OnSaberDeploy = function( wep ) end,
  94. }
  95.  
  96. TREE.Tier[2] = {}
  97. TREE.Tier[2][1] = {
  98. Name = "Gold Finger 2",
  99. Description = "Adds 150$ per Payday",
  100. Icon = "wos/skilltrees/characterstats/health.png",
  101. PointsRequired = 1,
  102. Requirements = {
  103. [1] = { 1 },
  104. },
  105.  
  106. OnPlayerSpawn = function( ply ) timer.Create(ply:SteamID64().."_GoldFinger2", 900, 0, function() ply:addMoney(150) end) end,
  107. OnPlayerDeath = function( ply ) timer.Remove(ply:SteamID64().."_GoldFinder2") end,
  108. OnSaberDeploy = function( wep ) end,
  109. }
  110.  
  111. TREE.Tier[2][2] = {
  112. Name = "Bandolier 2",
  113. Description = "Adds 1000 rounds",
  114. Icon = "wos/skilltrees/characterstats/armor.png",
  115. PointsRequired = 1,
  116. Requirements = {
  117. [1] = { 2 },
  118. },
  119.  
  120. OnPlayerSpawn = function( ply ) ply:GiveAmmo( 1000, "item_ammo_357", false ) end,
  121. OnPlayerDeath = function( ply ) end,
  122. OnSaberDeploy = function( wep ) end,
  123. }
  124.  
  125. TREE.Tier[2][3] = {
  126. Name = "Bullets Stopper 2",
  127. Description = "Reduce the damage you receive from bullets to 5%",
  128. Icon = "wos/skilltrees/characterstats/speed.png",
  129. PointsRequired = 1,
  130. Requirements = {
  131. [1] = { 3 },
  132. },
  133. OnPlayerSpawn = function( ply ) ply:SetNWInt("Deadman:SkillPoints:Level", 2) end,
  134. OnPlayerDeath = function( ply ) end,
  135. OnSaberDeploy = function( wep ) end,
  136. }
  137.  
  138. TREE.Tier[3] = {}
  139. TREE.Tier[3][1] = {
  140. Name = "Gold Finger 3",
  141. Description = "Adds 200$ per Payday",
  142. Icon = "wos/skilltrees/characterstats/health.png",
  143. PointsRequired = 1,
  144. Requirements = {
  145. [2] = { 1 },
  146. },
  147.  
  148. OnPlayerSpawn = function( ply ) timer.Create(ply:SteamID64().."_GoldFinger3", 900, 0, function() ply:addMoney(150) end) end,
  149. OnPlayerDeath = function( ply ) timer.Remove(ply:SteamID64().."_GoldFinder2") end,
  150. OnSaberDeploy = function( wep ) end,
  151. }
  152.  
  153. TREE.Tier[3][2] = {
  154. Name = "Bandolier 3",
  155. Description = "Adds 1500 rounds",
  156. Icon = "wos/skilltrees/characterstats/armor.png",
  157. PointsRequired = 1,
  158. Requirements = {
  159. [2] = { 2 },
  160. },
  161.  
  162. OnPlayerSpawn = function( ply ) ply:GiveAmmo( 1500, "item_ammo_357", false ) end,
  163. OnPlayerDeath = function( ply ) end,
  164. OnSaberDeploy = function( wep ) end,
  165. }
  166.  
  167. TREE.Tier[3][3] = {
  168. Name = "Bullets Stopper 3",
  169. Description = "Reduce the damage you receive from bullets to 7.5%",
  170. Icon = "wos/skilltrees/characterstats/speed.png",
  171. PointsRequired = 1,
  172. Requirements = {
  173. [2] = { 3 },
  174. },
  175.  
  176. OnPlayerSpawn = function( ply ) ply:SetNWInt("Deadman:SkillPoints:Level", 3) end,
  177. OnPlayerDeath = function( ply ) end,
  178. OnSaberDeploy = function( wep ) end,
  179. }
  180.  
  181. TREE.Tier[4] = {}
  182. TREE.Tier[4][1] = {
  183. Name = "Gold Finger 4",
  184. Description = "Adds 250$ per Payday",
  185. Icon = "wos/skilltrees/characterstats/health.png",
  186. PointsRequired = 1,
  187. Requirements = {
  188. [3] = { 1 },
  189. },
  190.  
  191. OnPlayerSpawn = function( ply ) timer.Create(ply:SteamID64().."_GoldFinger4", 900, 0, function() ply:addMoney(150) end) end,
  192. OnPlayerDeath = function( ply ) timer.Remove(ply:SteamID64().."_GoldFinder2") end,
  193. OnSaberDeploy = function( wep ) end,
  194. }
  195.  
  196. TREE.Tier[4][2] = {
  197. Name = "Bandolier 4",
  198. Description = "Adds 200 sniper rounds",
  199. Icon = "wos/skilltrees/characterstats/armor.png",
  200. PointsRequired = 1,
  201. Requirements = {
  202. [3] = { 2 },
  203. },
  204.  
  205. OnPlayerSpawn = function( ply ) ply:GiveAmmo( 200, "tfa_ammo_sniper_rounds", false ) end,
  206. OnPlayerDeath = function( ply ) end,
  207. OnSaberDeploy = function( wep ) end,
  208. }
  209.  
  210. TREE.Tier[4][3] = {
  211. Name = "Bandolier 4 bis",
  212. Description = "Adds 25 rocket rounds",
  213. Icon = "wos/skilltrees/characterstats/armor.png",
  214. PointsRequired = 1,
  215. Requirements = {
  216. [3] = { 2 },
  217. },
  218.  
  219. OnPlayerSpawn = function( ply ) ply:GiveAmmo( 25, "item_rpg_round", false ) end,
  220. OnPlayerDeath = function( ply ) end,
  221. OnSaberDeploy = function( wep ) end,
  222. }
  223.  
  224. TREE.Tier[4][4] = {
  225. Name = "Bullets Stopper 4",
  226. Description = "Reduce the damage you receive from bullets to 10%",
  227. Icon = "wos/skilltrees/characterstats/speed.png",
  228. PointsRequired = 1,
  229. Requirements = {
  230. [3] = { 3 },
  231. },
  232.  
  233. OnPlayerSpawn = function( ply ) ply:SetNWInt("Deadman:SkillPoints:Level", 4) end,
  234. OnPlayerDeath = function( ply ) end,
  235. OnSaberDeploy = function( wep ) end,
  236. }
  237.  
  238. TREE.Tier[5] = {}
  239. TREE.Tier[5][1] = {
  240. Name = "Gold Finger 5",
  241. Description = "Adds 300$ per Payday",
  242. Icon = "wos/skilltrees/characterstats/health.png",
  243. PointsRequired = 1,
  244. Requirements = {
  245. [4] = { 1 },
  246. },
  247.  
  248. OnPlayerSpawn = function( ply ) timer.Create(ply:SteamID64().."_GoldFinger5", 900, 0, function() ply:addMoney(150) end) end,
  249. OnPlayerDeath = function( ply ) timer.Remove(ply:SteamID64().."_GoldFinder2") end,
  250. OnSaberDeploy = function( wep ) end,
  251. }
  252.  
  253. TREE.Tier[5][2] = {
  254. Name = "Bullets Stopper 5",
  255. Description = "Reduce the damage you receive from bullets to 12.5%",
  256. Icon = "wos/skilltrees/characterstats/speed.png",
  257. PointsRequired = 1,
  258. Requirements = {
  259. [4] = { 4 },
  260. },
  261.  
  262. OnPlayerSpawn = function( ply ) ply:SetNWInt("Deadman:SkillPoints:Level", 5) end,
  263. OnPlayerDeath = function( ply ) end,
  264. OnSaberDeploy = function( wep ) end,
  265. }
  266.  
  267.  
  268. TREE.Tier[6] = {}
  269. TREE.Tier[6][1] = {
  270. Name = "Bullets Stopper 6",
  271. Description = "Reduce the damage you receive from bullets to 15%",
  272. Icon = "wos/skilltrees/characterstats/speed.png",
  273. PointsRequired = 1,
  274. Requirements = {
  275. [5] = { 2 },
  276. },
  277.  
  278. OnPlayerSpawn = function( ply ) ply:SetNWInt("Deadman:SkillPoints:Level", 6) end,
  279. OnPlayerDeath = function( ply ) end,
  280. OnSaberDeploy = function( wep ) end,
  281. }
  282.  
  283. wOS:RegisterSkillTree( TREE )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement