[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:
parent
e41aa1f221
commit
1439d5fa03
@ -109,7 +109,7 @@ namespace Components
|
||||
|
||||
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;
|
||||
return;
|
||||
@ -152,6 +152,12 @@ namespace Components
|
||||
*restrict = true;
|
||||
return;
|
||||
}
|
||||
|
||||
if (type == Game::XAssetType::ASSET_TYPE_VEHICLE && Zones::Version() >= VERSION_ALPHA2)
|
||||
{
|
||||
*restrict = true;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Game::GameMap_Data* Maps::GetWorldData()
|
||||
@ -196,6 +202,12 @@ namespace Components
|
||||
mapname = "mp_shipment_long";
|
||||
}
|
||||
|
||||
// Redirect crash tropical
|
||||
if (mapname == "mp_crash_trop"s)
|
||||
{
|
||||
mapname = "mp_crash_tropical";
|
||||
}
|
||||
|
||||
_snprintf_s(buffer, size, size, format, mapname);
|
||||
}
|
||||
|
||||
|
@ -2319,7 +2319,9 @@ namespace Game
|
||||
struct VehicleDef
|
||||
{
|
||||
const char* name;
|
||||
char pad[716];
|
||||
char pad[408];
|
||||
void* weaponDef;
|
||||
char pad2[304];
|
||||
};
|
||||
|
||||
struct XModelDrawInfo
|
||||
|
Loading…
Reference in New Issue
Block a user