Tanksy wrote:Ahh! I thought that the only time I had to specify players was with GetUserCvar.
Thanks. It's a shame I have to use SERVER, I was hoping to let separate players run with toaster modes.
I found a way to do it with user. You can specify each individual user with "consoleplayer" (no quotes). Also, since this is ZScript, you will want to use ZScript's CVar.GetCvar. So the line that gets the CVar could be:
Code: Select all
TNT1 A 0 A_JumpIf(CVar.GetCvar(mmp_toaster) == 0, "Works")
As Arctangent pointed out, however, deleting an actor would most likely result in a desync, so I would not recommend removing (or adding) any actors as part of your toaster mode. A more appropriate use would be using lower quality graphics if the user enables the toaster mode. I would recommend you do some serious testing to make sure that whatever you put in the toaster mode does not result in a desync.