PWAD name = knuckles realname = Knuckles hudname = K.T.E startcolor = 96 prefcolor = Red supercolor = Red ability = CA_GLIDEANDCLIMB actionspd = 20 jumpfactor = 0 shieldscale = 1.1 normalspeed = 25 thrustfactor = 5 accelstart = 90 acceleration = 30 contspeed = 17 contangle = 7 flags = SF_SUPER|SF_NOSUPERJUMPBOOST|SF_CANBUSTWALLSaddHook("ThinkFrame", function() for player in players.iterate do if player.mo.skin ~= "knuckles" then continue end --curling the player if not (player.mo.state == S_PLAY_ROLL) and (P_IsObjectOnGround(player.mo) == false) and not (player.pflags & PF_STASIS) and not (player.pflags & PF_FULLSTASIS) and not (player.pflags & PF_JUMPED) and not (player.pflags & PF_STARTDASH) and not (player.pflags & PF_GLIDING) and player.playerstate == PST_LIVE and not player.powers[pw_super] then player.pflags = PF_JUMPED player.mo.state = S_PLAY_JUMP end end end)addHook("ThinkFrame", function() for player in players.iterate do if player.mo.skin ~= "knuckles" then continue end --variables if player.saves == nil then player.saves = 3 end if player.printstop == nil then player.printstop = true end if player.pressedcustom2 == nil then player.pressedcustom2 = false end if player.cando == nil then player.cando = TICRATE*1 end player.cando = $ - 1 --save if (P_IsObjectOnGround(player.mo) == true) and (player.cmd.buttons & BT_CUSTOM1) and player.playerstate == PST_LIVE and player.saves > 0 and player.cando < 1 and not player.powers[pw_super] then P_DamageMobj(player.mo) player.saves = $ - 1 player.cando = TICRATE*5 player.printstop = false end --printing saves left if player.printstop == false then print(player.saves) player.printstop = true end if (player.cmd.buttons & BT_CUSTOM2) and player.cando < 1 and player.saves > 0 and player.pressedcustom2 == false then print(player.saves) player.cando = TICRATE*5 player.pressedcustom2 = true end if not (player.cmd.buttons & BT_CUSTOM2) then player.pressedcustom2 = false end end end) --reversing variables on level start addHook("PlayerSpawn", function(player) player.saves = 3 player.cando = TICRATE*1 end) UP_SKINa]LUA_CURL¾`LUA_SAVE