Author Topic: CityRPG and Last Man Standing mode.  (Read 620 times)

I'm doing bugfixes on an old version of CityRPG that a friend rustled up for me.  One of the bugs was that some sort of last man standing mod was enabled.  No one could respawn until there was only 1 person left.  This was weird and I pored over the script looking for "Everyone has died.  No one wins!"  The message that is displayed after... well, everyone has died. I couldn't find it anywhere in the script, so I assumed it was some default game feature I'd never heard of that was being enabled by this mod.  So I did a search for the word "Minigame" and found the part of the script that sets up the minigame.  I couldn't find anything wrong at a glance, so I compared it to another version of cityRPG that has... different issues, but not this particular one.

After some comparison I found the issue.

Code: [Select]
respawnTime = 0;
Apparently with the speedkart gamemode came a last man standing feature.  Set the respawn time to 0 and you get last man standing.  Set it to anything above 0 and you get regular gameplay.

Kinda cool to know it exists and could be used in the future.  But still, something to watch out for when fixing older mods or making your own.

Soooo. You don't need help with anything?