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

Discuss all aspects related to modding Zandronum here.
Post Reply
User avatar
Ænima
Addicted to Zandronum
Posts: 3579
Joined: Tue Jun 05, 2012 6:12 pm

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

#1

Post by Ænima » Thu Aug 16, 2012 3:00 am

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.
Reinforcements: midgame Survival joining/respawning
Doom64: Unabsolved: Doom64 + Diablo II
ZandroSkins: a pack made by our community
AeniPuffs: 3D blood and bullet puff effects, free to use for your own mods
Squad Radio: a WASD-based radio chat menu, add your own custom sounds!
Mercenaries (on hold)
Image

Llewellyn
Forum Regular
Posts: 578
Joined: Mon Jul 02, 2012 7:12 am

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

#2

Post by Llewellyn » Thu Aug 16, 2012 3:27 am

The only work around to it would be to just use Normal invasion and somehow fake Survival with DEATH+RESPAWN scripts.

User avatar
Ænima
Addicted to Zandronum
Posts: 3579
Joined: Tue Jun 05, 2012 6:12 pm

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

#3

Post by Ænima » Thu Aug 16, 2012 3:31 am

I think normal invasion does the same thing though. Iunno i'll try it in the morning.
Reinforcements: midgame Survival joining/respawning
Doom64: Unabsolved: Doom64 + Diablo II
ZandroSkins: a pack made by our community
AeniPuffs: 3D blood and bullet puff effects, free to use for your own mods
Squad Radio: a WASD-based radio chat menu, add your own custom sounds!
Mercenaries (on hold)
Image

Llewellyn
Forum Regular
Posts: 578
Joined: Mon Jul 02, 2012 7:12 am

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

#4

Post by Llewellyn » Thu Aug 16, 2012 3:32 am

Æ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.

Watermelon
Zandrone
Posts: 1244
Joined: Thu Jun 28, 2012 9:07 pm
Location: Rwanda

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

#5

Post by Watermelon » Thu Aug 16, 2012 3:36 am

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).
Last edited by Watermelon on Thu Aug 16, 2012 3:37 am, edited 1 time in total.

User avatar
Ænima
Addicted to Zandronum
Posts: 3579
Joined: Tue Jun 05, 2012 6:12 pm

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

#6

Post by Ænima » Thu Aug 16, 2012 3:40 am

Oh boy, that'll be a mess.
Reinforcements: midgame Survival joining/respawning
Doom64: Unabsolved: Doom64 + Diablo II
ZandroSkins: a pack made by our community
AeniPuffs: 3D blood and bullet puff effects, free to use for your own mods
Squad Radio: a WASD-based radio chat menu, add your own custom sounds!
Mercenaries (on hold)
Image

Llewellyn
Forum Regular
Posts: 578
Joined: Mon Jul 02, 2012 7:12 am

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

#7

Post by Llewellyn » Thu Aug 16, 2012 4:32 am

Æ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?

Post Reply