-- aj@worldsbe.st -- "FIRMSNEAKER" - boosts sneaker items to 50% speedboost, even on hard, while not affecting dash panels -- let's move this out of server repacks since file limit is a billion now. addHook("ThinkFrame", do for p in players.iterate if p.spectator continue end if not p.mo.valid then continue end if p.FSlastframeitem ~= nil then if p.kartstuff[k_sneakertimer] > p.FSlastframetimer then if p.FSlastframeitem == KITEM_SNEAKER and p.kartstuff[k_itemtype] ~= KITEM_SNEAKER then --print("YES last sneaker") p.FSdohardsneaker = true elseif p.kartstuff[k_itemtype] == KITEM_SNEAKER and p.kartstuff[k_itemamount] < p.FSlastframeamount then --print("YES used multi sneaker") p.FSdohardsneaker = true elseif p.kartstuff[k_rocketsneakertimer] and p.FSlastframebutton == 0 and (p.cmd.buttons & BT_ATTACK) then --print("ROCKETSNEAKER CHECK BOYO") p.FSdohardsneaker = true else --print("NO got boost from another source") p.FSdohardsneaker = false end end end --print(p.FSlastframebutton) if p.FSdohardsneaker and p.kartstuff[k_sneakertimer] then p.kartstuff[k_speedboost] = max($, FRACUNIT/2) end p.FSlastframeitem = p.kartstuff[k_itemtype] p.FSlastframeamount = p.kartstuff[k_itemamount] p.FSlastframetimer = p.kartstuff[k_sneakertimer] -- if p.FSlastframebutton == nil then p.FSlastframebutton = 0 end p.FSlastframebutton = (p.cmd.buttons & BT_ATTACK) and ($+1) or 0 -- p.FSdohardsneaker = p.FSdohardsneaker or false end end)