as an example to ask this question im gonne use gold, small health pot, and large health pot.
these are the first three images in the Item-Ground.pak
now my question is, where in the client source, is the client told the locations and sizes of the images inside the sprite,
somewhere it has to say Item-Ground.pak, section 6, location x, y
and the middle of the image ie, where your character stands on said item
iv had a good look through the sources, the only mention i find of item-ground.pak is this,
Code: Select all
MakeSprite( "item-ground", DEF_SPRID_ITEMGROUND_PIVOTPOINT+1, 19, FALSE);
m_hPakFile = CreateFile("sprites\\item-ground.pak", GENERIC_READ, NULL, NULL, OPEN_EXISTING, NULL, NULL);
if( m_hPakFile != INVALID_HANDLE_VALUE )
{ m_pSprite[DEF_SPRID_ITEMGROUND_PIVOTPOINT+20] = new class CSprite(m_hPakFile, &m_DDraw, "item-ground", 17, FALSE);
m_pSprite[DEF_SPRID_ITEMGROUND_PIVOTPOINT+21] = new class CSprite(m_hPakFile, &m_DDraw, "item-ground", 18, FALSE);
m_pSprite[DEF_SPRID_ITEMGROUND_PIVOTPOINT+22] = new class CSprite(m_hPakFile, &m_DDraw, "item-ground", 19, FALSE);//Angels
CloseHandle(m_hPakFile);
}
MakeSprite( "item-dynamic", DEF_SPRID_ITEMDYNAMIC_PIVOTPOINT, 3, FALSE);// Snoopy 2-> 3 (flags)
m_cLoading = 16;
}
so anyone know? imagine you were gonna add another image to this sprite, how would you tell the client about the new image ??