mtasa-blue icon indicating copy to clipboard operation
mtasa-blue copied to clipboard

Add missing model ids and names scraped from .ide files

Open Merlin opened this issue 3 years ago • 4 comments

Adds all the missing model ids and names.

ids and names come from .ide files

Merlin avatar Apr 04 '22 00:04 Merlin

btw... Isn't all this info available run-time in CModelInfo?

Pirulax avatar Apr 10 '22 15:04 Pirulax

No idea If it is let's retrieve it from there instead?

Zangomangu avatar Apr 10 '22 16:04 Zangomangu

This list resolves model name -> id and vice versa.

CBaseModelInfo only has a hash of the name not the actual name. And CModelInfo::GetModelInfo(0x4C5940) hashes the name and goes over CModelInfo::ms_modelInfoPtrs and checks the hash to get you the id/modelinfo. But there is no way to get the name from the id.

Merlin avatar Apr 10 '22 18:04 Merlin

Can be merged

Zangomangu avatar Jun 27 '22 16:06 Zangomangu