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
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