Super jump perk HELP

Right i have added a super jump power up e.g low gravity but it dose not work with auto jump is there any way to fix this ???

here is the code to the power up;

ITEM.Name = “Low Gravity”
ITEM.Cost = 500000
ITEM.Description = “Sets low gravity on yourself when you spawn.”
ITEM.Model = ‘models/props_junk/GlassBottle01a.mdl’
ITEM.NoPreview = true

ITEM.Functions = {
OnGive = function(ply, item)
item.Hooks.PlayerSpawn(ply, item)
end,

    OnTake = function(ply, item)
            local grav = ply.OldGravity or 1
            ply:SetGravity(5)
    end

}

ITEM.Hooks = {
PlayerSpawn = function(ply, item)
if not ply.OldGravity then
ply.OldGravity = ply:GetGravity()
end

            ply:SetGravity(5)
    end

}

This doesn’t touch any jump code. All it does is modify the gravity. It’s probably an issue with your jump script.

Could u help at all this is a item u can but and it should affect the when u jump and it dose however i dose not like teh auto jump on DR :S

Post the jump code.

I am new to this soo i am not sure what u mean :S sorry

The code for the auto-jump. I can’t just predict what is wrong.

Do u have any idea where that is ??

Not until you post the code.

I will have a check if not i will ask server owner tomozz :S

May i ask, is this for pointshop by _Undefined?

Its this Pointshop

Imgur

That’s _Undefined’s with a Coderhire skin.

NEW CODE



ITEM.Name = 'Low Gravity'
ITEM.Price = 500000
ITEM.Model = 'models/props_junk/GlassBottle01a.mdl'
ITEM.NoPreview = true
local gravity = 0.25 --Default is 1

function ITEM:OnEquip(ply)
	ply:SetGravity(gravity)
end

function ITEM:OnHolster(ply)
	ply:SetGravity(1)
end



That still doesn’t change anything.

Yes it does hes got a auto of date code for pointshop hes looking for a low gravity perk …

Thanks the code worked however i have found that is disables its self in certain parts of maps do u know what could cause this if so how to fix it

The derp in this thread is painful. That code isn’t about jumps either. Just low grav. Which perhaps is what you meant… I’m not sure. Please try to be specific.

.

First off, use punctuation unless you intended for that to be a giant run on sentence.

Second, that shouldn’t disable itself in any part of the map because there is no code to do something like that. It should stay the same gravity the entire time until your holster it

That means the map is modifying the gravity, which is something you cannot control.



ITEM.Name = 'Low Gravity'
ITEM.Price = 500000
ITEM.Model = 'models/props_junk/GlassBottle01a.mdl'
ITEM.NoPreview = true
local gravity = 0.25 --Default is 1

local function ITEM:OnEquip(ply)
	ply:SetGravity(gravity)
end

local function ITEM:OnHolster(ply)
	ply:SetGravity(1)
end


[editline]19th June 2014[/editline]

try that