Give nolok his special bubblegum
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11546 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
718a90e009
commit
af219c1672
BIN
data/models/bubblegum-nolok-low.b3d
Normal file
BIN
data/models/bubblegum-nolok-low.b3d
Normal file
Binary file not shown.
BIN
data/models/bubblegum-nolok.b3d
Normal file
BIN
data/models/bubblegum-nolok.b3d
Normal file
Binary file not shown.
BIN
data/models/bubblegum_nolok.jpg
Normal file
BIN
data/models/bubblegum_nolok.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.5 KiB |
@ -72,6 +72,8 @@ public:
|
|||||||
ITEM_NITRO_BIG,
|
ITEM_NITRO_BIG,
|
||||||
ITEM_NITRO_SMALL,
|
ITEM_NITRO_SMALL,
|
||||||
ITEM_BUBBLEGUM,
|
ITEM_BUBBLEGUM,
|
||||||
|
ITEM_BUBBLEGUM_NOLOK,
|
||||||
|
|
||||||
/** An invisible item that can be used to trigger some behavior when
|
/** An invisible item that can be used to trigger some behavior when
|
||||||
* approaching a point
|
* approaching a point
|
||||||
*/
|
*/
|
||||||
|
@ -78,6 +78,8 @@ void ItemManager::loadDefaultItemMeshes()
|
|||||||
item_names[Item::ITEM_NITRO_SMALL] = "nitro-small";
|
item_names[Item::ITEM_NITRO_SMALL] = "nitro-small";
|
||||||
item_names[Item::ITEM_TRIGGER ] = "trigger";
|
item_names[Item::ITEM_TRIGGER ] = "trigger";
|
||||||
|
|
||||||
|
item_names[Item::ITEM_BUBBLEGUM_NOLOK] = "bubblegum-nolok";
|
||||||
|
|
||||||
const std::string file_name = file_manager->getDataFile("items.xml");
|
const std::string file_name = file_manager->getDataFile("items.xml");
|
||||||
const XMLNode *root = file_manager->createXMLTree(file_name);
|
const XMLNode *root = file_manager->createXMLTree(file_name);
|
||||||
for(unsigned int i=Item::ITEM_FIRST; i<=Item::ITEM_LAST; i++)
|
for(unsigned int i=Item::ITEM_FIRST; i<=Item::ITEM_LAST; i++)
|
||||||
@ -238,8 +240,14 @@ void ItemManager::insertItem(Item *item)
|
|||||||
Item* ItemManager::newItem(Item::ItemType type, const Vec3& xyz,
|
Item* ItemManager::newItem(Item::ItemType type, const Vec3& xyz,
|
||||||
const Vec3 &normal, AbstractKart *parent)
|
const Vec3 &normal, AbstractKart *parent)
|
||||||
{
|
{
|
||||||
Item* item = new Item(type, xyz, normal, m_item_mesh[type],
|
Item::ItemType mesh_type = type;
|
||||||
m_item_lowres_mesh[type]);
|
if (type == Item::ITEM_BUBBLEGUM && parent->getIdent() == "nolok")
|
||||||
|
{
|
||||||
|
mesh_type = Item::ITEM_BUBBLEGUM_NOLOK;
|
||||||
|
}
|
||||||
|
|
||||||
|
Item* item = new Item(type, xyz, normal, m_item_mesh[mesh_type],
|
||||||
|
m_item_lowres_mesh[mesh_type]);
|
||||||
|
|
||||||
insertItem(item);
|
insertItem(item);
|
||||||
if(parent != NULL) item->setParent(parent);
|
if(parent != NULL) item->setParent(parent);
|
||||||
|
Loading…
Reference in New Issue
Block a user