Advertisement
Guest User

Untitled

a guest
Jun 15th, 2015
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. function end_intro_play()
  2. if not has_info("ecs_trader_meet") then
  3. cam_inert = get_console():get_float("cam_inert")
  4. get_console():execute("cam_inert 0")
  5. level.add_cam_effector("camera_effects\\actor_wake_up.anm", 25, false, "")
  6. db.actor:deactivate_slot()
  7. local bolt = db.actor:item_in_slot(5)
  8. if bolt then
  9. db.actor:remove_from_inventory( bolt:id() )
  10. end
  11. Spawn_ItemInInv("bolt_anim_base")
  12. start_real_timer(1, "tasks_escape.wait_for_hands_register")
  13. end
  14. end
  15.  
  16. function wait_for_hands_register(t)
  17. local hands = db.actor:object("bolt_anim_base")
  18. if hands then
  19. xr_effects.restore_weapon_helper()
  20. db.actor:move_to_slot(hands, false)
  21. db.actor:activate_slot(5)
  22. end
  23. --db.actor:restore_weapon()
  24. Spawn_ItemInInv("bolt")
  25. start_quick_timer(9, this.end_hand_anim) --/ ~9 real-sec (wait 'hand_anim' done)
  26. end
  27.  
  28. function end_hand_anim(t)
  29. local hands = db.actor:item_in_slot(5)
  30. if hands then
  31. db.actor:move_to_ruck( hands )
  32. db.actor:remove_from_inventory( hands:id() )
  33. end
  34. local bolt = db.actor:object("bolt")
  35. if bolt then
  36. db.actor:move_to_slot(bolt, true)
  37. end
  38. get_console():execute("cam_inert "..cam_inert)
  39. level.show_indicators()
  40. level.enable_input()
  41. level.save_allowed(true)
  42. give_info("ecs_trader_meet")
  43. disable_info("esc_actor_scene")
  44. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement