• TTT Upgrade Perks
    25 replies, posted
[IMG]http://i.gyazo.com/877329f380df2d7cd3923e75fd245ced.png[/IMG] At long last, everyones favorite. Its here! (I have been given full permission to upload this) This is now a community project to fix with all of the Garrys Mod updates. Pull requests, issuies, they can all be filed. Tommy228 has permissions to accept & deny pull requests along with more permissions. Lets all bring this addon back to life! Github link: [url]https://github.com/MrUnknownGamer/TTTUpgrades[/url]
Thank you very very much !!!!
This is amazing! Thanks for posting this. I have one question: How do I add it to it's own pointshop tab?
[QUOTE=Sticky Bandit;47935972]This is amazing! Thanks for posting this. I have one question: How do I add it to it's own pointshop tab?[/QUOTE] [url]https://github.com/MrUnknownGamer/TTTUpgrades/issues/1[/url]
So is this some addon you want fixed and you are using the community to fix it for you? Or do you know how to code and will be participating in the fixing of this addon? Seems like a grab for free labor, also doesn't seem to fit in the Gamemode and Addon releases considering it is not even functional and you don't seem to have the means to fix it.
[QUOTE=KevinnTCG;47941626]So is this some addon you want fixed and you are using the community to fix it for you? Or do you know how to code and will be participating in the fixing of this addon? Seems like a grab for free labor, also doesn't seem to fix in the Gamemode and Addon releases considering it is not even functional and you don't seem to have the means to fix it.[/QUOTE] Ill be doing the tiny fixes. I am not that big god coder but I will try to fix it up.
Yeah was kinda in a bad mood when I posted that, seemed unnecessary for me to say. Sorry about that. I have downloaded it and will try and see what I can fix on it when I have some time.
[QUOTE=KevinnTCG;47942705]Yeah was kinda in a bad mood when I posted that, seemed unnecessary for me to say. Sorry about that. I have downloaded it and will try and see what I can fix on it when I have some time.[/QUOTE] I don't really see the problem with the post. It was a question.
I think I may have made the script compatible with the current pointshop script.
Testing it on my server, seems good so far. Will post with feedback and whatever later (if I remember). Also out of sheer curiosity, what does the Drow Ranger do?
[QUOTE=Yashirmare;47994566]Testing it on my server, seems good so far. Will post with feedback and whatever later (if I remember). Also out of sheer curiosity, what does the Drow Ranger do?[/QUOTE] Drow ranger? I don't know what you are talking about.
[QUOTE=Unknown Gamer;48011960]Drow ranger? I don't know what you are talking about.[/QUOTE] One of the upgrades under misc, the description is "Guess what this does" Edit: Found out it is supposed to slow down the target but it may not work. I'll look into it. Edit 2: Slight exploit, when using the life steal perk if you have any weapons that do high amounts of damage (such as a 1 hit knife, awp, etc) users can get full health back. This includes things such as c4 but I cant think of a way to fix it with c4. To fix this for your server if you do have these types of weapons add a cap to the perk (for this example I've chosen 10hp back per damage dealt) Change line 14 to this: [code]attacker:SetHealth(math.Clamp(attacker:Health() + math.Clamp(math.floor(damages/10), 0, 10), 0, 100))[/code]
[QUOTE=Yashirmare;48012666]One of the upgrades under misc, the description is "Guess what this does" Edit: Found out it is supposed to slow down the target but it may not work. I'll look into it. Edit 2: Slight exploit, when using the life steal perk if you have any weapons that do high amounts of damage (such as a 1 hit knife, awp, etc) users can get full health back. This includes things such as c4 but I cant think of a way to fix it with c4. To fix this for your server if you do have these types of weapons add a cap to the perk (for this example I've chosen 10hp back per damage dealt) Change line 14 to this: [code]attacker:SetHealth(math.Clamp(attacker:Health() + math.Clamp(math.floor(damages/10), 0, 10), 0, 100))[/code][/QUOTE] Can't believe I didn't see that! Ill change it and if you already setup a pull request on github, ill push it. [editline]24th June 2015[/editline] Commit pushed.
Yeah, I don't have GitHub hence why I didn't make a pull request. Edit: Uhm, you added the fix to the wrong file. For whatever reason you added it to Drow Ranger when the fix was for damages/lifesteal.lua.
[QUOTE=Yashirmare;48039498]Yeah, I don't have GitHub hence why I didn't make a pull request. Edit: Uhm, you added the fix to the wrong file. For whatever reason you added it to Drow Ranger when the fix was for damages/lifesteal.lua.[/QUOTE] Opps :P
Perks named after Dota heroes. What could go wrong? [sp]Zeus ult perk time[/sp]
[QUOTE=code_gs;48043014]Perks named after Dota heroes. What could go wrong? [sp]Zeus ult perk time[/sp][/QUOTE] Don't ask or tell me :P Tell Tommy228
Alright, got GitHub and made a pull request fixing the original exploit and fixing your "fix" from a few days ago.
[QUOTE=Yashirmare;48049220]Alright, got GitHub and made a pull request fixing the original exploit and fixing your "fix" from a few days ago.[/QUOTE] Pushed it. I was tired when I tried fixing it and I must if edited the wrong file
Any possibility of this being compatible with PS2?
Made a fix for PS2! I am proud of myself O.o But wasn't hard :D Hope you can utilize it! :) Basically what i did is chaning all PS1 Parameters to PS2 Parameters. Since i am not sure how i can add it to the development as i am new to github i just created a download link :P I can assure that it works couse i tested it. Works 100%. A Thank you is appreciated ^^ [url]https://mega.nz/#F!tRNxxLAS!59eiyLNP2VEjFklCUrSQQw[/url]
Is there a code to make upgrades like this stackable and the code to have it in pointshop (Ps1)
dont work [highlight](User was banned for this post ("Dumb bump" - Sgt Doom))[/highlight]
Please help [CODE]concommand.Add("upgrades_menu", function() Menu = vgui.Create("DFrame") local w,h = 600, math.Clamp( 658, 0, ScrH()) Menu:SetSize(w, h) Menu.Points = ply.PS2_Wallet.points Menu:SetTitle("Upgrades (You have "..Menu.Points.." points)") Menu.Think = function(self) if ply.PS2_Wallet.points != self.Points then self.Points = ply.PS2_Wallet.points self:SetTitle("Upgrades (You have "..self.Points.." points)") end end Menu:Center() local Panel = GetUpgradesPanel() Panel:SetParent(Menu) Panel:SetPos(5,30) Panel:SetSize(w-10, h-35) Menu:MakePopup() end)[/CODE] [CODE][ERROR] addons/tttupgrades-master/lua/cl_upgrades.lua:393: attempt to index global 'ply' (a nil value) 1. unknown - addons/tttupgrades-master/lua/cl_upgrades.lua:393 2. unknown - lua/includes/modules/concommand.lua:54 [/CODE]
ply = LocalPlayer() [CODE]concommand.Add("upgrades_menu", function() local ply = LocalPlayer() Menu = vgui.Create("DFrame") local w,h = 600, math.Clamp( 658, 0, ScrH()) Menu:SetSize(w, h) Menu.Points = ply.PS2_Wallet.points Menu:SetTitle("Upgrades (You have "..Menu.Points.." points)") Menu.Think = function(self) if ply.PS2_Wallet.points != self.Points then self.Points = ply.PS2_Wallet.points self:SetTitle("Upgrades (You have "..self.Points.." points)") end end Menu:Center() local Panel = GetUpgradesPanel() Panel:SetParent(Menu) Panel:SetPos(5,30) Panel:SetSize(w-10, h-35) Menu:MakePopup() end)[/CODE]
[QUOTE=Pypsikan;52557626]ply = LocalPlayer() [CODE]concommand.Add("upgrades_menu", function() local ply = LocalPlayer() Menu = vgui.Create("DFrame") local w,h = 600, math.Clamp( 658, 0, ScrH()) Menu:SetSize(w, h) Menu.Points = ply.PS2_Wallet.points Menu:SetTitle("Upgrades (You have "..Menu.Points.." points)") Menu.Think = function(self) if ply.PS2_Wallet.points != self.Points then self.Points = ply.PS2_Wallet.points self:SetTitle("Upgrades (You have "..self.Points.." points)") end end Menu:Center() local Panel = GetUpgradesPanel() Panel:SetParent(Menu) Panel:SetPos(5,30) Panel:SetSize(w-10, h-35) Menu:MakePopup() end)[/CODE][/QUOTE] Ty so much <3
Sorry, you need to Log In to post a reply to this thread.