2020-07-20 16:43:06 +00:00
|
|
|
//-------------------------------------------------------------------------
|
|
|
|
/*
|
|
|
|
Copyright (C) 1996, 2003 - 3D Realms Entertainment
|
2020-07-24 17:13:37 +00:00
|
|
|
Copyright (C) 2020 - Christoph Oelckers
|
2020-07-20 16:43:06 +00:00
|
|
|
|
|
|
|
This file is part of Duke Nukem 3D version 1.5 - Atomic Edition
|
|
|
|
|
|
|
|
Duke Nukem 3D is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU General Public License
|
|
|
|
as published by the Free Software Foundation; either version 2
|
|
|
|
of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
|
|
|
|
See the GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program; if not, write to the Free Software
|
|
|
|
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
|
|
|
|
Original Source: 1996 - Todd Replogle
|
|
|
|
Prepared for public release: 03/21/2003 - Charlie Wiederhold, 3D Realms
|
|
|
|
*/
|
|
|
|
//-------------------------------------------------------------------------
|
|
|
|
|
|
|
|
#include "ns.h"
|
|
|
|
#include "serializer.h"
|
|
|
|
#include "mapinfo.h"
|
|
|
|
#include "duke3d.h"
|
2020-07-21 20:46:26 +00:00
|
|
|
#include "gamestate.h"
|
2020-11-02 18:23:15 +00:00
|
|
|
#include "dukeactor.h"
|
2020-11-21 22:40:08 +00:00
|
|
|
#include "savegamehelp.h"
|
2021-12-05 16:36:57 +00:00
|
|
|
#include "gamevar.h"
|
2020-07-20 16:43:06 +00:00
|
|
|
|
2020-10-17 08:30:11 +00:00
|
|
|
//==========================================================================
|
|
|
|
//
|
|
|
|
//
|
|
|
|
//
|
|
|
|
//==========================================================================
|
|
|
|
|
2021-12-05 16:36:57 +00:00
|
|
|
|
|
|
|
BEGIN_DUKE_NS
|
|
|
|
|
|
|
|
FSerializer& Serialize(FSerializer& arc, const char* keyname, GameVarValue& w, GameVarValue* def);
|
2020-07-24 17:13:37 +00:00
|
|
|
void lava_serialize(FSerializer& arc);
|
|
|
|
void SerializeGameVars(FSerializer &arc);
|
|
|
|
|
2021-12-07 15:45:39 +00:00
|
|
|
static FSerializer& Serialize(FSerializer& arc, const char* key, FireProj& p, FireProj* def)
|
|
|
|
{
|
|
|
|
if (arc.BeginObject(key))
|
|
|
|
{
|
2021-12-30 11:04:00 +00:00
|
|
|
arc("x", p.pos.X)
|
|
|
|
("y", p.pos.Y)
|
|
|
|
("z", p.pos.Z)
|
|
|
|
("xv", p.vel.X)
|
|
|
|
("yv", p.vel.Y)
|
|
|
|
("zv", p.vel.Z)
|
2021-12-07 15:45:39 +00:00
|
|
|
.EndObject();
|
|
|
|
}
|
|
|
|
return arc;
|
|
|
|
}
|
|
|
|
|
2020-07-24 17:13:37 +00:00
|
|
|
|
2021-11-17 23:12:28 +00:00
|
|
|
FSerializer& Serialize(FSerializer& arc, const char* keyname, CraneDef& w, CraneDef* def)
|
|
|
|
{
|
|
|
|
if (arc.BeginObject(keyname))
|
|
|
|
{
|
2021-12-30 11:27:34 +00:00
|
|
|
arc("x", w.pos.X)
|
2021-12-30 11:28:48 +00:00
|
|
|
("y", w.pos.Y)
|
2021-12-30 11:29:46 +00:00
|
|
|
("z", w.pos.Z)
|
2021-12-30 11:30:47 +00:00
|
|
|
("polex", w.pole.X)
|
2021-12-30 11:31:36 +00:00
|
|
|
("poley", w.pole.Y)
|
2021-11-17 23:12:28 +00:00
|
|
|
("pole", w.poleactor)
|
|
|
|
.EndObject();
|
|
|
|
}
|
|
|
|
return arc;
|
|
|
|
}
|
|
|
|
|
2020-07-20 18:40:29 +00:00
|
|
|
FSerializer& Serialize(FSerializer& arc, const char* keyname, animwalltype& w, animwalltype* def)
|
|
|
|
{
|
2020-07-20 21:21:27 +00:00
|
|
|
if (arc.BeginObject(keyname))
|
|
|
|
{
|
2021-11-17 23:30:37 +00:00
|
|
|
arc("wallnum", w.wall)
|
2020-07-20 21:21:27 +00:00
|
|
|
("tag", w.tag)
|
|
|
|
.EndObject();
|
|
|
|
}
|
|
|
|
return arc;
|
2020-07-20 18:40:29 +00:00
|
|
|
}
|
2020-07-20 16:43:06 +00:00
|
|
|
|
2020-07-20 18:40:29 +00:00
|
|
|
FSerializer& Serialize(FSerializer& arc, const char* keyname, player_orig& w, player_orig* def)
|
|
|
|
{
|
2020-07-20 21:21:27 +00:00
|
|
|
if (arc.BeginObject(keyname))
|
|
|
|
{
|
2021-12-30 11:19:38 +00:00
|
|
|
arc("ox", w.opos.X)
|
2021-12-30 11:20:32 +00:00
|
|
|
("oy", w.opos.Y)
|
2021-12-30 11:21:39 +00:00
|
|
|
("oz", w.opos.Z)
|
2020-07-20 21:21:27 +00:00
|
|
|
("oa", w.oa)
|
|
|
|
("os", w.os)
|
|
|
|
.EndObject();
|
|
|
|
}
|
|
|
|
return arc;
|
2020-07-20 18:40:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
FSerializer& Serialize(FSerializer& arc, const char* keyname, player_struct& w, player_struct* def)
|
|
|
|
{
|
2020-07-20 21:21:27 +00:00
|
|
|
if (arc.BeginObject(keyname))
|
|
|
|
{
|
2021-12-22 09:36:09 +00:00
|
|
|
arc("posx", w.pos.X)
|
2021-12-22 09:40:26 +00:00
|
|
|
("posy", w.pos.Y)
|
2021-12-22 09:41:47 +00:00
|
|
|
("posz", w.pos.Z)
|
2020-10-11 14:55:12 +00:00
|
|
|
("angle", w.angle)
|
|
|
|
("horizon", w.horizon)
|
2021-05-15 08:23:50 +00:00
|
|
|
.Array("gotweapon", w.gotweapon, MAX_WEAPONS)
|
2020-07-20 21:21:27 +00:00
|
|
|
("pals", w.pals)
|
2021-12-22 09:26:51 +00:00
|
|
|
("fricx", w.fric.X)
|
2021-12-22 09:28:51 +00:00
|
|
|
("fricy", w.fric.Y)
|
2021-12-30 11:37:32 +00:00
|
|
|
("exitx", w.exit.X)
|
2021-12-30 11:39:32 +00:00
|
|
|
("exity", w.exit.Y)
|
2020-07-20 21:21:27 +00:00
|
|
|
("numloogs", w.numloogs)
|
|
|
|
("loogcnt", w.loogcnt)
|
2021-12-30 11:45:53 +00:00
|
|
|
.Array("loogie", w.loogie, w.numloogs)
|
2021-12-30 11:57:39 +00:00
|
|
|
("bobposx", w.bobpos.X)
|
2021-12-30 11:59:45 +00:00
|
|
|
("bobposy", w.bobpos.Y)
|
2020-07-20 21:21:27 +00:00
|
|
|
("pyoff", w.pyoff)
|
2021-12-30 11:14:55 +00:00
|
|
|
("posxv", w.vel.X)
|
2021-12-30 11:18:56 +00:00
|
|
|
("posyv", w.vel.Y)
|
2021-12-30 11:14:04 +00:00
|
|
|
("poszv", w.vel.Z)
|
2020-07-20 21:21:27 +00:00
|
|
|
("last_pissed_time", w.last_pissed_time)
|
|
|
|
("truefz", w.truefz)
|
|
|
|
("truecz", w.truecz)
|
|
|
|
("player_par", w.player_par)
|
|
|
|
("visibility", w.visibility)
|
|
|
|
("bobcounter", w.bobcounter)
|
|
|
|
("weapon_sway", w.weapon_sway)
|
|
|
|
("randomflamex", w.randomflamex)
|
|
|
|
("crack_time", w.crack_time)
|
|
|
|
("aim.mode", w.aim_mode)
|
2020-08-05 12:57:47 +00:00
|
|
|
("psectlotag", w.psectlotag)
|
2021-11-21 07:56:39 +00:00
|
|
|
("cursectnum", w.cursector)
|
2020-07-20 21:21:27 +00:00
|
|
|
("last_extra", w.last_extra)
|
|
|
|
("subweapon", w.subweapon)
|
|
|
|
.Array("ammo_count", w.ammo_amount, MAX_WEAPONS)
|
|
|
|
("wackedbyactor", w.wackedbyactor)
|
|
|
|
("frag", w.frag)
|
|
|
|
("fraggedself", w.fraggedself)
|
|
|
|
("curr_weapon", w.curr_weapon)
|
|
|
|
("last_weapon", w.last_weapon)
|
|
|
|
("tipincs", w.tipincs)
|
|
|
|
("wantweaponfire", w.wantweaponfire)
|
|
|
|
("holoduke_amount", w.holoduke_amount)
|
2020-11-02 23:20:51 +00:00
|
|
|
("newowner", w.newOwner)
|
2020-07-20 21:21:27 +00:00
|
|
|
("hurt_delay", w.hurt_delay)
|
|
|
|
("hbomb_hold_delay", w.hbomb_hold_delay)
|
|
|
|
("jumping_counter", w.jumping_counter)
|
|
|
|
("airleft", w.airleft)
|
|
|
|
("knee_incs", w.knee_incs)
|
|
|
|
("access_incs", w.access_incs)
|
|
|
|
("ftq", w.ftq)
|
2021-11-17 23:20:39 +00:00
|
|
|
("access_wallnum", w.access_wall)
|
2020-07-20 21:21:27 +00:00
|
|
|
("access_spritenum", w.access_spritenum)
|
|
|
|
("kickback_pic", w.kickback_pic)
|
|
|
|
("got_access", w.got_access)
|
|
|
|
("weapon_ang", w.weapon_ang)
|
|
|
|
("firstaid_amount", w.firstaid_amount)
|
|
|
|
("somethingonplayer", w.somethingonplayer)
|
|
|
|
("on_crane", w.on_crane)
|
2021-11-28 08:16:50 +00:00
|
|
|
("i", w.actor)
|
2020-07-20 21:21:27 +00:00
|
|
|
("one_parallax_sectnum", w.one_parallax_sectnum)
|
|
|
|
("over_shoulder_on", w.over_shoulder_on)
|
|
|
|
("random_club_frame", w.random_club_frame)
|
|
|
|
("fist_incs", w.fist_incs)
|
|
|
|
("dummyplayersprite", w.dummyplayersprite)
|
|
|
|
("extra_extra8", w.extra_extra8)
|
|
|
|
("quick_kick", w.quick_kick)
|
2020-07-26 08:18:55 +00:00
|
|
|
("last_quick_kick", w.last_quick_kick)
|
2020-07-20 21:21:27 +00:00
|
|
|
("heat_amount", w.heat_amount)
|
|
|
|
("actorsqu", w.actorsqu)
|
|
|
|
("timebeforeexit", w.timebeforeexit)
|
|
|
|
("customexitsound", w.customexitsound)
|
|
|
|
("weapreccnt", w.weapreccnt)
|
|
|
|
.Array("weaprecs", w.weaprecs, w.weapreccnt)
|
|
|
|
("interface_toggle_flag", w.interface_toggle_flag)
|
|
|
|
("dead_flag", w.dead_flag)
|
2021-04-15 08:00:58 +00:00
|
|
|
("resurrected", w.resurrected)
|
2020-07-20 21:21:27 +00:00
|
|
|
("show_empty_weapon", w.show_empty_weapon)
|
|
|
|
("scuba_amount", w.scuba_amount)
|
|
|
|
("jetpack_amount", w.jetpack_amount)
|
|
|
|
("steroids_amount", w.steroids_amount)
|
|
|
|
("shield_amount", w.shield_amount)
|
|
|
|
("holoduke_on", w.holoduke_on)
|
|
|
|
("pycount", w.pycount)
|
|
|
|
("weapon_pos", w.weapon_pos)
|
|
|
|
("frag_ps", w.frag_ps)
|
|
|
|
("transporter_hold", w.transporter_hold)
|
|
|
|
("last_full_weapon", w.last_full_weapon)
|
|
|
|
("footprintshade", w.footprintshade)
|
|
|
|
("boot_amount", w.boot_amount)
|
|
|
|
("on_warping_sector", w.on_warping_sector)
|
|
|
|
("footprintcount", w.footprintcount)
|
|
|
|
("hbomb_on", w.hbomb_on)
|
|
|
|
("jumping_toggle", w.jumping_toggle)
|
|
|
|
("rapid_fire_hold", w.rapid_fire_hold)
|
|
|
|
("on_ground", w.on_ground)
|
|
|
|
.Array("name", w.name, 32)
|
|
|
|
("inven_icon", w.inven_icon)
|
|
|
|
("buttonpalette", w.buttonpalette)
|
|
|
|
("jetpack_on", w.jetpack_on)
|
|
|
|
("spritebridge", w.spritebridge)
|
|
|
|
("lastrandomspot", w.lastrandomspot)
|
|
|
|
("scuba_on", w.scuba_on)
|
|
|
|
("footprintpal", w.footprintpal)
|
|
|
|
("heat_on", w.heat_on)
|
|
|
|
("holster_weapon", w.holster_weapon)
|
|
|
|
("falling_counter", w.falling_counter)
|
|
|
|
("refresh_inventory", w.refresh_inventory)
|
|
|
|
("toggle_key_flag", w.toggle_key_flag)
|
|
|
|
("knuckle_incs", w.knuckle_incs)
|
|
|
|
("walking_snd_toggle", w.walking_snd_toggle)
|
|
|
|
("palookup", w.palookup)
|
|
|
|
("hard_landing", w.hard_landing)
|
|
|
|
("max_secret_rooms", w.max_secret_rooms)
|
|
|
|
("secret_rooms", w.secret_rooms)
|
|
|
|
("max_actors_killed", w.max_actors_killed)
|
|
|
|
("actors_killed", w.actors_killed)
|
|
|
|
// RR from here on
|
|
|
|
("stairs", w.stairs)
|
|
|
|
("detonate_count", w.detonate_count)
|
2021-12-30 12:04:58 +00:00
|
|
|
("noise.X", w.noise.X)
|
|
|
|
("noise.Y", w.noise.Y)
|
2020-07-20 21:21:27 +00:00
|
|
|
("noise_radius", w.noise_radius)
|
|
|
|
("drink_timer", w.drink_timer)
|
|
|
|
("eat_timer", w.eat_timer)
|
|
|
|
("slotwin", w.SlotWin)
|
|
|
|
("recoil", w.recoil)
|
|
|
|
("detonate_time", w.detonate_time)
|
|
|
|
("yehaa_timer", w.yehaa_timer)
|
|
|
|
("drink_amt", w.drink_amt)
|
|
|
|
("eat", w.eat)
|
|
|
|
("drunkang", w.drunkang)
|
|
|
|
("eatang", w.eatang)
|
|
|
|
.Array("shotgun_state", w.shotgun_state, 2)
|
|
|
|
("donoise", w.donoise)
|
|
|
|
.Array("keys", w.keys, 5)
|
|
|
|
// RRRA from here on
|
|
|
|
("drug_aspect", w.drug_aspect)
|
|
|
|
("drug_timer", w.drug_timer)
|
|
|
|
("seasick", w.SeaSick)
|
|
|
|
("mamaend", w.MamaEnd)
|
|
|
|
("motospeed", w.MotoSpeed)
|
|
|
|
("moto_drink", w.moto_drink)
|
|
|
|
("tiltstatus", w.TiltStatus)
|
|
|
|
("vbumpnow", w.VBumpNow)
|
|
|
|
("vbumptarget", w.VBumpTarget)
|
|
|
|
("turbcount", w.TurbCount)
|
|
|
|
.Array("drug_stat", w.drug_stat, 3)
|
|
|
|
("drugmode", w.DrugMode)
|
|
|
|
("lotag800kill", w.lotag800kill)
|
|
|
|
("sea_sick_stat", w.sea_sick_stat)
|
|
|
|
("hurt_delay2", w.hurt_delay2)
|
|
|
|
("nocheat", w.nocheat)
|
|
|
|
("onmotorcycle", w.OnMotorcycle)
|
|
|
|
("onboat", w.OnBoat)
|
|
|
|
("moto_underwater", w.moto_underwater)
|
|
|
|
("notonwater", w.NotOnWater)
|
|
|
|
("motoonground", w.MotoOnGround)
|
|
|
|
("moto_do_bump", w.moto_do_bump)
|
|
|
|
("moto_bump_fast", w.moto_bump_fast)
|
|
|
|
("moto_on_oil", w.moto_on_oil)
|
|
|
|
("moto_on_mud", w.moto_on_mud)
|
|
|
|
// new stuff
|
2020-09-23 15:01:50 +00:00
|
|
|
("actions", w.sync.actions)
|
2020-11-29 13:10:03 +00:00
|
|
|
.Array("frags", w.frags, MAXPLAYERS)
|
2021-12-05 12:43:31 +00:00
|
|
|
("uservars", w.uservars)
|
2022-01-15 14:48:50 +00:00
|
|
|
("fistsign", w.fistsign)
|
2020-07-20 21:21:27 +00:00
|
|
|
.EndObject();
|
|
|
|
|
|
|
|
w.invdisptime = 0;
|
2021-12-22 11:40:42 +00:00
|
|
|
w.opos.X = w.pos.X;
|
2021-12-22 11:42:06 +00:00
|
|
|
w.opos.Y = w.pos.Y;
|
2021-12-22 11:44:17 +00:00
|
|
|
w.opos.Z = w.pos.Z;
|
2020-07-20 21:21:27 +00:00
|
|
|
w.opyoff = w.pyoff;
|
2022-01-15 14:48:50 +00:00
|
|
|
w.backupweapon();
|
2020-11-07 07:16:16 +00:00
|
|
|
w.sync.actions &= SB_CENTERVIEW|SB_CROUCH; // these are the only bits we need to preserve.
|
2020-07-20 21:21:27 +00:00
|
|
|
}
|
|
|
|
return arc;
|
2020-07-20 18:40:29 +00:00
|
|
|
}
|
2020-07-20 16:43:06 +00:00
|
|
|
|
2020-10-17 07:06:09 +00:00
|
|
|
|
2021-12-05 08:20:41 +00:00
|
|
|
void DDukeActor::Serialize(FSerializer& arc)
|
2020-07-20 16:43:06 +00:00
|
|
|
{
|
2021-12-05 08:20:41 +00:00
|
|
|
//AActor* def = GetDefault();
|
|
|
|
|
|
|
|
Super::Serialize(arc);
|
|
|
|
|
|
|
|
arc("cgg", cgg)
|
|
|
|
("spriteextra", spriteextra)
|
2021-12-27 22:52:16 +00:00
|
|
|
("picnum", attackertype)
|
2021-12-05 08:20:41 +00:00
|
|
|
("ang", ang)
|
|
|
|
("extra", extra)
|
|
|
|
("owneractor", ownerActor)
|
|
|
|
("owner", hitOwnerActor)
|
|
|
|
("movflag", movflag)
|
|
|
|
("tempang", tempang)
|
|
|
|
("actorstayput", actorstayput)
|
|
|
|
("dispicnum", dispicnum)
|
|
|
|
("timetosleep", timetosleep)
|
|
|
|
("floorz", floorz)
|
|
|
|
("ceilingz", ceilingz)
|
2021-12-30 11:54:08 +00:00
|
|
|
("lastvx", ovel.X)
|
2021-12-30 11:55:05 +00:00
|
|
|
("lastvy", ovel.Y)
|
2021-12-05 08:20:41 +00:00
|
|
|
("aflags", aflags)
|
|
|
|
("saved_ammo", saved_ammo)
|
|
|
|
("temp_actor", temp_actor)
|
|
|
|
("seek_actor", seek_actor)
|
|
|
|
.Array("temp_data", temp_data, 6)
|
|
|
|
.Array("temo_wall", temp_walls, 2)
|
2021-12-05 12:43:31 +00:00
|
|
|
("temp_sect", temp_sect)
|
2021-12-07 15:45:39 +00:00
|
|
|
("uservars", uservars)
|
|
|
|
|
|
|
|
("fireproj", fproj);
|
2020-07-20 16:43:06 +00:00
|
|
|
}
|
|
|
|
|
2021-12-05 08:20:41 +00:00
|
|
|
|
2021-11-06 20:53:15 +00:00
|
|
|
FSerializer& Serialize(FSerializer& arc, const char* keyname, Cycler& w, Cycler* def)
|
|
|
|
{
|
|
|
|
static Cycler nul;
|
|
|
|
if (!def) def = &nul;
|
|
|
|
if (arc.BeginObject(keyname))
|
|
|
|
{
|
2021-11-18 19:17:47 +00:00
|
|
|
arc("sector", w.sector, def->sector)
|
2021-11-06 20:53:15 +00:00
|
|
|
("lotag", w.lotag, def->lotag)
|
|
|
|
("hitag", w.hitag, def->hitag)
|
|
|
|
("shade1", w.shade1, def->shade1)
|
|
|
|
("shade2", w.shade2, def->shade2)
|
|
|
|
("state", w.state, def->state)
|
|
|
|
.EndObject();
|
|
|
|
}
|
|
|
|
return arc;
|
|
|
|
}
|
|
|
|
|
2020-07-20 16:43:06 +00:00
|
|
|
|
2020-07-20 22:07:02 +00:00
|
|
|
void GameInterface::SerializeGameState(FSerializer& arc)
|
2020-07-20 16:43:06 +00:00
|
|
|
{
|
2020-07-20 21:21:27 +00:00
|
|
|
if (arc.isReading())
|
|
|
|
{
|
|
|
|
memset(geosectorwarp, -1, sizeof(geosectorwarp));
|
|
|
|
memset(geosectorwarp2, -1, sizeof(geosectorwarp2));
|
|
|
|
memset(ambienthitag, -1, sizeof(ambienthitag));
|
|
|
|
memset(ambientlotag, -1, sizeof(ambientlotag));
|
|
|
|
}
|
2020-07-20 22:07:02 +00:00
|
|
|
if (arc.BeginObject("duke.gamestate"))
|
2020-07-20 21:21:27 +00:00
|
|
|
{
|
|
|
|
arc("multimode", ud.multimode);
|
2020-07-21 19:32:38 +00:00
|
|
|
|
2021-12-05 08:20:41 +00:00
|
|
|
arc("skill", ud.player_skill)
|
2020-07-20 21:21:27 +00:00
|
|
|
("from_bonus", ud.from_bonus)
|
|
|
|
("secretlevel", ud.secretlevel)
|
|
|
|
("respawn_monsters", ud.respawn_monsters)
|
|
|
|
("respawn_items", ud.respawn_items)
|
|
|
|
("respawn_inventory", ud.respawn_inventory)
|
2020-09-17 20:36:09 +00:00
|
|
|
("const_visibility", ud.const_visibility)
|
2020-07-20 21:21:27 +00:00
|
|
|
("god", ud.god)
|
2020-09-05 15:56:35 +00:00
|
|
|
("eog", ud.eog)
|
2020-07-20 21:21:27 +00:00
|
|
|
("monsters_off", ud.monsters_off)
|
|
|
|
("last_level", ud.last_level)
|
|
|
|
("coop", ud.coop)
|
|
|
|
("marker", ud.marker)
|
|
|
|
("ffire", ud.ffire)
|
2021-02-18 10:46:36 +00:00
|
|
|
("levelclock", PlayClock)
|
2020-11-03 06:14:39 +00:00
|
|
|
("bomb_tag", ud.bomb_tag)
|
2020-07-20 21:21:27 +00:00
|
|
|
|
|
|
|
("rtsplaying", rtsplaying)
|
|
|
|
("tempwallptr", tempwallptr)
|
2021-11-17 23:12:28 +00:00
|
|
|
("cranes", cranes)
|
2020-07-20 21:21:27 +00:00
|
|
|
("sound445done", sound445done)
|
|
|
|
.Array("players", ps, ud.multimode)
|
|
|
|
("spriteqamount", spriteqamount)
|
|
|
|
("lastvisinc", lastvisinc)
|
|
|
|
("numanimwalls", numanimwalls)
|
|
|
|
.Array("animwall", animwall, numanimwalls)
|
|
|
|
("camsprite", camsprite)
|
|
|
|
("earthquaketime", earthquaketime)
|
2020-11-29 14:09:23 +00:00
|
|
|
("gs.freezerhurtowner", gs.freezerhurtowner)
|
2020-07-20 21:21:27 +00:00
|
|
|
("global_random", global_random)
|
2020-11-29 14:09:23 +00:00
|
|
|
("gs.impact_damage", gs.impact_damage)
|
2020-07-20 21:21:27 +00:00
|
|
|
("numplayersprites", numplayersprites)
|
|
|
|
("spriteqloc", spriteqloc)
|
|
|
|
("animatecnt", animatecnt)
|
|
|
|
|
|
|
|
.Array("animatesect", animatesect, animatecnt)
|
|
|
|
.Array("animatetype", animatetype, animatecnt)
|
|
|
|
.Array("animatetarget", animatetarget, animatecnt)
|
|
|
|
.Array("animategoal", animategoal, animatecnt)
|
|
|
|
.Array("animatevel", animatevel, animatecnt)
|
|
|
|
|
|
|
|
("numclouds", numclouds)
|
|
|
|
("cloudx", cloudx)
|
|
|
|
("cloudy", cloudy)
|
2020-08-25 23:11:27 +00:00
|
|
|
("cloudclock", cloudclock)
|
2020-07-20 21:21:27 +00:00
|
|
|
.Array("clouds", clouds, numclouds)
|
|
|
|
|
|
|
|
.Array("spriteq", spriteq, 1024)
|
|
|
|
("numcyclers", numcyclers)
|
2021-11-06 20:53:15 +00:00
|
|
|
.Array("cycler", cyclers, numcyclers)
|
2020-07-20 21:21:27 +00:00
|
|
|
("mirrorcnt", mirrorcnt)
|
|
|
|
.Array("mirrorsector", mirrorsector, mirrorcnt)
|
|
|
|
.Array("mirrorwall", mirrorwall, mirrorcnt)
|
|
|
|
("wupass", wupass)
|
|
|
|
("chickenplant", chickenplant)
|
|
|
|
("thunderon", thunderon)
|
|
|
|
("ufospawn", ufospawn)
|
|
|
|
("ufocnt", ufocnt)
|
|
|
|
("hulkspawn", hulkspawn)
|
|
|
|
("lastlevel", lastlevel)
|
|
|
|
("geocnt", geocnt)
|
|
|
|
.Array("geosectorwarp", geosectorwarp, geocnt)
|
|
|
|
.Array("geosectorwarp2", geosectorwarp2, geocnt)
|
|
|
|
.Array("geosector", geosector, geocnt)
|
|
|
|
.Array("geox", geox, geocnt)
|
|
|
|
.Array("geoy", geoy, geocnt)
|
|
|
|
.Array("geox2", geox2, geocnt)
|
|
|
|
.Array("geoy2", geoy2, geocnt)
|
|
|
|
("ambientfx", ambientfx)
|
|
|
|
.Array("ambientlotag", ambientlotag, ambientfx)
|
|
|
|
.Array("ambienthitag", ambienthitag, ambientfx)
|
|
|
|
.Array("msx", msx, MAXANIMPOINTS)
|
|
|
|
.Array("msy", msy, MAXANIMPOINTS)
|
|
|
|
("windtime", WindTime)
|
|
|
|
("winddir", WindDir)
|
|
|
|
("fakebubba_spawn", fakebubba_spawn)
|
|
|
|
("mamaspawn_count", mamaspawn_count)
|
|
|
|
("banjosound", banjosound)
|
|
|
|
("belltime", BellTime)
|
|
|
|
("bellsprite", BellSprite)
|
|
|
|
("enemysizecheat", enemysizecheat)
|
|
|
|
("ufospawnsminion", ufospawnsminion)
|
|
|
|
("pistonsound", pistonsound)
|
|
|
|
("chickenphase", chickenphase)
|
|
|
|
("RRRA_ExitedLevel", RRRA_ExitedLevel)
|
|
|
|
("fogactive", fogactive)
|
|
|
|
("thunder_brightness", thunder_brightness)
|
|
|
|
.Array("po", po, ud.multimode)
|
|
|
|
.EndObject();
|
|
|
|
|
2020-07-24 17:13:37 +00:00
|
|
|
lava_serialize(arc);
|
|
|
|
SerializeGameVars(arc);
|
|
|
|
|
2020-07-20 21:21:27 +00:00
|
|
|
if (arc.isReading())
|
|
|
|
{
|
|
|
|
screenpeek = myconnectindex;
|
|
|
|
ud.recstat = 0;
|
|
|
|
|
|
|
|
ud.m_respawn_monsters = ud.respawn_monsters;
|
|
|
|
ud.m_respawn_items = ud.respawn_items;
|
|
|
|
ud.m_respawn_inventory = ud.respawn_inventory;
|
|
|
|
ud.m_monsters_off = ud.monsters_off;
|
|
|
|
ud.m_coop = ud.coop;
|
|
|
|
ud.m_ffire = ud.ffire;
|
|
|
|
if (ps[myconnectindex].over_shoulder_on != 0)
|
|
|
|
{
|
|
|
|
cameradist = 0;
|
|
|
|
cameraclock = 0;
|
|
|
|
ps[myconnectindex].over_shoulder_on = 1;
|
|
|
|
}
|
|
|
|
|
2021-12-17 21:36:59 +00:00
|
|
|
gotpic.Zero();
|
2020-07-20 21:21:27 +00:00
|
|
|
if (isRR()) cacheit_r(); else cacheit_d();
|
|
|
|
|
|
|
|
Mus_ResumeSaved();
|
|
|
|
Mus_SetPaused(false);
|
|
|
|
|
|
|
|
FX_SetReverb(0);
|
|
|
|
show_shareware = 0;
|
|
|
|
everyothertime = 0;
|
|
|
|
|
|
|
|
FX_SetReverb(0);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
2020-07-20 21:07:44 +00:00
|
|
|
}
|
2020-07-20 16:43:06 +00:00
|
|
|
|
|
|
|
END_DUKE_NS
|