BetterHousesSakhaltoCherno
О материале
«BetterHousesSakhaltoCherno» — материал мастерской DayZ. Оружие, транспорт, территории и моды для серверов. Данные Steam, описание автора и ссылка для установки через подписку. Совместимость редакцией не проверена.
Описание автора
This simple MOD is intended to convert Cherno Houses to Sakhal styled Houses for a update/change on Chernaurus Vanilla Houses, works on all maps. Pointless to run on Sakhal obviously. mapgroupproto.xml and mapgrouppos.xml will need to be redone to spawn loot in new house layouts. Comment out these vanilla buildings in mapgroupproto.xml and use the provided building positions in mapgroupproto.xml for proper spawn positions and update your mapgrouppos.xml use what you like for new map wide building spawn positions, I use this "Spawn helper function" script below in init.c It creates new mapgrouppos.xml in storage_1 file.
List of houses to comment out. Land_House_1W01 Land_House_1W02 Land_House_1W03 Land_House_1W04 Land_House_1W06 Land_House_1W07 Land_House_1W08 Land_House_2W01 Land_House_2W04 Land_House_1W11
init.c script addin. Add first part at very top of init.c and second part below existing "void main()"
//Spawn helper function
void SpawnObject( string type, vector position, vector orientation )
{
auto obj = GetGame().CreateObject( type, position );
obj.SetPosition( position );
obj.SetOrientation( orientation );
obj.SetOrientation( obj.GetOrientation() ); //Collision fix
obj.Update();
obj.SetAffectPathgraph( true, false );
if( obj.CanAffectPathgraph() ) GetGame().GetCallQueue( CALL_CATEGORY_SYSTEM ).CallLater( GetGame().UpdatePathgraphRegionByObject, 100, false, obj );
}
void main()
//GetCEApi().ExportProxyData( "7500 0 7500", 10000 ); //Center of map, radius of how far to go out and find buildings.
Remove first two brackets in front of "//GetCEApi" to activate, Start server, Join server then leave server, Shut down server, and replace your existing mapgrouppos.xml with new mapgrouppos.xml from storage_1, Then comment out "GetCEApi" with // brackets. Its a good idea to wipe server to get full activation of new loot positions. Unpack & Repack, and learn from it. Do whatever you'd like with it.
Как установить и запустить
Откройте оригинальную страницу в Steam Workshop, проверьте версию игры, зависимости и порядок загрузки в описании автора. Нажмите «Подписаться» и дождитесь загрузки Steam. Включите материал в меню модификаций или контента игры, если это требуется. Совместимость и запуск редакцией не проверены.