forked from oerkki/voxelands
mobs should be able to walk through open gates
This commit is contained in:
parent
3099caf133
commit
12e24992bf
|
@ -1291,7 +1291,6 @@ void content_mapnode_door(bool repeat)
|
|||
f->setInventoryTexture("gate_wood_inv.png");
|
||||
f->wield_nodebox = false;
|
||||
f->air_equivalent = true;
|
||||
f->jumpable = false;
|
||||
f->param_type = CPT_LIGHT;
|
||||
f->light_propagates = true;
|
||||
f->sunlight_propagates = true;
|
||||
|
@ -1468,8 +1467,8 @@ void content_mapnode_door(bool repeat)
|
|||
f->light_propagates = true;
|
||||
f->air_equivalent = true;
|
||||
f->sunlight_propagates = true;
|
||||
f->walkable = false;
|
||||
f->draw_type = CDT_NODEBOX;
|
||||
f->is_ground_content = true;
|
||||
f->dug_item = std::string("MaterialItem2 ")+itos(CONTENT_WOOD_GATE)+" 1";
|
||||
f->onpunch_replace_node = CONTENT_WOOD_GATE;
|
||||
f->sound_punch = "env-doorclose";
|
||||
|
@ -1493,8 +1492,8 @@ void content_mapnode_door(bool repeat)
|
|||
f->light_propagates = true;
|
||||
f->air_equivalent = true;
|
||||
f->sunlight_propagates = true;
|
||||
f->walkable = false;
|
||||
f->draw_type = CDT_NODEBOX;
|
||||
f->is_ground_content = true;
|
||||
f->dug_item = std::string("MaterialItem2 ")+itos(CONTENT_STEEL_GATE)+" 1";
|
||||
f->onpunch_replace_node = CONTENT_STEEL_GATE;
|
||||
f->sound_punch = "env-doorclose";
|
||||
|
|
|
@ -906,10 +906,10 @@ void content_mapnode_plants(bool repeat)
|
|||
f->air_equivalent = true;
|
||||
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
|
||||
f->fuel_time = 1;
|
||||
f->dug_item = std::string("CraftItem apple 1");
|
||||
f->dug_item = std::string("CraftItem2 ") +itos(CONTENT_CRAFTITEM_APPLE)+" 1";
|
||||
f->ondig_replace_node = CONTENT_APPLE_LEAVES;
|
||||
f->ondig_replace_node_requires = CONTENT_APPLE_TREE;
|
||||
f->type = CMT_WOOD;
|
||||
f->type = CMT_PLANT;
|
||||
f->hardness = 0.0;
|
||||
f->pressure_type = CST_CRUSHABLE;
|
||||
f->suffocation_per_second = 0;
|
||||
|
|
|
@ -145,8 +145,8 @@ void sound_mumble_step(float dtime, v3_t *pos, v3_t *at, v3_t *up)
|
|||
mumble_data.dtime_cumulative += dtime;
|
||||
|
||||
if (mumble_data.link->uiVersion != 2) {
|
||||
wcsncpy(mumble_data.link->name, L"TestLink", 256);
|
||||
wcsncpy(mumble_data.link->description, L"TestLink is a test of the Link plugin.", 2048);
|
||||
wcsncpy(mumble_data.link->name, L"Voxelands", 256);
|
||||
wcsncpy(mumble_data.link->description, L"Voxelands Mumble Position Audio Link.", 2048);
|
||||
mumble_data.link->uiVersion = 2;
|
||||
}
|
||||
|
||||
|
@ -179,6 +179,4 @@ void sound_mumble_step(float dtime, v3_t *pos, v3_t *at, v3_t *up)
|
|||
mumble_data.link->fCameraTop[0] = -up->x;
|
||||
mumble_data.link->fCameraTop[1] = -up->y;
|
||||
mumble_data.link->fCameraTop[2] = -up->z;
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue