how to do this

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Akin_seasoned_askari
Posts: 6
Joined: Wed Jun 16, 2004 5:04 am

how to do this

Post by Akin_seasoned_askari »

I'm just wanting to load a CS map and walk through it but I don't know the code for it (its bsp) how would I code it to load bsp from the bsp file itself? its a counterstrike map so any help will be nice. The quake help shows how to load the pk3 I don't want that but yea...thanks for your replys
Endar
Posts: 145
Joined: Mon Jun 14, 2004 7:59 am

Post by Endar »

:D

Take a close look at the code for any of the tuts where the Q3 map is loaded:

Code: Select all

 device->getFileSystem()->addZipFileArchive("map-20kdm2.pk3");
scene::IAnimatedMesh* mesh = smgr->getMesh("20kdm2.bsp");
The pk3 files are just zip files with a different extension. Open up the pk3 file with winzip and take a look at all the directories where the textures and everything are. So, where your bsp file is, there should be those directories containing all the textures, etc, etc, for the map.

Then when you have all the files where you need them, just get rid of the first line and leave the second, giving the path and name of the bsp file in place of "20kdm2.bsp".
"The reputation of a thousand years may be determined by the conduct of one hour."
-Japanese Proverb
Electron
Posts: 874
Joined: Sun Mar 14, 2004 12:05 am
Location: Massachusetts USA

Post by Electron »

only Q3 bsp is supported. I don't think counterstrike bsp will load
Post Reply