Advertisement
Guest User

Randomizer script

a guest
Oct 25th, 2016
4,584
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.69 KB | None | 0 0
  1. General Algorithm for CoD4 Randomizer
  2.  
  3. Array Lists
  4. * indicates Special Provisions
  5.  
  6. ArrayPrimary
  7. -Bolt Action Rifles
  8. -Light Machine Guns
  9. -Sub Machine Guns
  10. -Sniper Rifles
  11. -Shotguns
  12.  
  13. ArrayBolt
  14. -Arisaka
  15. -Springfield
  16. -Kar98k
  17. -Mosin-Nagant
  18. -PTRS-41*
  19.  
  20. ArrayRifle
  21. -SVT-40
  22. -Gewehr 43*
  23. -M1 Garand*
  24. -STG-44
  25. -M1A1 Carbine*
  26.  
  27. ArraySMG
  28. -Thompson*
  29. -MP40*
  30. -Type 100*
  31. -PPSh-41*
  32.  
  33. ArrayMG
  34. -Type 99*
  35. -BAR
  36. -DP-28
  37. -MG42
  38. -FG42*
  39. -Browning M1919
  40.  
  41. ArrayShotgun
  42. -M1897 Trench Gun*
  43. -Double-Barreled Shotgun*
  44.  
  45. ArrayPistol
  46. -Colt M1911
  47. -Nambu
  48. -Tokarev TT-33
  49. -.357 Magnum
  50. -Walther P38
  51.  
  52. ArrayBoltAttach
  53. -No Attachment
  54. -Sniper Scope
  55. -Bayonet
  56. -Rifle Grenade*
  57.  
  58. ArrayRifleAttach
  59. -No Attachment
  60. -Flash Hider
  61. -Telescopic Sight
  62. -Aperture Sight
  63.  
  64. ArrayGarandAttach
  65. -No Attachment
  66. -Sniper Scope
  67. -Rifle Grenade*
  68. -Flash Hider
  69. -Bayonet
  70.  
  71. ArrayGewehrAttach
  72. -No Attachment
  73. -Suppressor
  74. -Rifle Grenade*
  75. -Aperture Sight
  76. -Telescopic Sight
  77.  
  78. ArrayM1A1Attach
  79. -No Attachment
  80. -Aperture Sight
  81. -Bayonet
  82. -Flash Hider
  83. -Box Magazine
  84.  
  85. ArrayMGAttach
  86. -No Attachment
  87. -Bipod
  88.  
  89. ArrayType99Attach
  90. -No Attachment
  91. -Bipod
  92. -Bayonet
  93.  
  94. ArrayFG42Attach
  95. -No Attachment
  96. -Bipod
  97. -Telescopic Sight
  98.  
  99. ArrayThompsonAttach
  100. -No Attachment
  101. -Aperture Sight
  102. -Suppressor
  103. -Round Drum
  104.  
  105. ArrayMP40Attach
  106. -No Attachment
  107. -Aperture Sight
  108. -Suppressor
  109. -Dual Magazines
  110.  
  111. ArrayType100Attach
  112. -No Attachment
  113. -Aperture Sight
  114. -Suppressor
  115. -Box Magazine
  116.  
  117. ArrayPPShAttach
  118. -No Attachment
  119. -Aperture Sight
  120. -Round Drum
  121.  
  122. ArrayTrenchAttach
  123. -No Attachment
  124. -Bayonet
  125. -Grip*
  126.  
  127. ArrayDBSAttach
  128. -No Attachment
  129. -Grip*
  130. -Sawed-Off
  131.  
  132. ArrayPerk1
  133. -Satchel Charge x2
  134. -M9A1 Bazooka x2
  135. -Special Grenades x3*
  136. -Bomb Squad
  137. -Bouncing Betty x2
  138. -Bandolier
  139. -Primary Grenades x2
  140.  
  141. ArrayPerk2
  142. -Juggernaut
  143. -Sleight of Hand
  144. -Fireworks
  145. -Stopping Power
  146. -Double Tap
  147. -Camouflage
  148. -Overkill*
  149. -Shades
  150. -Gas Mask
  151. -Flak Jacket
  152.  
  153. ArrayPerk3
  154. -Deep Impact
  155. -Extreme Conditioning
  156. -Steady Aim
  157. -Second Chance
  158. -Martyrdom
  159. -Iron Lungs
  160. -Reconnaissance
  161. -Dead Silence
  162. -Toss Back
  163. -Fireproof
  164.  
  165. ArrayPerkV
  166. -Ordnance Training
  167. -Leadfoot
  168. -Greased Bearings
  169. -Water Cooler
  170. -Coaxial Machine Gun
  171.  
  172. ArrayPrimGren
  173. -Frag
  174. -Molotov Cocktail
  175. -NĀ° 74 ST
  176.  
  177. ArraySpecGren
  178. -Smoke Grenade*
  179. -Tabun Gas
  180. -Signal Flare
  181.  
  182. --------------------------Logic of Randomization--------------------------------------
  183.  
  184. 1. Randomize Primary Weapon Category (ArrayPrimary)
  185.  
  186. 2. Randomize Primary Weapon from the selected category (ArrayBolt, ArraySMG, ArrayRifle, ArrayMG, ArrayShotgun)
  187. IF WEAPON IS PTRS-41, ignore Attachment Arrays
  188.  
  189. 3.Randomize Primary Weapon Attachment by calling the specific attachment array (ArrayBoltAttach, ArrayMGAttach, ArrayRifleAttach, OR
  190. certain Weapon Attachment Arrays)
  191.  
  192. UNIQUE WEAPON ARRAYS
  193. A. M1 Garand (ArrayGarandAttach)
  194. B. Gewehr 43 (ArrayGewehrAttach)
  195. C. M1A1 Carbine (ArrayM1A1Attach)
  196. D. Thompson (ArrayThompsonAttach)
  197. E. MP40 (ArrayMP40Attach)
  198. F. Type 100 (ArrayType100Attach)
  199. G. PPSh-41 (ArrayPPShAttach)
  200. H. Type 99 (ArrayType99Attach)
  201. I. FG42 (ArrayFG42Attach)
  202. J. M1897 Trench Gun (ArrayTrenchAttach)
  203. K. Double-Barreled Shotgun (ArrayDBSAttach)
  204.  
  205. IF ATTACHMENT IS RIFLE GRENADE OR GRIP, ignore ArrayPerk1
  206.  
  207. 4.Randomize Perk 2 (ArrayPerk2)
  208. IF PERK 2 IS OVERKILL, ignore ArrayPistol and run ArrayPrimary again. Attachment Arrays are also ignored.
  209.  
  210. 5.Randomize Pistol (ArrayPistol)
  211.  
  212. 6.Randomize Perk 1 (ArrayPerk1)
  213. IF PERK 1 IS SPECIAL GRENADES x3, Smoke Grenades cannot be selected in ArraySpecGren
  214.  
  215. 7.Randomize Perk 3 (ArrayPerk3)
  216.  
  217. 8.Randomize Vehicle Perk (ArrayPerkV)
  218.  
  219. 9.Randomize Primary Grenades (ArrayPrimGren)
  220.  
  221. 10.Randomize Special Grenade (ArraySpecGren)
  222. IF PERK 1 IS SPECIAL GRENADES x3, prevent Smoke Grenades from being chosen
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement