Advertisement
fastman92

Untitled

Jun 21st, 2015
292
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.24 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. {$CLEO .cs}
  3.  
  4. //-------------MAIN---------------
  5. thread 'JPR'
  6.  
  7. 0AB1: call_scm_func @getAdditionalVarsLabelPointedIndex 2 label @AdditionalVariables divider 4 store_index_to 31@
  8.  
  9. :JPR_11
  10. wait 0
  11.  
  12.  
  13. // now you can use:
  14. // 0@(31@, 1i)
  15. // 1@(31@, 1i)
  16.  
  17. if
  18. Player.Defined($PLAYER_CHAR)
  19. jf @JPR_11
  20. if and
  21. 0AB0: key_pressed 18
  22. 0AB0: key_pressed 50
  23. jf @JPR_11
  24. Model.Load(#WMYBOUN)
  25. Model.Load(#NITESTICK)
  26.  
  27. :JPR_69
  28. wait 0
  29. if
  30. Model.Available(#WMYBOUN)
  31. jf @JPR_69
  32. if
  33. 2@ = Actor.Angle($PLAYER_ACTOR)
  34. 04C4: store_coords_to 11@ 12@ 13@ from_actor $PLAYER_ACTOR with_offset 0.0 5.0 0.0
  35. 1@ = Actor.Create(Gang3, #WMYBOUN, 11@, 12@, 13@)
  36. Actor.Angle(1@) = 2@
  37. Actor.GiveWeaponAndAmmo(1@, Nightstick, 2000)
  38. Actor.Health(1@) = 1000
  39. Actor.AddArmour(1@, 100)
  40. Actor.WeaponAccuracy(1@) = 100
  41. 07AF: $PLAYER_GROUP = player $PLAYER_CHAR group
  42. 0630: put_actor $PLAYER_ACTOR in_group $PLAYER_GROUP as_leader
  43. 0631: put_actor 1@ in_group $PLAYER_GROUP
  44. jf @JPR_11
  45.  
  46. :getAdditionalVarsLabelPointedIndex
  47. {
  48. Description:
  49. Calculates array index pointing to label
  50. Type: SET
  51.  
  52. Parameters:
  53. Passed:
  54. 0@ - label
  55. 1@ - divider
  56.  
  57. Result:
  58. 3@ - index, movement
  59.  
  60. Example:
  61. 0AB1: call_scm_func @getAdditionalVarsLabelPointedIndex 2 label @AdditionalVariables divider 4 store_index_to 31@
  62.  
  63. :AddtionalVariables
  64. hex
  65. 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 // alignment
  66. 00 00 00 00 // 0@
  67. 00 00 00 00 // 1@
  68. end
  69.  
  70. Usage in code:
  71. 0@(31@,1i); 1@(31@,1i) and so on
  72. }
  73. 0A9F: 2@ = current_thread_pointer
  74. 2@ += 60 // 0@ adress
  75.  
  76. 0A9F: 3@ = current_thread_pointer
  77. 3@ += 0x10
  78. 0A8D: 3@ = read_memory 3@ size 4 virtual_protect 0
  79. 0062: 3@ -= 0@ // (int) @label adress
  80.  
  81. 0062: 3@ -= 2@ // (int) 0@ pointer - @label pointer
  82. 3@ /= 16
  83.  
  84. 3@ += 1
  85. 3@ *= 16
  86. 0072: 3@ /= 1@ // (int)
  87. 0AB2: ret 1 3@
  88.  
  89. :AddtionalVariables
  90. hex
  91. 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 // alignment
  92. 00 00 00 00 // 0@
  93. 00 00 00 00 // 1@
  94. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement