Corrige problema de LODDIST na importação Menyo

LODDistance is a positive number from 0 to 65535
This commit is contained in:
AprendizFivem 2024-11-02 23:07:57 -03:00 committed by GitHub
parent c45ea83733
commit 52b7da7096
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3230,7 +3230,7 @@ namespace CodeWalker.Project
cent.scaleZ = 1.0f;
cent.flags = placement.Dynamic ? 0 : 32u;// 1572872; //32 = static
cent.parentIndex = -1;
cent.lodDist = (placement.LodDistance < 10000) ? placement.LodDistance : -1;
cent.lodDist = (placement.LodDistance < 65535 ) ? placement.LodDistance : 65535;
cent.lodLevel = rage__eLodType.LODTYPES_DEPTH_ORPHANHD;
cent.priorityLevel = rage__ePriorityLevel.PRI_REQUIRED;
cent.ambientOcclusionMultiplier = 255;