Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[-------------------------------------------------------------------
- Lightsaber Force Powers:
- The available powers that the new saber base uses.
- Powered by
- _ _ _ ___ ____
- __ _(_) | |_ / _ \/ ___|
- \ \ /\ / / | | __| | | \___ \
- \ V V /| | | |_| |_| |___) |
- \_/\_/ |_|_|\__|\___/|____/
- _____ _ _ _
- |_ _|__ ___| |__ _ __ ___ | | ___ __ _(_) ___ ___
- | |/ _ \/ __| '_ \| '_ \ / _ \| |/ _ \ / _` | |/ _ \/ __|
- | | __/ (__| | | | | | | (_) | | (_) | (_| | | __/\__ \
- |_|\___|\___|_| |_|_| |_|\___/|_|\___/ \__, |_|\___||___/
- |___/
- ----------------------------- Copyright 2017, David "King David" Wiltos ]]--[[
- Lua Developer: King David
- Contact: www.wiltostech.com
- -- Copyright 2017, David "King David" Wiltos ]]--
- local TREE = {}
- --Name of the skill tree
- TREE.Name = "Commando"
- --Description of the skill tree
- TREE.Description = "Become more powerful than you can possibly imagine."
- --Icon for the skill tree ( Appears in category menu and above the skills )
- TREE.TreeIcon = "wos/skilltrees/characterstats/characterstats.png"
- --What is the background color in the menu for this
- TREE.BackgroundColor = Color( 255, 0, 0, 25 )
- --How many tiers of skills are there?
- TREE.MaxTiers = 6
- --Add user groups that are allowed to use this tree. If anyone is allowed, set this to FALSE ( TREE.UserGroups = false )
- TREE.UserGroups = false
- TREE.Tier = {}
- --Tier format is as follows:
- --To create the TIER Table, do the following
- --TREE.Tier[ TIER NUMBER ] = {}
- --To populate it with data, the format follows this
- --TREE.Tier[ TIER NUMBER ][ SKILL NUMBER ] = DATA
- --Name, description, and icon are exactly the same as before
- --PointsRequired is for how many skill points are needed to unlock this particular skill
- --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 {}
- --OnPlayerSpawn is a function called when the player just spawns
- --OnPlayerDeath is a function called when the player has just died
- --OnSaberDeploy is a function called when the player has just pulled out their lightsaber ( assuming you have SWEP.UsePlayerSkills = true )
- TREE.Tier[1] = {}
- TREE.Tier[1][1] = {
- Name = "Gold Finger 1",
- Description = "Adds 100$ per Payday",
- Icon = "wos/skilltrees/characterstats/health.png",
- PointsRequired = 1,
- Requirements = {},
- OnPlayerSpawn = function( ply ) timer.Create(ply:SteamID64().."_GoldFinger2", 900, 0, function() ply:addMoney(100) end) end,
- OnPlayerDeath = function( ply ) timer.Remove(ply:SteamID64().."_GoldFinder2") end,
- OnSaberDeploy = function( wep ) end,
- }
- TREE.Tier[1][2] = {
- Name = "Bandolier 1",
- Description = "Adds 500 rounds",
- Icon = "wos/skilltrees/characterstats/armor.png",
- PointsRequired = 1,
- Requirements = {},
- OnPlayerSpawn = function( ply ) ply:GiveAmmo( 500, "item_ammo_357", false ) end,
- OnPlayerDeath = function( ply ) end,
- OnSaberDeploy = function( wep ) end,
- }
- TREE.Tier[1][3] = {
- Name = "Bullets Stopper 1",
- Description = "Reduce the damage you receive from bullets to 2.5%",
- Icon = "wos/skilltrees/characterstats/speed.png",
- PointsRequired = 1,
- Requirements = {},
- OnPlayerSpawn = function( ply ) ply:SetNWInt("Deadman:SkillPoints:Level", 1) end,
- OnPlayerDeath = function( ply ) end,
- OnSaberDeploy = function( wep ) end,
- }
- TREE.Tier[2] = {}
- TREE.Tier[2][1] = {
- Name = "Gold Finger 2",
- Description = "Adds 150$ per Payday",
- Icon = "wos/skilltrees/characterstats/health.png",
- PointsRequired = 1,
- Requirements = {
- [1] = { 1 },
- },
- OnPlayerSpawn = function( ply ) timer.Create(ply:SteamID64().."_GoldFinger2", 900, 0, function() ply:addMoney(150) end) end,
- OnPlayerDeath = function( ply ) timer.Remove(ply:SteamID64().."_GoldFinder2") end,
- OnSaberDeploy = function( wep ) end,
- }
- TREE.Tier[2][2] = {
- Name = "Bandolier 2",
- Description = "Adds 1000 rounds",
- Icon = "wos/skilltrees/characterstats/armor.png",
- PointsRequired = 1,
- Requirements = {
- [1] = { 2 },
- },
- OnPlayerSpawn = function( ply ) ply:GiveAmmo( 1000, "item_ammo_357", false ) end,
- OnPlayerDeath = function( ply ) end,
- OnSaberDeploy = function( wep ) end,
- }
- TREE.Tier[2][3] = {
- Name = "Bullets Stopper 2",
- Description = "Reduce the damage you receive from bullets to 5%",
- Icon = "wos/skilltrees/characterstats/speed.png",
- PointsRequired = 1,
- Requirements = {
- [1] = { 3 },
- },
- OnPlayerSpawn = function( ply ) ply:SetNWInt("Deadman:SkillPoints:Level", 2) end,
- OnPlayerDeath = function( ply ) end,
- OnSaberDeploy = function( wep ) end,
- }
- TREE.Tier[3] = {}
- TREE.Tier[3][1] = {
- Name = "Gold Finger 3",
- Description = "Adds 200$ per Payday",
- Icon = "wos/skilltrees/characterstats/health.png",
- PointsRequired = 1,
- Requirements = {
- [2] = { 1 },
- },
- OnPlayerSpawn = function( ply ) timer.Create(ply:SteamID64().."_GoldFinger3", 900, 0, function() ply:addMoney(150) end) end,
- OnPlayerDeath = function( ply ) timer.Remove(ply:SteamID64().."_GoldFinder2") end,
- OnSaberDeploy = function( wep ) end,
- }
- TREE.Tier[3][2] = {
- Name = "Bandolier 3",
- Description = "Adds 1500 rounds",
- Icon = "wos/skilltrees/characterstats/armor.png",
- PointsRequired = 1,
- Requirements = {
- [2] = { 2 },
- },
- OnPlayerSpawn = function( ply ) ply:GiveAmmo( 1500, "item_ammo_357", false ) end,
- OnPlayerDeath = function( ply ) end,
- OnSaberDeploy = function( wep ) end,
- }
- TREE.Tier[3][3] = {
- Name = "Bullets Stopper 3",
- Description = "Reduce the damage you receive from bullets to 7.5%",
- Icon = "wos/skilltrees/characterstats/speed.png",
- PointsRequired = 1,
- Requirements = {
- [2] = { 3 },
- },
- OnPlayerSpawn = function( ply ) ply:SetNWInt("Deadman:SkillPoints:Level", 3) end,
- OnPlayerDeath = function( ply ) end,
- OnSaberDeploy = function( wep ) end,
- }
- TREE.Tier[4] = {}
- TREE.Tier[4][1] = {
- Name = "Gold Finger 4",
- Description = "Adds 250$ per Payday",
- Icon = "wos/skilltrees/characterstats/health.png",
- PointsRequired = 1,
- Requirements = {
- [3] = { 1 },
- },
- OnPlayerSpawn = function( ply ) timer.Create(ply:SteamID64().."_GoldFinger4", 900, 0, function() ply:addMoney(150) end) end,
- OnPlayerDeath = function( ply ) timer.Remove(ply:SteamID64().."_GoldFinder2") end,
- OnSaberDeploy = function( wep ) end,
- }
- TREE.Tier[4][2] = {
- Name = "Bandolier 4",
- Description = "Adds 200 sniper rounds",
- Icon = "wos/skilltrees/characterstats/armor.png",
- PointsRequired = 1,
- Requirements = {
- [3] = { 2 },
- },
- OnPlayerSpawn = function( ply ) ply:GiveAmmo( 200, "tfa_ammo_sniper_rounds", false ) end,
- OnPlayerDeath = function( ply ) end,
- OnSaberDeploy = function( wep ) end,
- }
- TREE.Tier[4][3] = {
- Name = "Bandolier 4 bis",
- Description = "Adds 25 rocket rounds",
- Icon = "wos/skilltrees/characterstats/armor.png",
- PointsRequired = 1,
- Requirements = {
- [3] = { 2 },
- },
- OnPlayerSpawn = function( ply ) ply:GiveAmmo( 25, "item_rpg_round", false ) end,
- OnPlayerDeath = function( ply ) end,
- OnSaberDeploy = function( wep ) end,
- }
- TREE.Tier[4][4] = {
- Name = "Bullets Stopper 4",
- Description = "Reduce the damage you receive from bullets to 10%",
- Icon = "wos/skilltrees/characterstats/speed.png",
- PointsRequired = 1,
- Requirements = {
- [3] = { 3 },
- },
- OnPlayerSpawn = function( ply ) ply:SetNWInt("Deadman:SkillPoints:Level", 4) end,
- OnPlayerDeath = function( ply ) end,
- OnSaberDeploy = function( wep ) end,
- }
- TREE.Tier[5] = {}
- TREE.Tier[5][1] = {
- Name = "Gold Finger 5",
- Description = "Adds 300$ per Payday",
- Icon = "wos/skilltrees/characterstats/health.png",
- PointsRequired = 1,
- Requirements = {
- [4] = { 1 },
- },
- OnPlayerSpawn = function( ply ) timer.Create(ply:SteamID64().."_GoldFinger5", 900, 0, function() ply:addMoney(150) end) end,
- OnPlayerDeath = function( ply ) timer.Remove(ply:SteamID64().."_GoldFinder2") end,
- OnSaberDeploy = function( wep ) end,
- }
- TREE.Tier[5][2] = {
- Name = "Bullets Stopper 5",
- Description = "Reduce the damage you receive from bullets to 12.5%",
- Icon = "wos/skilltrees/characterstats/speed.png",
- PointsRequired = 1,
- Requirements = {
- [4] = { 4 },
- },
- OnPlayerSpawn = function( ply ) ply:SetNWInt("Deadman:SkillPoints:Level", 5) end,
- OnPlayerDeath = function( ply ) end,
- OnSaberDeploy = function( wep ) end,
- }
- TREE.Tier[6] = {}
- TREE.Tier[6][1] = {
- Name = "Bullets Stopper 6",
- Description = "Reduce the damage you receive from bullets to 15%",
- Icon = "wos/skilltrees/characterstats/speed.png",
- PointsRequired = 1,
- Requirements = {
- [5] = { 2 },
- },
- OnPlayerSpawn = function( ply ) ply:SetNWInt("Deadman:SkillPoints:Level", 6) end,
- OnPlayerDeath = function( ply ) end,
- OnSaberDeploy = function( wep ) end,
- }
- wOS:RegisterSkillTree( TREE )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement