Game handling Mobj weird (or I'm not paying attention)

Powershows

Member
Hey guys, creator of Blue Streak here, and I've come across another issue, and when I'm making a custom ability. I have my
P_Thrust(mobj_t mobj ), angle_t angle ), fixed_t move ), actionspeed)))) , then my game says (image below!). This is quite infuriating but yet another hurdle that would be nice for some help to get through! Line of code


addHook("PlayerThink", function(player)
if player.mo.skin ~= "sonic" then return end if (player.pflags & PF_JUMPED)
and player.rings>=20
and not (player.pflags & PF_THOKKED)
and (player.cmd.buttons & BT_CUSTOM1) then player.powers[pw_sneakers] = 30*TICRATE player.powers[pw_invulnerability] = 30*TICRATE S_StartSound(player.mo, sfx_supert) player.pflags = $|PF_THOKKED
end
end)
addHook("JumpSpinSpecial", function(player) if (player.flags & PF_JUMPED)
and player.rings>=10
and not (player.pflags & PF_THOKKED)
then
P_Thrust(mobj_t mobj ), angle_t angle ), fixed_t move ), actionspeed))))
player.pflags = $|PF_THOKKED
end
 

Attachments

  • Screenshot_20240503-082149.png
    Screenshot_20240503-082149.png
    216.5 KB · Views: 59
Did you not put anything in the P_Thrust section? You're supposed to do it like this P_Thrust(player.mo, player.mo.angle, 10*FRACUNIT)or whatever value you want.
(also next time put your code in a code box so that its clearer)
 

Who is viewing this thread (Total: 1, Members: 0, Guests: 1)

Back
Top