forked from oerkki/voxelands
sprite mob types
This commit is contained in:
parent
b83023f828
commit
248ec6919e
|
@ -301,7 +301,7 @@ void MobCAO::addToScene(scene::ISceneManager *smgr)
|
|||
bill->setMaterialFlag(video::EMF_FOG_ENABLE, true);
|
||||
bill->setColor(video::SColor(255,0,0,0));
|
||||
bill->setVisible(true);
|
||||
bill->setSize(BS,BS,BS);
|
||||
bill->setSize(m.model_scale.X*BS,m.model_scale.Y*BS,m.model_scale.Z*BS);
|
||||
m_node = (scene::IMeshSceneNode*)bill;
|
||||
m_draw_type = MDT_SPRITE;
|
||||
}
|
||||
|
|
|
@ -194,8 +194,9 @@ void content_mob_init()
|
|||
f = &g_content_mob_features[i];
|
||||
f->content = i;
|
||||
f->level = MOB_PASSIVE;
|
||||
f->model = "rat.x";
|
||||
f->setTexture("ob_firefly.png");
|
||||
//f->model = "rat.x";
|
||||
f->model_scale = v3f(0.5,0.5,0.5);
|
||||
f->setTexture("mob_firefly.png");
|
||||
f->punch_action = MPA_PICKUP;
|
||||
f->dropped_item = std::string("CraftItem2 ")+itos(CONTENT_CRAFTITEM_FIREFLY)+" 1";
|
||||
f->motion = MM_WANDER;
|
||||
|
@ -206,7 +207,7 @@ void content_mob_init()
|
|||
f->spawn_min_height = -5;
|
||||
f->spawn_max_height = 20;
|
||||
f->spawn_max_light = LIGHT_MAX/3;
|
||||
f->setCollisionBox(aabb3f(-BS/3.,0.0,-BS/3., BS/3.,BS/2.,BS/3.));
|
||||
f->setCollisionBox(aabb3f(-BS/4.,-BS/6.,-BS/4., BS/4.,BS/6.,BS/4.));
|
||||
|
||||
i = CONTENT_MOB_OERKKI;
|
||||
f = &g_content_mob_features[i];
|
||||
|
|
|
@ -1035,7 +1035,7 @@ bool MobSAO::checkFreePosition(v3s16 p0)
|
|||
v3s16 dp(dx, dy, dz);
|
||||
v3s16 p = p0 + dp;
|
||||
MapNode n = map->getNodeNoEx(p);
|
||||
if(n.getContent() != clear)
|
||||
if (n.getContent() != clear)
|
||||
return false;
|
||||
}
|
||||
MapNode n = map->getNodeNoEx(p0+v3s16(0,-1,0));
|
||||
|
|
Loading…
Reference in New Issue