7GrandDadPGN / VapeV4ForRoblox

Vape V4 for Roblox, A project that has been in development for 4+ years.
Creative Commons Zero v1.0 Universal
200 stars 361 forks source link

Suggestion (nofall) #234

Closed ImInTheICU closed 1 year ago

ImInTheICU commented 1 year ago

Change the no-fall method from a constant repetitive remote spam to a hookmetamethod. Example:

local event = game:GetService("ReplicatedStorage").rbxts_include.node_modules:FindFirstChild("@rbxts").net.out._NetManaged.GroundHit
local namecall

namecall = hookmetamethod(game,"__namecall",function(self, ...)
    local args = {...}
    local method = getnamecallmethod():lower()
    if not checkcaller() and self == event and method == "fireserver" then
        table.clear(args)
        return namecall(self, unpack(args))
    end
    return namecall(self, ...)
end)
7GrandDadPGN commented 1 year ago

technically I only need to do nofall on respawn, that will be accomplished in the rewrite, and no that's not how the nofall works.

ImInTheICU commented 1 year ago

Seems to work fine, It's definitely better then spamming a remote.