Hello!
I'd like to apply for Modder status.
I've been working on creating mods for SM64 Coop Deluxe and I'd like to share them with the community through the official mods website.
I'm continuously learning and improving my modding skills, and I plan to publish original and polished mods in the future.
Thank you for your time and consideration!
I have already created a working mod and I'm looking forward to sharing more projects with the community.
Its about keep pressing the "L" button so mario will spin, so useful for beating bowser with keyboard, cuz its simulate spinning analog stick with keyboard
-- name: Funny Spinner
-- description: Simulates a spinning analog stick while holding L, By \\#ff7f7f\\Fallguy1322
local spinAngle = {}
local SPIN_SPEED = 0x1800
local STICK_MAG = 64
local function funny_spinner(m)
if m.playerIndex ~= 0 or m.controller == nil then
return
end
if spinAngle[m.playerIndex] == nil then
spinAngle[m.playerIndex] = 0
end
if (m.controller.buttonDown & L_TRIG) ~= 0 then
spinAngle[m.playerIndex] =
(spinAngle[m.playerIndex] + SPIN_SPEED) & 0xFFFF
-- Simulate the analog stick spinning.
m.controller.stickX = coss(spinAngle[m.playerIndex]) * STICK_MAG
m.controller.stickY = -sins(spinAngle[m.playerIndex]) * STICK_MAG
m.controller.stickMag = STICK_MAG
end
end
hook_event(HOOK_BEFORE_MARIO_UPDATE, funny_spinner)
I'd like to apply for Modder status.
I've been working on creating mods for SM64 Coop Deluxe and I'd like to share them with the community through the official mods website.
I'm continuously learning and improving my modding skills, and I plan to publish original and polished mods in the future.
Thank you for your time and consideration!
I have already created a working mod and I'm looking forward to sharing more projects with the community.
Its about keep pressing the "L" button so mario will spin, so useful for beating bowser with keyboard, cuz its simulate spinning analog stick with keyboard
Here is The code!
-- name: Funny Spinner
-- description: Simulates a spinning analog stick while holding L, By \\#ff7f7f\\Fallguy1322
local spinAngle = {}
local SPIN_SPEED = 0x1800
local STICK_MAG = 64
local function funny_spinner(m)
if m.playerIndex ~= 0 or m.controller == nil then
return
end
if spinAngle[m.playerIndex] == nil then
spinAngle[m.playerIndex] = 0
end
if (m.controller.buttonDown & L_TRIG) ~= 0 then
spinAngle[m.playerIndex] =
(spinAngle[m.playerIndex] + SPIN_SPEED) & 0xFFFF
-- Simulate the analog stick spinning.
m.controller.stickX = coss(spinAngle[m.playerIndex]) * STICK_MAG
m.controller.stickY = -sins(spinAngle[m.playerIndex]) * STICK_MAG
m.controller.stickMag = STICK_MAG
end
end
hook_event(HOOK_BEFORE_MARIO_UPDATE, funny_spinner)