Well, here we go. I've spent quite abit of time combing through the JASS files, trying to figure out how exactly this works. My conclusion is that its not actually built into the game.
A trigger is called whenever a unit dies. This trigger first checks to see if the unit that dies is a hero. If it is, then it terminates. It then proceeds to get the point value of the unit, which is stored into a variable, monsterPoints. The trigger then adds in a triggersleep, passing I2R (monsterPoints). monsterPoints is found using the GetUnitValueByType function. The only way this respawn cheat would work is if the point values were somehow changed. However, nowhere in the code is SetUnitValueByType called, so this leads me to the conclusion that this isn't actually based inside of the map. Looking through, I didn't see a single chat message trigger that looks suspiciously like a code entry.
Thoughts anyone? I would love to be proven wrong on this.
A trigger is called whenever a unit dies. This trigger first checks to see if the unit that dies is a hero. If it is, then it terminates. It then proceeds to get the point value of the unit, which is stored into a variable, monsterPoints. The trigger then adds in a triggersleep, passing I2R (monsterPoints). monsterPoints is found using the GetUnitValueByType function. The only way this respawn cheat would work is if the point values were somehow changed. However, nowhere in the code is SetUnitValueByType called, so this leads me to the conclusion that this isn't actually based inside of the map. Looking through, I didn't see a single chat message trigger that looks suspiciously like a code entry.
Thoughts anyone? I would love to be proven wrong on this.