[Maps] Support for some tropical maps

This adds support for favela and estate tropical
More investigation is needed for crash tropical.
This commit is contained in:
momo5502 2016-11-12 20:06:02 +01:00
parent e41aa1f221
commit 1439d5fa03
2 changed files with 16 additions and 2 deletions

View File

@ -109,7 +109,7 @@ namespace Components
if (type == Game::XAssetType::ASSET_TYPE_WEAPON) if (type == Game::XAssetType::ASSET_TYPE_WEAPON)
{ {
if (!strstr(name.data(), "_mp") && name != "none" && name != "destructible_car") if ((!strstr(name.data(), "_mp") && name != "none" && name != "destructible_car") || Zones::Version() >= VERSION_ALPHA2)
{ {
*restrict = true; *restrict = true;
return; return;
@ -152,6 +152,12 @@ namespace Components
*restrict = true; *restrict = true;
return; return;
} }
if (type == Game::XAssetType::ASSET_TYPE_VEHICLE && Zones::Version() >= VERSION_ALPHA2)
{
*restrict = true;
return;
}
} }
Game::GameMap_Data* Maps::GetWorldData() Game::GameMap_Data* Maps::GetWorldData()
@ -196,6 +202,12 @@ namespace Components
mapname = "mp_shipment_long"; mapname = "mp_shipment_long";
} }
// Redirect crash tropical
if (mapname == "mp_crash_trop"s)
{
mapname = "mp_crash_tropical";
}
_snprintf_s(buffer, size, size, format, mapname); _snprintf_s(buffer, size, size, format, mapname);
} }

View File

@ -2319,7 +2319,9 @@ namespace Game
struct VehicleDef struct VehicleDef
{ {
const char* name; const char* name;
char pad[716]; char pad[408];
void* weaponDef;
char pad2[304];
}; };
struct XModelDrawInfo struct XModelDrawInfo