Shader stuff

This commit is contained in:
momo5502 2016-11-01 13:21:03 +01:00
parent 37976a4f39
commit ba052b201e
3 changed files with 10 additions and 7 deletions

View File

@ -165,7 +165,7 @@ namespace Components
void Maps::GetBSPName(char* buffer, size_t size, const char* format, const char* mapname)
{
if (!Utils::String::StartsWith(mapname, "mp_") && mapname != "zm_asylum_sh"s)
if (!Utils::String::StartsWith(mapname, "mp_") && mapname != "zm_asylum_sh"s && mapname != "zm_prototype_sh"s && mapname != "zm_zombie_training"s)
{
format = "maps/%s.d3dbsp";
}
@ -517,6 +517,7 @@ namespace Components
Game::ReallocateAssetPool(Game::XAssetType::ASSET_TYPE_VERTEXDECL, 196);
Game::ReallocateAssetPool(Game::XAssetType::ASSET_TYPE_WEAPON, 2400);
Game::ReallocateAssetPool(Game::XAssetType::ASSET_TYPE_STRINGTABLE, 800);
Game::ReallocateAssetPool(Game::XAssetType::ASSET_TYPE_IMPACTFX, 8);
Maps::ReallocateEntryPool();

View File

@ -15,6 +15,8 @@ namespace Components
static std::pair<std::string, std::string> GetTeamsForMap(std::string map);
static std::string CurrentMainZone;
private:
class DLC
{
@ -28,7 +30,6 @@ namespace Components
static std::vector<DLC> DlcPacks;
static std::vector<Game::XAssetEntry> EntryPool;
static std::string CurrentMainZone;
static std::vector<std::pair<std::string, std::string>> DependencyList;
static std::vector<std::string> CurrentDependencies;

View File

@ -1045,17 +1045,18 @@ namespace Components
if (arg->paramID > 15 && arg->paramID < 30)
{
arg->paramID -= 1;
if (arg->paramID == 19)
{
arg->paramID = 21;
}
}
else if (arg->paramID >= 50)
{
arg->paramID += 6;
}
}
}
// else if (Zones::Version() >= 359 && arg->paramID == 20592)
// {
// arg->paramID == 25180;
// }
}
}
return result;