#include "net_common.h" float x, y, z; void OnCache() { LoadScene("SE04"); for (int i = 0 ; i < 16 ; i++) SetSceneObjectSwitch(NumToStr("DLight_%02d", i), "PRESENT", 0); PlayNetGameMusic(se04_music); SetAudioEnvironment(ENVIRONMENT_STONEROOM); } void OnHostGame() { } void G_InitItem(int id) { GetEntityPos(id, x, y, z); SetItemAttrib(id, ITEM_MODEL, "se04g", 1); SetItemAttrib(id, ITEM_PHYSICS, ITEM_PHYSICS_NONE); SetItemAttrib(id, ITEM_LIFTABLE, 0); SetItemAttrib(id, ITEM_PICKABLE, 0); } void G08MF_InitItem(int id) { string itemName; float x, y, z; itemName = GetItemName(id); // fill item id for (int i = 0 ; i < 3 ; i++) { if (itemName == NumToStr("G08MF_%02d", i)) { break; } } GetEntityPos(id, x, y, z); SetItemAttrib(id, ITEM_MODEL, "se04g08mf", 1); SetItemAttrib(id, ITEM_PHYSICS, ITEM_PHYSICS_MACHINE); SetItemAttrib(id, ITEM_LIFTABLE, 0); SetItemAttrib(id, ITEM_PICKABLE, 0); SetItemAttrib(id, ITEM_WAITTIME, 1); SetItemAttrib(id, ITEM_MOVESPEED, 30); SetItemAttrib(id, ITEM_NEXTPOINT, i); if ( i == 0 ) SetItemAttrib(id, ITEM_MOVEPOINT, 4, x, y, z, x-110.414, y, z, x-220.727, y, z, x-110.414, y, z); else if ( i == 1) SetItemAttrib(id, ITEM_MOVEPOINT, 4, x, y, z, x-110.313, y, z, x, y, z, x+110.414, y, z); else if ( i == 2) SetItemAttrib(id, ITEM_MOVEPOINT, 4, x, y, z, x+110.313, y, z, x+220.727, y, z, x+110.313, y, z); }