I think you cannot get the texture file name by ent_getskin only a BMAP*, but c_trace has a flag SCAN_TEXTURE to get texture name that you can read from the resulting hit struct:

hit.texname : char* pointer : name of the hit texture (skin1 or skin2) for models, blocks, or sprites. Terrain has no texture names.


Free world editor for 3D Gamestudio: MapBuilder Editor