Advertisement
Guest User

BackPack (has bugs)

a guest
Mar 22nd, 2014
272
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.58 KB | None | 0 0
  1. // This file was decompiled using sascm.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
  2.  
  3. {$CLEO .cs}
  4.  
  5. //-------------MAIN---------------
  6. thread "BAG"
  7. 0662: NOP "XZYTRO SAYS HI"
  8. 0662: NOP "FROM UGBASE.EU"
  9.  
  10. :MAIN
  11. wait 0
  12. if and
  13. 0256: player $PLAYER_CHAR defined
  14. 056D: actor $PLAYER_ACTOR defined
  15. 84C8: not actor $PLAYER_ACTOR driving_flying_vehicle
  16. 80DF: not actor $PLAYER_ACTOR driving
  17. 89DE: not actor $PLAYER_ACTOR entering_car
  18. 0AB0: key_pressed 2
  19. then
  20. jump @LOAD_BAG_MODEL
  21. else
  22. 0ACD: show_text_highpriority "~R~DEBUG : ~W~driving/entering/not pressing aim" time 1500
  23. wait 1500
  24. jump @MAIN
  25. end
  26.  
  27. :LOAD_BAG_MODEL
  28. wait 0
  29. Model.Load(3026)
  30. if
  31. Model.Available(3026)
  32. else_jump @LOAD_BAG_MODEL
  33. 0ACD: show_text_highpriority "~R~DEBUG : ~W~MODEL LOADED" time 1500
  34. wait 1500
  35.  
  36. :ATTACH_THE_BAG
  37. wait 0
  38. 0107: $bag = create_object 3026 at 0.0 0.0 0.0
  39. //069B: attach_object $bag to_actor $PLAYER_ACTOR with_offset 0.0 0.0 0.0 rotation 0.0 0.0 0.0
  40. 070A: AS_actor $PLAYER_ACTOR attach_to_object $bag offset -0.13 -0.05 0.0 on_bone 1 16 perform_animation "NULL" IFP_file "NULL" time -1
  41. 0382: set_object $bag collision_detection 0
  42. 0ACD: show_text_highpriority "~R~DEBUG : ~W~BAG ATTACHED" time 1500
  43. wait 1500
  44.  
  45. :DEACTIVATION_CHECK
  46. wait 0
  47. if or
  48. 0118: actor $PLAYER_ACTOR dead
  49. 0449: actor $PLAYER_ACTOR in_a_car
  50. 09DE: actor $PLAYER_ACTOR entering_car
  51. 0AB0: key_pressed 88
  52. then
  53. 0682: detach_object $bag 0.0 0.0 0.0 collision_detection 0
  54. wait 500
  55. 0249: release_model 3026
  56. Object.Destroy($bag)
  57. 0ACD: show_text_highpriority "~R~DEBUG : ~W~Object removed" time 1500
  58. wait 1500
  59. jump @RESPAWN_THE_BAG
  60. else
  61. 0ACD: show_text_highpriority "~R~DEBUG : ~W~alive/onfoot/didn't type X" time 1500
  62. wait 1500
  63. jump @DEACTIVATION_CHECK
  64. end
  65.  
  66. :RESPAWN_THE_BAG
  67. wait 0
  68. if and
  69. 0256: player $PLAYER_CHAR defined
  70. 056D: actor $PLAYER_ACTOR defined
  71. 84C8: not actor $PLAYER_ACTOR driving_flying_vehicle
  72. 80DF: not actor $PLAYER_ACTOR driving
  73. 89DE: not actor $PLAYER_ACTOR entering_car
  74. then
  75. if
  76. 0AB0: key_pressed 2
  77. then
  78. 0ACD: show_text_highpriority "~R~DEBUG : ~W~NOT DRIVING AND AIMING, SO SPAWNING THE BAG" time 1500
  79. wait 1500
  80. jump @ATTACH_THE_BAG
  81. else
  82. 0ACD: show_text_highpriority "~R~DEBUG : ~W~DID NOT PRESS AIM" time 1500
  83. wait 1500
  84. jump @RESPAWN_THE_BAG
  85. end
  86. else
  87. 0ACD: show_text_highpriority "~R~DEBUG : ~W~driving or entering car" time 1500
  88. wait 1500
  89. jump @RESPAWN_THE_BAG
  90. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement