• TTT Wubber Boots
    14 replies, posted
whats up guys i am trying to find a wubber boots add on for the points shop but all of the codes that i get cause lua errors at the start of the round and when people equips it the way that the code recognizes the fall damage causes them. what i want to know does anyone have wubber boots (no fall damage) that doesn't cause lua errors or if there is a way to block that certain lua error from appearing every time all help would be greatly appreciated contact me through steam or skype at "npd1124" thanks
Provide code & the error to get help. The correct forum section would help also.
I have a "Parachute" that I made for my TTT server, which could easily be changed with variables into a rubber boot.
Parachute is a MUCH better swep though, make it nice and visible but quick falling so they have to use it wisely :) Although both are fairly easy to code the parachute one is much more amusing.
It's not a swep, it's a pointshop item that just reduces fall damage 50%
[QUOTE=nofear1999;42481329]It's not a swep, it's a pointshop item that just reduces fall damage 50%[/QUOTE] potato potato... TTT should be ran via the traitor/detective menu for game altering effects not pointshop/permabuy.
this is the code ITEM.Name = 'Rubber Boots (No Fall Damage)' ITEM.Price = 0 ITEM.Material = 'vgui/ttt/icon_fall.vmt' ITEM.Bone = 'ValveBiped.Bip01_Spine2' local ShouldRecieveFallDamage function ITEM:OnEquip(ply, modifications) ply:PS_AddClientsideModel(self.ID) ply.ShouldRecieveFallDamage = true end function ITEM:OnHolster(ply) ply:PS_RemoveClientsideModel(self.ID) ply.ShouldRecieveFallDamage = false end function ITEM:ModifyClientsideModel(ply, model, pos, ang) model:SetModelScale(0, 0) pos = pos + (ang:Right() * 7) + (ang:Forward() * 6) return model, pos, ang end local function ReduceFallDamage(ent, dmginfo) if ent:IsPlayer() and ent.ShouldRecieveFallDamage and dmginfo:IsFallDamage() then dmginfo:ScaleDamage(0) end end hook.Add("EntityTakeDamage", "ReduceFallDamage", ReduceFallDamage)
What are the lua errors? We can't help you if we don't know the errors.
Well this is surprising, people are actually helping others on this forum. This rarely seems to happen
[QUOTE=TornadoAP;42484080]Well this is surprising, people are actually helping others on this forum. This rarely seems to happen[/QUOTE] I help people all the time on here; just because you've had a bad experience with some other users on this forum does not mean no one helps.
[QUOTE=npd1124;42483265]this is the code ITEM.Name = 'Rubber Boots (No Fall Damage)' ITEM.Price = 0 ITEM.Material = 'vgui/ttt/icon_fall.vmt' ITEM.Bone = 'ValveBiped.Bip01_Spine2' local ShouldRecieveFallDamage function ITEM:OnEquip(ply, modifications) ply:PS_AddClientsideModel(self.ID) ply.ShouldRecieveFallDamage = true end function ITEM:OnHolster(ply) ply:PS_RemoveClientsideModel(self.ID) ply.ShouldRecieveFallDamage = false end function ITEM:ModifyClientsideModel(ply, model, pos, ang) model:SetModelScale(0, 0) pos = pos + (ang:Right() * 7) + (ang:Forward() * 6) return model, pos, ang end local function ReduceFallDamage(ent, dmginfo) if ent:IsPlayer() and ent.ShouldRecieveFallDamage and dmginfo:IsFallDamage() then dmginfo:ScaleDamage(0) end end hook.Add("EntityTakeDamage", "ReduceFallDamage", ReduceFallDamage)[/QUOTE] I don't see anything obviously wrong, but I don't know pointshop very well. Also, [code] [lua] your code [/lua] [/code] will increase readability and people will be more willing to help. [editline]11th October 2013[/editline] [QUOTE=Pantho;42487448]I don't see anything obviously wrong, but I don't know pointshop very well. Also, [code] [lua] your code [/lua] [/code] will increase readability and people will be more willing to help.[/QUOTE] Awesome forum bug above just displayed the HTML code for the LUA forum tags :/. [ LUA ] [/LUA] are the lua tags.
this is the error i get [ERROR] addons/pointshop-master/lua/cl_player_extension.lua:70: bad argument #1 to 'ClientsideModel' (string expected, got nil) 1. ClientsideModel - [C]:-1 2. PS_AddClientsideModel - addons/pointshop-master/lua/cl_player_extension.lua:70 3. func - addons/pointshop-master/lua/cl_pointshop.lua:93 4. unknown - lua/includes/modules/net.lua:31
[QUOTE=npd1124;42491816]this is the error i get [ERROR] addons/pointshop-master/lua/cl_player_extension.lua:70: bad argument #1 to 'ClientsideModel' (string expected, got nil) 1. ClientsideModel - [C]:-1 2. PS_AddClientsideModel - addons/pointshop-master/lua/cl_player_extension.lua:70 3. func - addons/pointshop-master/lua/cl_pointshop.lua:93 4. unknown - lua/includes/modules/net.lua:31[/QUOTE] Are you sure the rubber boots are causing it? It looks like it's an error from a core file.
-snip-
[QUOTE=code_gs;42496647]Are you sure the rubber boots are causing it? It looks like it's an error from a core file.[/QUOTE] yes i am positive casue when i take them oput no errors and the errors come the exact second you equip the boots
Sorry, you need to Log In to post a reply to this thread.