Guest User

spawn_start_weapons.script

a guest
Mar 29th, 2012
48
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local weapons_sections = {
  2. "wpn_abakan",
  3. "wpn_ak74",
  4. "wpn_ak74u",
  5. "wpn_beretta",
  6. "wpn_bm16",
  7. "wpn_colt1911",
  8. "wpn_desert_eagle",
  9. "wpn_fn2000",
  10. "wpn_fort",
  11. "wpn_g36",
  12. "wpn_gauss",
  13. "wpn_groza",
  14. "wpn_hpsa",
  15. "wpn_l85",
  16. "wpn_lr300",
  17. "wpn_mp5",
  18. "wpn_pb",
  19. "wpn_pm",
  20. "wpn_rg-6",
  21. "wpn_rpg7",
  22. "wpn_sig220",
  23. "wpn_sig550",
  24. "wpn_spas12",
  25. "wpn_svd",
  26. "wpn_usp",
  27. "wpn_val",
  28. "wpn_vintorez",
  29. "wpn_walther",
  30. "wpn_wincheaster1300" }
  31.  
  32. function spawn_weapons()
  33. if db.actor and not has_alife_info("spawn_test_weapons") then
  34. db.actor:give_info_portion("spawn_test_weapons")
  35. for i = 1, #weapons_sections do
  36. alife():create(weapons_sections[i], db.actor:position(), db.actor:level_vertex_id(), db.actor:game_vertex_id(), db.actor:id())
  37. end
  38. end
  39. end
RAW Paste Data