PWAD -- Mod by Thedarkedgyhope fell free to reuse idc addHook("AbilitySpecial", function(player) if player.mo.skin == "sonic" -- What player u are eh? player.target = P_LookForEnemies(player, true, true) -- My target is Enemies if not P_IsObjectOnGround(player.mo) -- Will not work when player is on ground and G_PlatformGametype() -- This just returns the game to the game typer ur playing like coop or match stuff and (player.pflags & PF_JUMPED) -- will only work when am jumped and (player.cmd.buttons & BT_CUSTOM1) and not (player.pflags & PF_THOKKED) -- Wont Work when u are thokked if player.target -- is there is any target near me P_HomingAttack(player.mo, player.target) -- U yes u ima steal u liver S_StartSound(player.mo, sfx_zoom) -- Starts Sound Effect P_SpawnThokMobj(player) -- lets spawn a thok right behing meh G_PlatformGametype() end end end end) freeslot("SKINCOLOR_GREENRAY") -- freesloting colors skincolors[SKINCOLOR_GREENRAY] = { name = "Ggray", ramp = {112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112}, chatcolor = V_BLUEMAP, accessible = false } addHook("PlayerThink", function(player) if player.mo and player.mo.skin == "sonic" and not (player.pflags & PF_THOKKED) and (player.pflags & PF_JUMPED) and (player.cmd.buttons & BT_CUSTOM1) local trail = P_SpawnGhostMobj(player.mo) trail.colorized = true trail.color = SKINCOLOR_GREENRAY trail.tics = 3 trail.blendmode = AST_ADD end end) addHook("PlayerThink", function(player) if player.mo and player.mo.skin == "sonic" and not (player.pflags & PF_THOKKED) and (player.pflags & PF_JUMPED) and (player.cmd.buttons & BT_CUSTOM1) player.target = P_LookForEnemies(player, true, true) if player.target local trail = P_SpawnGhostMobj(player.target) trail.colorized = true trail.color = SKINCOLOR_GREENRAY trail.tics = 7 trail.blendmode = AST_ADD end end end) þLUA_GAME