Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- in city:
- S_lv7saku (this is the actual gate) (internal name: lv7saku) (params: 00000209 | FFFF) (lv7saku is assigned ID 3)
- S_bura_7b
- in lakebed:
- S_bsaku00 (this is the actual gate) (internal name: fence) (params: 0000012A, FFFF) (fence is assigned ID 2)
- S_bura_A
- d_a_saku.cpp
- m_heap[saku_id][heap_id] != 0
- d_a_balloon
- d_a_bqMap
- d_a_coach
- d_a_canoe
- d_a_mirror
- d_a_npc_coach
- d_a_obj_laundry
- d_a_obj_master_sword
- d_a_obj_mirror_chain
- d_a_obj_sakuita_rope
- d_a_swhit0
- Tetd 022DFF00 = id 1
- fence 022DFF00 = id 2
- lv7saku 022DFF00 = id 3
- 2
- 3
- 4
- 8
- 2 oder 3
- 141E00000-1523FA61C
- string[] enum = { "daDoor20_c", "K_tetd", "S_bsaku00", "S_lv7saku" };
- int lastLoadedID = 0;
- void spawnGate(int gateID)
- {
- string arcName = enum[gateID];
- if (isArcLoaded(arcName))
- {
- ConstructGate();
- return;
- }
- if (lastLoadedID > 0)
- {
- string lastLoadedArc = enum[lastLoadedID];
- if (arcName != lastLoadedArc)
- {
- return;
- }
- }
- LoadArc(arcName);
- ConstructGate();
- lastLoadedID = gateID;
- return;
- }
- const string[] arcName = { "K_tetd", "S_bsaku00", "S_lv7saku" };
- int hasLoaded = 0;
- string resNameLocal;
- void CreateGate(int gateID)
- {
- if (hasLoaded == 0)
- {
- resNameLocal = arcName[gateID];
- hasLoaded = 1;
- }
- if (LoadResource(gateID, resNameLocal) != 4) // = 4 -> object was loaded; != 4 -> object was already loaded
- {
- return;
- }
- InitGate(); //Spawns the gate and makes it visible etc.
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement