Guest User

db.script

a guest
Mar 29th, 2012
49
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --[[------------------------------------------------------------------------------------------------
  2. База данных живых онлайновых объектов, зон и рестрикторов, актёра
  3. Чугай Александр
  4. --------------------------------------------------------------------------------------------------]]
  5.  
  6. zone_by_name = {}
  7. sl_by_name = {}
  8. storage = {}
  9. sound = {}
  10. actor = nil
  11. actor_proxy = actor_proxy.actor_proxy()
  12. heli = {}
  13. camp_storage = {}
  14. story_by_id = {}
  15. smart_terrain_by_id = {}
  16. trader = nil
  17. info_restr = {}
  18. strn_by_respawn = {}
  19.  
  20. function add_obj( obj )
  21. end
  22.  
  23. function del_obj( obj )
  24. storage [obj:id()] = nil
  25. end
  26.  
  27.  
  28. function add_zone( zone )
  29. zone_by_name[zone:name()] = zone
  30. add_obj( zone )
  31. end
  32.  
  33. function del_zone( zone )
  34. zone_by_name[zone:name()] = nil
  35. del_obj( zone )
  36. end
  37.  
  38.  
  39. function add_sl( sl )
  40. sl_by_name[sl:name()] = sl
  41. add_obj( sl )
  42. end
  43.  
  44. function del_sl( sl )
  45. sl_by_name[sl:name()] = nil
  46. del_obj( sl )
  47. end
  48.  
  49.  
  50. function add_actor( obj )
  51. actor = obj
  52. actor_proxy:net_spawn( obj )
  53. add_obj( obj )
  54. if spawn_start_weapons then spawn_start_weapons.spawn_weapons() end
  55. end
  56.  
  57. function del_actor()
  58. del_obj( actor )
  59. actor_proxy:net_destroy()
  60. actor = nil
  61. end
  62.  
  63.  
  64. function add_heli(obj)
  65. heli[obj:id()] = obj
  66. end
  67. function del_heli(obj)
  68. heli[obj:id()] = nil
  69. end
  70.  
  71.  
  72. function add_smart_terrain( obj )
  73. smart_terrain_by_id[obj.id] = obj
  74. end
  75.  
  76. function del_smart_terrain( obj )
  77. smart_terrain_by_id[obj.id] = nil
  78. end
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×