diff --git a/saco/game/util.cpp b/saco/game/util.cpp index 103eb74..395bd71 100644 --- a/saco/game/util.cpp +++ b/saco/game/util.cpp @@ -1452,6 +1452,23 @@ bool unnamed_100B4B50(VECTOR *vecPos) +//---------------------------------------------------- + +bool HasCollisionLoaded(VECTOR *vec) +{ + bool bResult = false; + + _asm push 0 + _asm push vec + _asm mov edx, 0x410CE0 + _asm call edx + _asm mov bResult, al + _asm pop edx + _asm pop edx + + return bResult; +} + //---------------------------------------------------- diff --git a/saco/game/util.h b/saco/game/util.h index ba577bf..56563be 100644 --- a/saco/game/util.h +++ b/saco/game/util.h @@ -47,3 +47,5 @@ OBJECT_TYPE * GamePool_GetObject(); void ReplaceBuildingModel(ENTITY_TYPE *pEntity, int iModelID); int GetInvalidModelInfoCount(); + +bool HasCollisionLoaded(VECTOR *vec);