Page 1 of 1

How can I stop Survival Invasion from clearing inventory and variables?

Posted: Thu Aug 16, 2012 3:00 am
by Ænima
Apparently, the Survival Invasion gamemode clears a player's inventory and also resets all global variables at the start of the map. This means that I can't use Ijon Tichy's SaveWeapons/LoadWeapons script to work around it. (I tried ...)

Is there any way to disable this behavior? If not, is there a reliable workaround?

I understand why Invasion maps behave this way (don't want players spamming through the next map with all of the powerful weapons they got the map before, right?). But for mods like Mercenaries, which rely on players being able to keep their money and weapons in between levels, this is a bad thing.

RE: How can I stop Survival Invasion from clearing inventory and variables?

Posted: Thu Aug 16, 2012 3:27 am
by Llewellyn
The only work around to it would be to just use Normal invasion and somehow fake Survival with DEATH+RESPAWN scripts.

RE: How can I stop Survival Invasion from clearing inventory and variables?

Posted: Thu Aug 16, 2012 3:31 am
by Ænima
I think normal invasion does the same thing though. Iunno i'll try it in the morning.

RE: How can I stop Survival Invasion from clearing inventory and variables?

Posted: Thu Aug 16, 2012 3:32 am
by Llewellyn
Ænima wrote: I think normal invasion does the same thing though. Iunno i'll try it in the morning.
Hurr derp, yea it does I am dumb.

RE: How can I stop Survival Invasion from clearing inventory and variables?

Posted: Thu Aug 16, 2012 3:36 am
by Watermelon
resets all global variables
The fuck, it shouldn't do that O_o (or should it?)



I have a way, save it into the INI and retrieve that (on the server end).

RE: How can I stop Survival Invasion from clearing inventory and variables?

Posted: Thu Aug 16, 2012 3:40 am
by Ænima
Oh boy, that'll be a mess.

RE: How can I stop Survival Invasion from clearing inventory and variables?

Posted: Thu Aug 16, 2012 4:32 am
by Llewellyn
Ænima wrote: Oh boy, that'll be a mess.
Well actually, it would be pretty easy with StrParam. You could easily save the variables, the problem is, WHEN do you save them?