How can I make a character unselectable in multiplayer/record attack

-Compendium-

local pyromaniac on probation
I'm trying to make a mod where when you switch to a different form, the skin switches too.
But, one problem is because I make a whole new character with entirely different sprites, i'm wondering how I can make him unselectable in multiplayer modes/record attack
 
I'm trying to make a mod where when you switch to a different form, the skin switches too.
But, one problem is because I make a whole new character with entirely different sprites, i'm wondering how I can make him unselectable in multiplayer modes/record attack

The only way to make a character unselectable in Record Attack is by making him unselectable in Single player mode too. But it can't be unselectable in Multiplayer, unless you use a Lua script to force the character to the desired like Goldenshine did with X Sonic's Dark Form.
 
I'm gonna have to ask him how he did that because I'm not that good at Lua scripting

Try using this:
Force character:
local the_character = "sonic" // Replace "sonic" with your character's name
local blocked_characters = { // Insert the names of all the blocked characters inside this table
    "tails",
    "knuckles",
    "amy"
}

// Anything below this line shouldn't be edited, unless you know what you're doing.

addHook("PlayerThink", function(player)
    if player.mo
    and player.mo.valid
        for i = 1, #blocked_characters do
            if player.mo.skin == blocked_characters[i]
                R_SetPlayerSkin(player, the_character)
            end
        end
    end
end)
I didn't tested it, but it should work fine.
 
Pardon if I misinformed here, but wasn't something like this already done with the Deltarune characters Ralsei, since he has both a normal, and hatted version?
 
Pardon if I misinformed here, but wasn't something like this already done with the Deltarune characters Ralsei, since he has both a normal, and hatted version?

Nope. Ralsei's hatted version uses the sprites of the Superform taking advantage of that Ralsei doesn't uses them.
 
Last edited:

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

Back
Top