I know this is not a bug that can interfer with the gaming experience but, whatever.
I recently made a lua script to make the thok leave afterimages, it works well and everything. I used the PF_THOKKED internal flag to make it work, but somehow, this flag also applies for Tails and Knux when they use Fly or Gliding respectively, they make afterimages for uknow reasons.
I did same for the spin, it works well, as thok but afterimages also appear while using the Wind Shield's double jump. Here is the code in case it's needed
I recently made a lua script to make the thok leave afterimages, it works well and everything. I used the PF_THOKKED internal flag to make it work, but somehow, this flag also applies for Tails and Knux when they use Fly or Gliding respectively, they make afterimages for uknow reasons.
I did same for the spin, it works well, as thok but afterimages also appear while using the Wind Shield's double jump. Here is the code in case it's needed
Code:
//This Lua lump gives player afterimages for using some abilities.
//Give afterimages if spinning and thokking
addHook("ThinkFrame", do
for player in players.iterate
if not player.mo continue end
if (player.pflags & [B]PF_THOKKED[/B])
or (player.pflags & [B]PF_SPINNING[/B])
P_SpawnGhostMobj(player.mo)
end
end
end)
Last edited by a moderator: