Void Animates
Just a guy who loves... EVERYTHING!
i mean, i dont know how to even do advanced lua
so how would getting the functions be useful? no offense..
so how would getting the functions be useful? no offense..
heh, no offense to funcitonsi mean, i dont know how to even do advanced lua
so how would getting the functions be useful? no offense..
addHook("SpinSpecial", function(player)
if player.mo.skin ~= "sonic" then
return
end
if player.pflags & PF_THOKKED then
return true
end
local actionspd = FixedMul(player.mo.scale, player.actionspd)
if player.mo.eflags & MFE_UNDERWATER then
actionspd = $/2
end
if not P_IsObjectOnGround(player.mo)
and not (player.pflags & PF_THOKKED) then
P_NukeEnemies(player.mo, player.mo, 100*FRACUNIT)
S_StartSound(player.mo, sfx_zoom)
player.mo.momy = 0
player.mo.momx = 0
P_SetObjectMomZ(player.mo, 10*FRACUNIT)
player.mo.state = S_PLAY_ROLL
return true
end
end)
P_LookForEnemies
and P_HomingAttack
. Check the Wiki for instructions on how to use themFalse. SRB2 Heroes' title screen is done entirely in Lua. HUD Hooks run in the title screen, as well as most Hooks like ThinkFrame.i think he just used only soc.
addHook("ThinkFrame", function(player)
if player.mo.skin == "sonic"
if player.mo.state == S_PLAY_JUMP
P_SpawnMobjFromMobj(mo, 0, 0, 0, MT_THOK)
player.pflags = $1|PF_THOKKED
end
end)
addHook("PlayerThink", function(player)
if player.mo.skin == "sonic" then
if player.mo.state == S_PLAY_JUMP then
P_SpawnMobjFromMobj(mo, 0, 0, 0, MT_THOK)
end
end
end)
So LUA can work in the title screen ! E P I KFalse. SRB2 Heroes' title screen is done entirely in Lua. HUD Hooks run in the title screen, as well as most Hooks like ThinkFrame.
OKAY SO. the thok trail is repeating now, but I still can't fix the green thing. Ill attempt to fix it now.ok, so it worked but the thok trail is green and it didn't repeat.
Color the thok sprite blue?OKAY SO. the thok trail is repeating now, but I still can't fix the green thing. Ill attempt to fix it now.
heroes jump in action
View attachment 63297
its funny how you forgot for player in players.iterate do
one, im lazy enough to not do thatColor the thok sprite blue?
true, i will try to fix it.one, im lazy enough to not do that
two, if i did color it blue, then it prob wouldnt be compatible with custom colors.
Dude, just change the color to match the current skincolor. It's not hard.one, im lazy enough to not do that
two, if i did color it blue, then it prob wouldnt be compatible with custom colors.
he said that if he were to change the color to blue, the color wouldn't change in multi-player.Dude, just change the color to match the current skincolor. It's not hard.
You don't set it to "blue," you set it to "player.mo.color" and then it uses the player's color when spawned.he said that if he were to change the color to blue, the color wouldn't change in multi-player.
Offftopic but can ya send the codeYou don't set it to "blue," you set it to "player.mo.color" and then it uses the player's color when spawned.
Edit:
View attachment 63762
Offftopic but can ya send the code
addHook("ThinkFrame", do
for player in players.iterate
if (player.mo and player.mo.valid)
if (player.pflags & PF_JUMPED)
player.jumpball = P_SpawnMobj(player.mo.x, player.mo.y, player.mo.z, MT_THOK)
player.jumpball.color = player.mo.color
end
end
end
end)
How can I restrict it to a char thoughLua:addHook("ThinkFrame", do for player in players.iterate if (player.mo and player.mo.valid) if (player.pflags & PF_JUMPED) player.jumpball = P_SpawnMobj(player.mo.x, player.mo.y, player.mo.z, MT_THOK) player.jumpball.color = player.mo.color end end end end)
Replace "sonic" with the name of the character. The quotation marks ("") are required.How can I restrict it to a char though
if (player.mo and player.mo.valid)
and (player.mo.skin == "sonic")
Damn. Thanks!Replace "sonic" with the name of the character. The quotation marks ("") are required.
Lua:if (player.mo and player.mo.valid) and (player.mo.skin == "sonic")