mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-31 02:14:09 +03:00
Add changerespawncolour() script command
This command simply changes the color that the player respawns with upon death. The respawn color also persists through custom save files. Closes #830.
This commit is contained in:
@@ -1672,6 +1672,10 @@ void scriptclass::run(void)
|
||||
obj.entities[i].colour = getcolorfromname(words[1]);
|
||||
}
|
||||
}
|
||||
else if (words[0] == "changerespawncolour")
|
||||
{
|
||||
game.respawncolour = getcolorfromname(words[1]);
|
||||
}
|
||||
else if (words[0] == "altstates")
|
||||
{
|
||||
obj.altstates = ss_toi(words[1]);
|
||||
@@ -3184,6 +3188,8 @@ void scriptclass::hardreset(void)
|
||||
|
||||
game.disabletemporaryaudiopause = true;
|
||||
|
||||
game.respawncolour = 0;
|
||||
|
||||
//dwgraphicsclass
|
||||
graphics.backgrounddrawn = false;
|
||||
graphics.textbox.clear();
|
||||
|
||||
Reference in New Issue
Block a user