Jump to content

Recommended Posts

The title is self-explanatory, I hope. I'm not looking to deactivate the spider creep, but rather cancel out (or reduce) the debuffs found on certain items, such as carrying the suspicious marble. I want to speed to not be -%90 for example, or the piggyback, I don't want it to be -%10 speed. 

Any and all help is much appreciated.

With the following code, you can change all walking speed multipliers of selected prefabs to the same amount. I've set it to 1, which completely removes any walk speed multiplier.

local prefabs_to_alter =
{ 
	"armormarble",
}

for i, v in ipairs(prefabs_to_alter) do
	AddPrefabPostInit(v, function(inst)
		if inst.components.equippable then
			inst.components.equippable.walkspeedmult = 1
		end
	end)
end

If you want to set different values for each of them, you can do this:

local prefabs_to_alter =
{ 
	armormarble = 0.10,
}

for p, v in pairs(prefabs_to_alter) do
	AddPrefabPostInit(p, function(inst)
		if inst.components.equippable then
			inst.components.equippable.walkspeedmult = v
		end
	end)
end

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...