da blyat ya ne mogu

This commit is contained in:
2024-05-08 13:02:00 +05:00
parent 56400e90cd
commit 7df3b333f5
294 changed files with 24 additions and 24 deletions
+24 -24
View File
@@ -38,31 +38,31 @@ void UcppGI::cppLvlManage(UObject* WorldContextObject, Fcppcoords currentCoords,
}
}*/
if (is3DTour &&currentCoords.house<1) cpplvlsForLoading.AddUnique(Fcppcoords(1, -2, -2, 1, -1));
if (is3DTour && currentCoords.house < 1) cpplvlsForLoading.AddUnique(Fcppcoords(1, -2, -2, 1, -1));
cpplvlsForLoading.AddUnique(currentCoords);
for (FcppLevelStruct& lvl : cpplevelLIst) {
for (const FcppLevelStruct& lvl : cpplevelLIst) {
FString tt = lvl.path;
if (currentCoords.floor == 100);
else {
loadthis = false;
bool ceq[7];
for (const auto& crd : cpplvlsForLoading) // here is filter code
{
cppCoordsEq(crd, lvl.coords, true, false, ceq[0], ceq[1], ceq[2], ceq[3], ceq[4], ceq[5], ceq[6]);
if (
(
(
(ceq[0] || !is3DTour || lvl.coords.flat == -1) && ceq[5]
)
|| (is3DTour ? lvl.anotherLvl >= 1 && lvl.anotherLvl == crd.flat : lvl.anotherLvl >= 1 && lvl.anotherLvl == crd.flat && lvl.coords.floor < crd.floor)
)
&& ceq[3] && ceq[4]
) loadthis = true; //load all on floor and under 2-floor flat, and full 2-floor flat in 3d tour
//if (ceq[6]) loadthis = true; //classic load with parallax
}
bool ceq[7];
for (const auto& crd : cpplvlsForLoading) // here is filter code
{
cppCoordsEq(crd, lvl.coords, true, false, ceq[0], ceq[1], ceq[2], ceq[3], ceq[4], ceq[5], ceq[6]);
if (
(
((ceq[0] || !is3DTour || lvl.coords.flat == -1) && ceq[5])
|| (is3DTour ? lvl.anotherLvl >= 1 && lvl.anotherLvl == crd.flat : lvl.anotherLvl >= 1 && (crd.flat>=0 ? lvl.anotherLvl == crd.flat:true) && lvl.coords.floor < crd.floor)
)
&& ceq[3] && ceq[4]
) loadthis = true; //load all on floor and under 2-floor flat, and full 2-floor flat in 3d tour
//if (ceq[6]) loadthis = true; //classic load with parallax
}
}
TArray<FString> blya;
blya.Add(FString::FromInt(lvl.coords.flat));
@@ -71,7 +71,7 @@ void UcppGI::cppLvlManage(UObject* WorldContextObject, Fcppcoords currentCoords,
blya.Add(FString::FromInt(lvl.coords.section));
blya.Add(FString::FromInt(lvl.coords.floor));
blya.Add(FString::FromInt(lvl.Z));
FString instanceStr = FString::Join(blya, L"_");
instanceStr.Append(L"_").Append(FPaths::GetCleanFilename(lvl.path));
FName instanceName = FName(instanceStr);
@@ -140,7 +140,7 @@ void UcppGI::avoidAutoState()
void UcppGI::makeSocket(FString ip, int port)
{
//static char ipc[100];
wcstombs(&ipc[0], *ip, ip.Len()+1);
wcstombs(&ipc[0], *ip, ip.Len() + 1);
//size_t sz;
//wcstombs_s(&sz, ipc, ip.Len(),*ip,ip.Len());
soc = new CSocket(&ipc[0], port);
@@ -152,7 +152,7 @@ void UcppGI::setColor(uint8 code, FColor color)
DECLARE_CMD(CMD_SET_COLOR, cmd);
cmd.code = code;
cmd.r = color.R, cmd.g=color.G, cmd.b=color.B;
cmd.r = color.R, cmd.g = color.G, cmd.b = color.B;
sendCommand(*soc, cmd);
}
@@ -188,7 +188,7 @@ void UcppGI::setLight(int house, int floor, int strip, uint8 state)
cmd.floor = floor;
cmd.strip = strip;
sendCommand(*soc, cmd);
}
void UcppGI::setPartState(uint8 part, uint8 state)