Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- General Algorithm for CoD4 Randomizer
- Array Lists
- * indicates Special Provisions
- ArrayPrimary
- -Bolt Action Rifles
- -Light Machine Guns
- -Sub Machine Guns
- -Sniper Rifles
- -Shotguns
- ArrayBolt
- -Arisaka
- -Springfield
- -Kar98k
- -Mosin-Nagant
- -PTRS-41*
- ArrayRifle
- -SVT-40
- -Gewehr 43*
- -M1 Garand*
- -STG-44
- -M1A1 Carbine*
- ArraySMG
- -Thompson*
- -MP40*
- -Type 100*
- -PPSh-41*
- ArrayMG
- -Type 99*
- -BAR
- -DP-28
- -MG42
- -FG42*
- -Browning M1919
- ArrayShotgun
- -M1897 Trench Gun*
- -Double-Barreled Shotgun*
- ArrayPistol
- -Colt M1911
- -Nambu
- -Tokarev TT-33
- -.357 Magnum
- -Walther P38
- ArrayBoltAttach
- -No Attachment
- -Sniper Scope
- -Bayonet
- -Rifle Grenade*
- ArrayRifleAttach
- -No Attachment
- -Flash Hider
- -Telescopic Sight
- -Aperture Sight
- ArrayGarandAttach
- -No Attachment
- -Sniper Scope
- -Rifle Grenade*
- -Flash Hider
- -Bayonet
- ArrayGewehrAttach
- -No Attachment
- -Suppressor
- -Rifle Grenade*
- -Aperture Sight
- -Telescopic Sight
- ArrayM1A1Attach
- -No Attachment
- -Aperture Sight
- -Bayonet
- -Flash Hider
- -Box Magazine
- ArrayMGAttach
- -No Attachment
- -Bipod
- ArrayType99Attach
- -No Attachment
- -Bipod
- -Bayonet
- ArrayFG42Attach
- -No Attachment
- -Bipod
- -Telescopic Sight
- ArrayThompsonAttach
- -No Attachment
- -Aperture Sight
- -Suppressor
- -Round Drum
- ArrayMP40Attach
- -No Attachment
- -Aperture Sight
- -Suppressor
- -Dual Magazines
- ArrayType100Attach
- -No Attachment
- -Aperture Sight
- -Suppressor
- -Box Magazine
- ArrayPPShAttach
- -No Attachment
- -Aperture Sight
- -Round Drum
- ArrayTrenchAttach
- -No Attachment
- -Bayonet
- -Grip*
- ArrayDBSAttach
- -No Attachment
- -Grip*
- -Sawed-Off
- ArrayPerk1
- -Satchel Charge x2
- -M9A1 Bazooka x2
- -Special Grenades x3*
- -Bomb Squad
- -Bouncing Betty x2
- -Bandolier
- -Primary Grenades x2
- ArrayPerk2
- -Juggernaut
- -Sleight of Hand
- -Fireworks
- -Stopping Power
- -Double Tap
- -Camouflage
- -Overkill*
- -Shades
- -Gas Mask
- -Flak Jacket
- ArrayPerk3
- -Deep Impact
- -Extreme Conditioning
- -Steady Aim
- -Second Chance
- -Martyrdom
- -Iron Lungs
- -Reconnaissance
- -Dead Silence
- -Toss Back
- -Fireproof
- ArrayPerkV
- -Ordnance Training
- -Leadfoot
- -Greased Bearings
- -Water Cooler
- -Coaxial Machine Gun
- ArrayPrimGren
- -Frag
- -Molotov Cocktail
- -NĀ° 74 ST
- ArraySpecGren
- -Smoke Grenade*
- -Tabun Gas
- -Signal Flare
- --------------------------Logic of Randomization--------------------------------------
- 1. Randomize Primary Weapon Category (ArrayPrimary)
- 2. Randomize Primary Weapon from the selected category (ArrayBolt, ArraySMG, ArrayRifle, ArrayMG, ArrayShotgun)
- IF WEAPON IS PTRS-41, ignore Attachment Arrays
- 3.Randomize Primary Weapon Attachment by calling the specific attachment array (ArrayBoltAttach, ArrayMGAttach, ArrayRifleAttach, OR
- certain Weapon Attachment Arrays)
- UNIQUE WEAPON ARRAYS
- A. M1 Garand (ArrayGarandAttach)
- B. Gewehr 43 (ArrayGewehrAttach)
- C. M1A1 Carbine (ArrayM1A1Attach)
- D. Thompson (ArrayThompsonAttach)
- E. MP40 (ArrayMP40Attach)
- F. Type 100 (ArrayType100Attach)
- G. PPSh-41 (ArrayPPShAttach)
- H. Type 99 (ArrayType99Attach)
- I. FG42 (ArrayFG42Attach)
- J. M1897 Trench Gun (ArrayTrenchAttach)
- K. Double-Barreled Shotgun (ArrayDBSAttach)
- IF ATTACHMENT IS RIFLE GRENADE OR GRIP, ignore ArrayPerk1
- 4.Randomize Perk 2 (ArrayPerk2)
- IF PERK 2 IS OVERKILL, ignore ArrayPistol and run ArrayPrimary again. Attachment Arrays are also ignored.
- 5.Randomize Pistol (ArrayPistol)
- 6.Randomize Perk 1 (ArrayPerk1)
- IF PERK 1 IS SPECIAL GRENADES x3, Smoke Grenades cannot be selected in ArraySpecGren
- 7.Randomize Perk 3 (ArrayPerk3)
- 8.Randomize Vehicle Perk (ArrayPerkV)
- 9.Randomize Primary Grenades (ArrayPrimGren)
- 10.Randomize Special Grenade (ArraySpecGren)
- IF PERK 1 IS SPECIAL GRENADES x3, prevent Smoke Grenades from being chosen
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement