News: Welcome back to Bullworth! If you haven't already, you will need to reset your password..


Show Posts

Messages | * Topics | Attachments

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - AlphaTech

Pages: 1 [2] 3 4
16
Mod Releases / Custom Pedstats/Ide.img
« on: November 11, 2015, 02:09:49 PM »
Finally releasing my custom pedstats and my ide.img to the forum for anyone to use. I modified the stats for the ped's to have increased blocking and dodges. You would have to add some of the stats to your peds in the pedstats for the mod to work as their are many stats that I made so the free roam stats match the mission stats here is a list of modified mission script stats. Add all the stats to their free roam models, many of the stats added to different models will likely crash the game.

STAT_G_STRIKER_B - Peanuts Mission stats - Gives him 300% health and increased blocks and weapon firing range.
STAT_G_GRAPPLER_B - Norton's Mission stats - Gives him 650% health and increased blocks and weapon firing range.
STAT_GS_NEMESIS1 - Gary's Custom stats - Gives him 800% health and increased blocks.
STAT_DO_STRIKER_B - Omar's Mission stats Gives him 300% health and increased blocks.
STAT_P_STRIKER_S - Justin's Boxing stats - Gives him 450% health and increased blocking and dodging.
STAT_P_STRIKER_D - Parker's Boxing stats - Gives him 500% health and increased blocking and dodging.
STAT_P_GRAPPLER_B - Chad's boxing stats - Gives him 350% health blah blah.
STAT_P_GRAPPLER_S - Bryce's boxing stats - Gives him 550% health blah blah.
STAT_J_MELEE_B - Custom stats for Ted's football model add if wanted.
STAT_P_BOXING_P1  - Custom stat for Pinky.
STAT_N_STRIKER_S - Custom stat for Melvin.
STAT_GS_MALE_B - Custom stat for Pete.
STAT_P_BOXING_Siames - Don't mind this one lol.
STAT_CRAZY_BASIC_SAVAGE02 - Don't Mind LOL.
Code: [Select]
# A: PedStat type name (must be unique)
# B: Id of pickup def (c. Pickups.dat)
# C: Likelihood (n/100) of dropping an item
# D: Vision Yaw (in degrees) - note this is total yaw and not angle from facing direction (which is this value / 2)
# E: Vision Range (in metres)
# F: Max Health (n/100)
# G: Health regeneration rate - percentage of maximum rate (n/100)
# H: Fear (n/100)
# I: Chicken (n/100) (chance of tattling/ yelling for help)
# J: Attack Frequency (n/800)
# K: Bike Attack Frequency (n/800)
# L: Projectile Attack Accuracy (n/800)
# M: Projectile Attack Frequency (n/800)
# N: Block Frequency (n/800)
# O: Evade Frequency (n/800)
# P: "Aggresion (n/800) (how likely are they to initiate a fight, and how likely they are to contnue it)"
# Q: Criminality
# R: Sprint Meter
#    S: Character Class
# T: Preferred Combat Zone (0/1/2 = short/medium/long)
# U: "Preferred Orientation (Bit field: 0001 front, 0010 side, 0100 back. So front+side = 011 = 3, and 111 = 7)"
# V: Animation Speed factor (100 = 100% speed)
# W: Zone Promote
# X: Special Meter
# Y: Special Points
# Z: Bike Cruise Speed
# AA: Bike Top Speed
# AB: Bike Wait Speed
# AC: Bike Flee Distance
# AD: Bike Catchup Distance
# AE: Bike Wait Distance
# AF: Bike Projectile Usage (n/800)
# AG: Damage_Scale
# AH: Dive probability
# AI: "Tenacity (n/800), indicates how tough they are to knock down or off a bike"
# AJ: Evasion (n/800)
# AK: Bike Flee Speed
# AL: Bike Follow Speed
# AM: Bike Catchup Speed
# AN: Grap1Reversal (Strikes)
# AO: Grap2Reversal (Grapples)
# AP: Night weapon
# AQ: "Name of the bike model which the ped can ride (""""None"""" if the ped can't ride any bike)"
# AR: "Name of the bike model which the ped can ride (""""None"""" if the ped can't ride any bike)"
# AS: "Name of the bike model which the ped can ride (""""None"""" if the ped can't ride any bike)"
# AT: Likelihood (n/800) of having a weapon
# AU: Weapon slot 1: Type of melee/projectile
# AV: Weapon slot 1: Amount of Ammo
# AW: Weapon slot 1: Selection weight for melee/projectile weapon - HIGHEST NUMBER WINS
# AX: "Weapon slot 1: Available after mission (use ""init"" to signify start of game)"
# AY: Weapon slot 2: Type of melee/projectile
# AZ: Weapon slot 2: Amount of Ammo
# BA: Weapon slot 2: Selection weight for melee/projectile weapon
# BB: "Weapon slot 2: Available after mission (use ""init"" to signify start of game)"
# BC: Weapon slot 3: Type of melee/projectile
# BD: Weapon slot 3: Amount of Ammo
# BE: Weapon slot 3: Selection weight for melee/projectile weapon
# BF: "Weapon slot 3: Available after mission (use ""init"" to signify start of game)"
# BG: Weapon slot 4: Type of melee/projectile
# BH: Weapon slot 4: Amount of Ammo
# BI: Weapon slot 4: Selection weight for melee/projectile weapon
# BJ: "Weapon slot 4: Available after mission (use ""init"" to signify start of game)"
# BK: Stun Resistance (n/800) how resistant a ped is to stunning
# BL: "Ped can be knocked down (0 = no, 1+ = yes)"
# BM Percent health at which the ped can be humiliated in combat

STAT_PLAYER none 20 100 12 200 0 0 0 0 50 95 0 0 0 0 0 60 Generic 0 7 100 1 0 0 20 100 20 10 10 10 20 100 80 100 50 70 50 90 0 0 unarmed None None None 0 unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init 0 1 15
STAT_DEFAULT none 20 100 12 200 0 0 0 0 50 95 0 0 0 0 0 60 Generic 0 7 100 1 0 0 20 100 20 10 10 10 20 100 80 60 50 70 50 90 0 0 unarmed None None None 0 unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init 0 1 15
STAT_N_EARNEST none 0 360 25 500 0 0 0 800 80 85 60 800 800 25 0 60 Ranged 2 1 100 1 0 0 20 100 20 10 10 10 15 100 80 60 100 70 50 90 4 4 unarmed banbike banbike banbike 100 cherryb 3 1 init cherryb 3 1 init cherryb 3 1 init unarmed -1 1 init 50 1 15
STAT_N_STRIKER_A FRAFFYCAN 20 100 12 100 0 0 0 800 80 85 60 800 800 25 0 60 Striker 0 3 100 1 0 0 20 100 20 10 10 10 10 100 80 60 5 70 50 90 5 2 unarmed banbike crapbmx oladbike 100 cherryb -1 3 1_03 cherryb -1 3 2_01 brocketlauncher -1 5 4_02 spudg -1 6 4_03 15 1 33
STAT_N_STRIKER_B FRAFFYCAN 20 100 12 100 0 0 0 800 80 85 60 800 800 25 0 60 Striker 0 3 100 1 0 0 20 100 20 10 10 10 10 100 80 60 5 70 50 90 5 2 unarmed banbike crapbmx oladbike 100 cherryb -1 3 1_03 cherryb -1 3 2_01 brocketlauncher -1 5 4_02 spudg -1 6 4_03 15 1 33
STAT_N_MELEE_A FRAFFYCAN 20 100 12 100 0 0 0 800 80 85 60 800 800 25 0 60 Melee 0 3 100 1 0 0 20 100 20 10 10 10 10 100 80 60 5 70 50 90 5 2 unarmed banbike crapbmx oladbike 300 yardstick -1 1 init yardstick -1 1 init yardstick -1 1 init unarmed -1 1 init 25 1 33
STAT_N_RANGED_A FRAFFYCAN 20 100 12 100 0 0 0 800 80 85 60 800 800 25 0 60 Ranged 0 3 100 1 0 0 20 100 20 10 10 10 10 100 80 60 5 70 50 90 5 2 cherryb None None None 100 cherryb -1 3 1_03 cherryb -1 3 2_01 cherryb -1 5 4_02 cherryb -1 6 4_03 15 1 33
STAT_J_TED none 0 360 35 500 0 0 0 800 80 85 60 800 800 25 0 60 Grappler 2 1 111 0 0 0 20 100 20 10 10 10 10 100 80 60 50 70 50 90 40 40 unarmed None None None 100 Wftball -1 1 init Wftball -1 1 init Wftball -1 1 init unarmed -1 1 init 95 0 0
STAT_J_DAMON none 0 100 12 375 0 0 0 800 50 20 60 800 800 70 30 60 Striker 0 1 100 1 0 0 20 100 20 10 10 10 30 100 80 60 50 70 50 90 40 40 unarmed None None None 0 unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init 95 0 0
STAT_J_STRIKER_A FRAFFYCAN 20 100 12 110 0 0 0 800 80 85 60 800 800 25 0 60 Striker 0 5 110 1 0 0 20 100 20 10 10 10 30 100 80 60 50 70 50 90 16 4 unarmed crapbmx banbike racer 40 bat -1 1 init bat -1 1 init bat -1 1 init unarmed -1 1 init 40 1 15
STAT_J_GRAPPLER_A FRAFFYCAN 20 100 12 125 0 0 0 800 80 85 60 800 800 25 0 60 Grappler 0 2 110 1 0 0 20 100 20 10 10 10 30 100 80 60 50 70 50 90 7 43 unarmed crapbmx banbike racer 30 baseball -1 2 init unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init 50 1 15
STAT_J_GRAPPLER_B FRAFFYCAN 20 100 12 125 0 0 0 800 80 85 60 800 800 25 0 60 Grappler 0 2 110 1 0 0 20 100 20 10 10 10 30 100 80 60 50 70 50 90 7 43 unarmed crapbmx banbike racer 0 unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init 50 1 15
STAT_J_MELEE_A FRAFFYCAN 20 100 12 105 0 0 0 800 80 85 60 800 800 25 0 60 Grappler 1 2 110 1 0 0 20 100 20 10 10 10 30 100 80 60 50 70 50 90 12 4 unarmed crapbmx banbike crapbmx 40 bat -1 1 init bat -1 1 init bat -1 1 init unarmed -1 1 init 45 1 15
STAT_G_JOHNNY none 0 360 12 500 0 0 0 800 80 85 60 800 800 25 0 60 Striker 0 1 100 1 0 0 80 100 20 10 10 10 45 100 80 100 100 70 50 90 35 8 unarmed bike bike bike 0 unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init 75 0 15
STAT_G_STRIKER_A FRAFFYCAN 20 100 12 105 0 0 0 800 80 85 60 800 800 25 0 60 Striker 1 2 110 1 0 0 200 200 40 60 60 60 80 100 80 60 5 70 50 90 12 4 unarmed banbike banbike racer 30 slingshot -1 1 1_03 unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init 35 1 15
STAT_G_GRAPPLER_A FRAFFYCAN 0 100 15 125 0 0 0 800 80 85 60 800 800 25 0 60 Melee 1 2 110 1 0 0 200 200 40 60 60 60 80 100 80 60 5 70 50 90 12 4 unarmed banbike banbike racer 50 twobyfour -1 1 1_03 twobyfour -1 1 1_03 twobyfour -1 1 1_03 unarmed -1 1 init 40 1 15
STAT_G_MELEE_A FRAFFYCAN 20 100 12 100 0 0 0 800 80 85 60 800 800 25 0 60 Melee 1 2 110 1 0 0 200 200 40 60 60 60 80 100 80 60 5 70 50 90 12 4 unarmed banbike banbike racer 50 twobyfour -1 1 1_03 twobyfour -1 1 1_03 twobyfour -1 1 1_03 unarmed -1 1 init 40 1 15
STAT_G_PIRATE FRAFFYCAN 20 100 12 285 0 0 0 800 80 85 60 800 800 25 0 60 Striker 1 2 120 1 0 0 200 200 40 60 60 60 80 100 80 60 5 70 50 90 16 10 unarmed banbike banbike racer 50 twobyfour -1 1 1_03 twobyfour -1 1 1_03 twobyfour -1 1 1_03 unarmed -1 1 init 40 1 15
STAT_G_RANGED_A FRAFFYCAN 20 100 12 500 500 0 0 800 800 800 800 800 800 70 30 80 Ranged 2 3 110 1 0 0 20 100 20 10 10 10 15 100 80 60 50 70 50 90 3 6 unarmed banbike banbike racer 65 slingshot 10 1 init slingshot 10 1 init slingshot 10 1 init unarmed -1 1 init 35 1 15
STAT_TE_MALE_A none 0 100 12 05 0 100 25 20 20 20 20 0 0 0 0 20 Striker 0 7 100 1 0 0 20 100 20 10 10 10 20 100 80 60 50 20 20 20 1 1 W_Flashlight None None None 100 unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init 90 0 0
STAT_TE_FEMALE_A none 0 100 12 350 0 0 0 50 50 40 70 0 75 0 0 60 Generic 0 7 100 1 0 0 20 100 20 10 10 10 20 100 80 60 0 70 50 90 100 100 unarmed oladbike aquabike oladbike 0 unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init 90 0 0
STAT_GS_FEMALE_A none 0 100 12 50 0 0 0 800 50 20 60 800 800 70 30 60 Generic 0 7 100 1 0 0 20 100 20 10 10 10 20 100 80 60 50 70 50 90 4 4 unarmed oladbike aquabike oladbike 0 unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init 10 0 0
STAT_GS_MALE_A none 0 100 12 135 0 0 0 800 50 20 60 800 800 70 30 60 Generic 0 7 100 1 0 0 20 100 20 10 10 10 20 100 80 60 50 70 50 90 4 4 unarmed banbike crapbmx oladbike 0 unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init 10 0 15
STAT_GS_FEMALE_SMKID none 0 100 12 50 0 0 0 800 50 20 60 800 800 70 30 60 Generic 0 7 100 1 0 0 20 100 20 10 10 10 20 100 80 60 50 70 50 90 4 4 unarmed None None None 0 unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init 10 0 0
STAT_GS_MALE_TATTLER none 0 100 12 60 0 0 0 800 50 20 60 800 800 70 30 60 Generic 0 7 100 1 0 0 20 100 20 10 10 10 20 100 80 60 50 70 50 90 4 4 unarmed None None None 0 unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init 10 1 20
STAT_GS_MALE_SMKID none 0 100 12 60 0 0 0 800 50 20 60 800 800 70 30 60 Generic 0 7 100 1 0 0 20 100 20 10 10 10 20 100 80 60 50 70 50 90 4 4 unarmed None None None 0 unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init 10 1 20
STAT_GS_GARY none 0 100 12 300 0 0 0 800 50 20 60 800 800 70 30 60 Generic 0 7 100 1 0 0 20 100 20 10 10 10 20 100 80 60 50 70 50 90 20 20 unarmed banbike banbike banbike 0 unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init 70 1 0
STAT_BOSS_RUSSELL none 0 100 12 650 0 0 0 800 50 20 60 800 800 70 30 60 Grappler 1 7 100 0 0 0 20 100 20 10 10 10 0 100 80 60 50 70 50 90 50 100 unarmed None None None 0 unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init 100 0 15
STAT_CV_MALE_A none 0 100 12 05 0 100 25 20 20 20 20 0 0 0 0 20 Striker 0 7 100 1 0 0 20 100 20 10 10 10 20 100 80 60 50 20 20 20 1 1 W_Flashlight None None None 100 unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init 90 0 0
STAT_CV_FEMALE_A none 0 100 12 80 0 0 0 70 50 0 0 0 0 0 0 60 Generic 0 7 100 1 0 0 20 100 20 10 10 10 20 100 80 60 0 70 50 90 100 100 unarmed Scooter oladbike aquabike 0 unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init 90 0 0
STAT_CV_MALE_OLD none 0 100 12 05 0 100 25 20 20 20 20 0 0 0 0 20 Striker 0 7 100 1 0 0 20 100 20 10 10 10 20 100 80 60 50 20 20 20 1 1 W_Flashlight None None None 100 unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init 90 0 0
STAT_CV_FEMALE_OLD none 0 100 12 05 0 100 25 20 20 20 20 0 0 0 0 20 Striker 0 7 100 1 0 0 20 100 20 10 10 10 20 100 80 60 50 20 20 20 1 1 W_Flashlight None None None 100 unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init 90 0 0
STAT_LE_OFFICER_A none 0 100 12 10 0 0 0 75 50 20 70 40 0 0 0 60 Striker 0 7 100 1 0 0 20 100 20 10 10 10 20 100 80 60 0 70 50 90 23 5 W_Flashlight None None None 100 unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init 90 0 0
STAT_LE_ORDERLY_A none 0 100 12 10 0 0 0 75 50 20 70 40 0 0 0 60 Striker 0 7 100 1 0 0 20 100 20 10 10 10 20 100 80 60 0 70 50 90 23 5 W_Flashlight None None None 100 unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init 90 0 0
STAT_P_STRIKER_A FRAFFYCAN 20 100 12 200 0 0 0 800 50 20 60 800 800 70 30 60 Striker 0 3 110 1 0 0 20 100 20 10 10 10 15 100 80 60 20 70 50 90 13 3 unarmed aquabike aquabike crapbmx 30 eggproj -1 2 init eggproj -1 2 init slingshot -1 1 1_03 unarmed -1 1 init 20 1 15
STAT_P_STRIKER_B FRAFFYCAN 20 100 12 95 0 0 0 800 50 20 60 800 800 70 30 60 Striker 0 3 110 1 0 0 20 100 20 10 10 10 15 100 80 60 20 70 50 90 13 3 unarmed aquabike aquabike crapbmx 50 eggproj -1 1 init cricket -1 3 2_08 eggproj -1 1 init unarmed -1 1 init 20 1 15
STAT_P_GRAPPLER_A FRAFFYCAN 20 100 12 105 0 0 0 800 50 20 60 800 800 70 30 60 Grappler 0 4 110 1 0 0 20 100 20 10 10 10 15 100 80 60 20 70 50 90 9 31 unarmed aquabike aquabike crapbmx 30 eggproj -1 1 init eggproj -1 1 init eggproj -1 1 init unarmed -1 1 init 25 1 15
STAT_P_BOXING none 0 100 12 500 0 0 0 800 50 20 60 800 800 70 30 60 Generic 0 1 100 1 0 0 20 100 20 10 10 10 20 100 80 60 20 70 50 90 100 100 unarmed None None None 0 unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init 50 0 15
STAT_P_BOXING_Bif none 0 100 12 500 0 0 0 800 50 20 60 800 800 70 30 60 Striker 0 1 110 1 0 0 20 100 20 10 10 10 20 100 80 60 20 70 50 90 100 100 unarmed None None None 0 unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init 50 0 15
STAT_P_BOXING_Chad none 0 100 12 350 0 0 0 800 50 20 60 800 800 70 30 60 Striker 0 1 110 1 0 0 20 100 20 10 10 10 20 100 80 60 50 70 50 90 100 100 unarmed None None None 0 unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init 50 0 15
STAT_P_BOXING_Justin none 0 100 12 425 0 0 0 800 50 20 60 800 800 70 30 60 Generic 0 1 110 1 0 0 20 100 20 10 10 10 20 100 80 60 50 70 50 90 100 100 unarmed None None None 0 unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init 50 0 15
STAT_P_BOXING_Parker none 0 100 12 500 0 0 0 800 50 20 60 800 800 70 30 60 Striker 0 1 110 1 0 0 20 100 20 10 10 10 20 100 80 60 50 70 50 90 100 100 unarmed None None None 0 unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init 50 0 15
STAT_P_BOXING_Bryce none 0 100 12 550 0 0 0 800 50 20 60 800 800 70 30 60 Striker 0 1 110 1 0 0 20 100 20 10 10 10 20 100 80 60 50 70 50 90 100 100 unarmed None None None 0 unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init 50 0 15
STAT_DO_STRIKER_A FRAFFYCAN 20 100 12 100 0 0 0 800 50 20 60 800 800 70 30 60 Striker 1 2 100 1 0 0 20 100 20 10 10 10 20 100 80 60 5 70 50 90 90 12 44 unarmed crapbmx crapbmx banbike 80 brick -1 1 init twobyfour 1 2 init unarmed -1 1 init unarmed -1 1 init 50 1 15
STAT_DO_GRAPPLER_A FRAFFYCAN 20 100 12 110 0 0 0 800 50 20 60 800 800 70 30 60 Grappler 0 2 100 1 0 0 20 100 20 10 10 10 20 100 80 60 50 70 50 90 12 44 unarmed crapbmx crapbmx banbike 60 cherryb 1 1 init brick 1 2 init unarmed -1 1 init unarmed -1 1 init 50 1 15
STAT_DO_MELEE_A FRAFFYCAN 20 100 12 100 0 0 0 800 50 20 60 800 800 70 30 60 Melee 1 5 100 1 0 0 20 100 20 10 10 10 20 100 80 60 50 70 50 90 17 14 unarmed crapbmx crapbmx banbike 80 brick 1 1 init twobyfour 1 2 init unarmed -1 1 init unarmed -1 1 init 50 1 15
STAT_DO_EDGAR none 0 100 12 400 0 0 0 800 50 20 60 800 800 70 30 60 Melee 1 1 100 1 0 0 20 100 20 10 10 10 30 100 80 60 50 70 50 90 40 40 unarmed None None None 100 Waterpipe -1 1 init Waterpipe -1 1 init Waterpipe -1 1 init unarmed -1 1 init 85 0 15
STAT_PF_BASIC_A none 0 100 12 10 0 0 0 75 50 20 70 40 0 0 0 60 Striker 0 7 100 1 0 0 20 100 20 10 10 10 20 100 80 60 0 70 50 90 23 5 W_Flashlight None None None 100 unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init 90 0 0
STAT_X04_RANGED none 0 330 15 100 0 40 0 50 50 100 35 0 0 0 0 120 Ranged 2 3 100 1 0 0 20 100 20 10 10 10 20 100 80 60 50 70 50 90 3 4 unarmed None None None 100 brocketlauncher -1 1 init brocketlauncher -1 1 init brocketlauncher -1 1 init unarmed -1 1 init 15 1 15
STAT_3_05_NORTON none 0 100 15 650 500 0 0 800 800 800 800 800 800 70 30 80 Melee 0 7 100 1 0 0 20 100 20 10 10 10 20 100 80 60 50 70 50 90 40 40 unarmed None None None 100 sledgehammer -1 1 init sledgehammer -1 1 init sledgehammer -1 1 init unarmed -1 1 init 45 0 15
STAT_TEST_BLOCKER none 0 100 15 120 0 0 0 0 50 0 0 100 0 20 0 60 Striker 0 5 100 1 0 0 20 100 20 10 10 10 20 100 80 60 50 70 50 90 0 0 unarmed None None None 0 unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init 50 1 15
STAT_BIKEPROJ none 0 100 15 130 0 0 0 50 50 20 50 30 0 30 5 60 Striker 0 1 100 1 0 0 20 100 20 5 10 30 20 100 80 60 50 70 50 90 0 0 unarmed None None None 100 eggproj 100 1 init eggproj 100 1 init eggproj 100 1 init unarmed -1 1 init 50 1 15
STAT_109_RANGED none 0 330 50 100 0 0 0 100 50 100 65 0 0 0 0 60 Ranged 2 3 100 0 0 0 20 100 20 10 10 10 20 100 80 60 50 70 50 90 0 0 unarmed None None None 0 unarmed 5 1 init unarmed 5 1 init unarmed 5 1 init unarmed -1 1 init 50 0 15
STAT_AN_DOG_A none 0 360 20 100 0 50 0 60 50 0 0 0 0 0 0 60 Generic 0 7 100 1 0 0 20 100 20 10 0 0 20 100 80 60 50 70 50 90 0 0 unarmed None None None 0 unarmed 0 1 init unarmed 0 1 init unarmed 0 1 init unarmed -1 1 init 50 1 15
STAT_WRESTLING_FAT none 0 360 15 100 0 0 0 0 50 0 0 0 0 0 0 60 Striker 0 7 100 1 0 0 20 100 20 10 0 0 20 100 80 60 50 70 50 90 0 0 unarmed None None None 0 unarmed 0 1 init unarmed 0 1 init unarmed 0 1 init unarmed -1 1 init 50 1 15
STAT_WRESTLING_GEN none 0 360 15 285 0 0 0 800 80 85 60 800 800 25 0 60 Grappler 0 3 110 1 0 0 20 100 20 10 10 10 15 100 80 60 20 70 50 90 13 3 unarmed None None None 0 unarmed 0 1 init unarmed 0 1 init unarmed 0 1 init unarmed -1 1 init 50 1 15
STAT_WRESTLING_LUIS none 0 360 15 210 0 0 0 80 50 0 0 0 50 0 0 60 Grappler 0 7 100 1 0 0 20 100 20 10 0 0 20 100 80 60 50 70 50 90 30 30 unarmed None None None 0 unarmed 0 1 init unarmed 0 1 init unarmed 0 1 init unarmed -1 1 init 50 1 15
STAT_208_BASEBALL none 0 100 15 85 0 0 0 50 50 80 70 20 25 10 6 60 Ranged 2 3 100 1 0 0 20 100 20 10 10 10 20 100 80 60 50 70 50 90 0 0 unarmed None None None 100 baseball 10 1 init baseball 10 1 init baseball 10 1 init unarmed -1 1 init 50 1 15
STAT_208_PLANT none 0 100 15 85 0 0 0 50 50 80 70 20 25 10 6 60 Ranged 2 3 100 1 0 0 20 100 20 10 10 10 20 100 80 60 50 70 50 90 0 0 unarmed None None None 100 PlantPot 10 1 init PlantPot 10 1 init PlantPot 10 1 init unarmed -1 1 init 50 1 15
STAT_BIKECHASE none 0 100 15 130 0 0 0 50 50 20 50 30 0 30 5 60 Striker 0 1 100 1 0 0 20 100 20 5 5 10 20 100 80 60 50 70 50 90 0 0 unarmed None None None 100 cherryb 100 1 init cherryb 100 1 init cherryb 100 1 init unarmed -1 1 init 50 1 15
STAT_B_STRIKER_A FRAFFYCAN 20 100 12 100 0 0 0 800 80 85 60 800 800 25 0 60 Grappler 1 2 100 1 0 0 20 100 20 10 10 10 20 100 80 60 5 70 50 90 30 30 unarmed None None None 0 unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init 30 1 15
STAT_B_STRIKER_B FRAFFYCAN 20 100 12 100 0 0 0 800 80 85 60 800 800 25 0 60 Grappler 0 2 100 1 0 0 20 100 20 10 10 10 20 100 80 60 5 70 50 90 0 0 unarmed crapbmx banbike crapbmx 20 unarmed -1 1 1_03 unarmed -1 1 1_03 bat -1 2 1_07 unarmed -1 1 init 30 1 15
STAT_AN_RAT_A W_DeadRat 100 360 15 10 0 50 0 100 50 0 0 0 0 0 0 60 Striker 0 7 100 1 0 0 20 100 20 10 0 0 20 100 80 60 50 70 50 90 0 0 unarmed None None None 0 unarmed -1 1 init unarmed 0 1 init unarmed 0 1 init unarmed -1 1 init 50 1 15
STAT_4B2_STRIKER none 0 360 35 500 500 0 0 800 800 800 800 800 800 70 30 80 Grappler 1 7 100 1 0 0 20 100 20 10 10 10 20 100 80 60 60 70 50 90 60 60 unarmed bike bike bike 0 Wftball -1 1 init Wftball -1 1 init Wftball -1 1 init unarmed -1 1 init 50 1 15
STAT_J_MASCOT none 0 100 12 500 0 0 0 800 80 85 60 800 800 25 0 60 Grappler 1 7 110 1 0 0 20 100 20 10 10 10 20 100 80 60 60 70 50 90 60 60 unarmed bike bike bike 0 unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init 90 0 15
STAT_G_STRIKER_S none 0 100 12 200 200 0 0 800 800 800 800 800 800 70 30 80 Striker 0 2 110 1 0 0 20 100 20 10 10 10 20 100 80 60 50 70 50 90 22 5 unarmed bike bike bike 0 unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init 50 1 15
STAT_GS_FEMALE_S none 0 100 12 50 0 75 0 30 50 20 50 0 0 0 0 60 Generic 0 7 100 1 0 0 20 100 20 10 10 10 20 100 80 60 50 70 50 90 3 3 unarmed None None None 0 unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init 15 0 15
STAT_PF_BASIC_S none 0 100 12 10 0 0 0 75 50 20 70 40 0 0 0 60 Striker 0 7 100 1 0 0 20 100 20 10 10 10 20 100 80 60 0 70 50 90 23 5 W_Flashlight None None None 100 unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init 90 0 0
STAT_B_STRIKER_S none 0 100 12 90 0 0 0 800 50 20 60 800 800 70 30 60 Grappler 0 2 100 1 0 0 20 100 20 10 10 10 20 100 80 60 50 70 50 90 0 0 unarmed crapbmx crapbmx crapbmx 0 unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init 50 0 15
STAT_N_RANGED_S none 0 100 12 85 0 25 0 30 50 100 50 20 0 20 20 60 Ranged 2 3 100 1 0 0 20 100 20 10 10 10 20 100 80 60 10 70 50 90 3 4 unarmed banbike banbike banbike 100 cherryb 3 1 init cherryb 3 1 init cherryb 3 1 init unarmed -1 1 init 50 1 15
STAT_TE_JANITOR none 0 100 12 500 0 0 0 50 50 100 70 0 75 0 0 60 Generic 0 7 100 1 0 0 20 100 20 10 10 10 20 100 80 60 0 70 50 90 100 100 unarmed None None None 100 Jbroom -1 1 init Jbroom -1 1 init Jbroom -1 1 init unarmed -1 1 init 90 0 0
STAT_TO_SIAMESE none 0 100 12 500 0 0 0 50 50 0 0 0 75 0 0 60 Generic 0 7 100 1 0 0 20 100 20 10 10 10 20 100 80 60 50 70 50 90 100 100 unarmed None None None 100 Stwins_Bad -1 1 init Stwins_Bad -1 1 init Stwins_Bad -1 1 init unarmed -1 1 init 50 1 15
STAT_GARY none 0 100 12 250 0 0 0 800 50 20 60 800 800 70 30 60 Striker 0 3 100 1 0 0 20 100 20 10 10 10 30 100 80 60 50 70 50 90 31 13 unarmed None None None 0 unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init 75 1 0
STAT_HOBO none 0 100 12 300 0 0 0 30 50 0 0 0 75 0 0 60 Generic 0 7 100 1 0 0 20 100 20 10 10 10 20 100 80 60 50 70 50 90 100 100 unarmed Scooter oladbike aquabike 0 unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init 90 0 0
STAT_B_RUSSELL_A none 20 100 12 800 0 0 0 800 50 20 60 800 800 70 30 60 Striker 1 2 100 1 0 0 20 100 20 10 10 10 20 100 80 60 5 70 50 90 100 100 unarmed None None None 0 unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init 95 0 0
STAT_G_STRIKER_B FRAFFYCAN 20 100 12 300 0 0 0 800 80 85 60 800 800 25 0 60 Striker 1 2 110 1 0 0 200 200 40 60 60 60 80 100 80 60 5 70 50 90 12 4 unarmed banbike banbike racer 100 slingshot -1 1 1_03 unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init 35 1 15
STAT_G_GRAPPLER_B none 0 100 12 650 0 0 0 800 80 85 60 800 800 25 0 60 Grappler 0 7 120 1 0 0 20 100 20 10 10 10 20 100 80 60 50 70 50 90 40 40 unarmed banbike banbike racer 30 slingshot -1 1 1_03 unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init 45 0 15
STAT_GS_NEMESIS1 FRAFFYCAN 20 100 12 300 800 0 0 800 80 85 60 800 800 25 0 60 Striker 0 3 150 1 0 0 20 100 20 10 10 10 30 100 80 60 50 70 50 90 31 13 unarmed None None None 0 unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init 75 1 0
STAT_DO_STRIKER_B FRAFFYCAN 20 100 12 300 0 0 0 800 80 85 60 800 800 25 0 60 Striker 0 7 120 1 0 0 20 100 20 10 10 10 20 100 80 60 50 70 50 90 40 40 unarmed crapbmx crapbmx banbike 80 brick -1 1 init twobyfour 1 2 init lid -1 1 init unarmed -1 1 init 50 1 15
STAT_P_STRIKER_S none 0 100 12 425 0 0 0 800 50 20 60 800 800 70 30 60 Striker 0 1 110 1 0 0 20 100 20 10 10 10 20 100 80 60 50 70 50 90 13 3 unarmed aquabike aquabike crapbmx 30 eggproj -1 2 init eggproj -1 2 init slingshot -1 1 1_03 unarmed -1 1 init 20 1 15
STAT_P_STRIKER_D none 0 100 12 500 0 0 0 800 50 20 60 800 800 70 30 60 Striker 0 1 110 1 0 0 20 100 20 10 10 10 20 100 80 60 50 70 50 90 13 3 unarmed aquabike aquabike crapbmx 50 eggproj -1 1 init cricket -1 3 2_08 eggproj -1 1 init unarmed -1 1 init 20 1 15
STAT_P_GRAPPLER_B none 0 100 12 350 0 0 0 800 200 200 200 800 800 90 80 100 Grappler 1 2 110 1 0 0 200 200 40 60 60 60 80 100 80 60 5 70 50 90 9 31 unarmed aquabike aquabike crapbmx 30 eggproj -1 1 init eggproj -1 1 init eggproj -1 1 init unarmed -1 1 init 25 1 15
STAT_P_GRAPPLER_S none 0 100 12 550 0 0 0 800 200 200 200 800 800 90 80 100 Grappler 1 2 110 1 0 0 200 200 40 60 60 60 80 100 80 60 5 70 50 90 9 31 unarmed aquabike aquabike crapbmx 30 eggproj -1 1 init eggproj -1 1 init eggproj -1 1 init unarmed -1 1 init 25 1 15
STAT_J_MELEE_B none 0 360 35 500 0 0 0 800 800 800 800 800 800 70 30 80 Ranged 1 2 110 1 0 0 20 100 20 10 10 10 20 100 80 60 5 70 50 90 100 100 unarmed None None None 100 Wftball -1 1 init Wftball -1 1 init Wftball -1 1 init unarmed -1 1 init 95 0 0
STAT_P_STRIKER_G FRAFFYCAN 20 100 12 250 0 0 0 800 50 20 60 800 800 70 30 60 Grappler 0 1 120 1 0 0 20 100 20 10 10 10 20 100 80 60 50 70 50 90 9 31 unarmed aquabike aquabike crapbmx 30 eggproj -1 1 init eggproj -1 1 init eggproj -1 1 init unarmed -1 1 init 25 1 15
STAT_P_BOXING_P1 none 0 100 12 300 0 0 0 800 50 20 60 800 800 70 30 60 Striker 0 1 100 1 0 0 20 100 20 10 10 10 30 100 80 60 50 70 50 90 4 4 unarmed None None None 0 unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init 25 1 15
STAT_N_STRIKER_S FRAFFYCAN 20 100 12 300 0 0 0 800 50 20 60 800 800 70 30 60 Ranged 0 7 120 1 0 0 20 100 20 10 10 10 20 100 80 60 50 70 50 90 4 4 unarmed oladbike crapbmx banbike 300 cherryb -1 1 1_03cherryb -1 1 1_03 cherryb -1 1 1_03 cherryb -1 1 init 25 1 33
STAT_GS_MALE_B none 0 100 12 450 0 0 0 800 50 20 60 800 800 70 30 60 Generic 0 7 120 1 0 0 20 100 20 10 10 10 20 100 80 60 50 70 50 90 4 4 unarmed banbike crapbmx oladbike 0 unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init 10 0 15
STAT_P_BOXING_Siames none 0 100 12 800 0 0 0 800 50 20 60 800 800 70 30 60 Striker 0 1 100 1 0 0 20 100 20 10 10 10 20 100 80 60 50 70 50 90 100 100 unarmed None None None 0 unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init 50 0 15
STAT_P_DAMON_CLEA none 0 360 12 375 0 0 0 800 50 20 60 800 800 70 30 60 Grappler 0 1 100 1 0 0 20 100 20 10 10 10 20 100 80 60 20 70 50 90 100 100 unarmed None None None 0 unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init 50 0 15
STAT_J_BOB none 0 360 15 450 0 0 0 800 80 85 60 800 800 25 0 60 Grappler 1 2 100 1 0 0 20 100 20 10 10 10 20 100 80 60 5 70 50 90 100 100 unarmed None None None 0 unarmed 0 1 init unarmed 0 1 init unarmed 0 1 init unarmed -1 1 init 50 1 15
STAT_B_DAVIS_CLE FRAFFYCAN 20 100 12 250 0 0 0 800 80 85 60 800 800 25 0 60 Ranged 0 2 100 1 0 0 20 100 20 10 10 10 20 100 80 60 5 70 50 90 0 0 unarmed crapbmx banbike crapbmx 100 slingshot -1 1 1_03 slingshot -1 1 1_03 cherryb -1 2 1_B unarmed -1 1 init 25 1 15
STAT_DARBY_BS none 0 100 12 800 0 0 0 800 80 85 60 800 800 25 0 60 Striker 0 1 100 1 0 0 20 100 20 10 10 10 20 100 80 60 20 70 50 90 100 100 unarmed None None None 0 unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init 50 0 15
STAT_G_PEANUT_CL FRAFFYCAN 20 100 12 300 0 0 0 800 80 85 60 800 800 25 0 60 Striker 0 2 100 1 0 0 20 100 20 10 10 10 15 100 80 60 50 70 50 90 22 5 unarmed banbike banbike racer 30 slingshot -1 1 1_03 unarmed -1 1 init unarmed -1 1 init unarmed -1 1 init 35 1 15
STAT_DO_OMAR_CLEA FRAFFYCAN 20 100 12 300 0 0 0 800 80 85 60 800 800 25 0 60 Striker 0 1 100 1 0 0 20 100 20 10 10 10 20 100 80 60 50 70 50 90 42 8 unarmed crapbmx crapbmx banbike 80 brick -1 1 init twobyfour 1 2 init lid -1 1 init unarmed -1 1 init 50 1 15
STAT_CRAZY_BASIC_SAVAGE02 FRAFFYCAN 20 100 12 300 0 0 0 800 80 85 60 800 800 25 0 60 Striker 0 1 100 1 0 0 20 100 20 10 10 10 20 100 80 60 50 70 50 90 42 8 unarmed crapbmx crapbmx banbike 80 brick -1 1 init twobyfour 1 2 init lid -1 1 init unarmed -1 1 init 50 1 15

http://www.mediafire.com/download/ub9nwumaa568ode/ide%282%29.img

Here's the fille fgts  >:(

17
Modding Questions/Help Archives / Spawning Entity's
« on: November 02, 2015, 12:34:54 PM »
I know I might've asked this before but I know how to spawn vehicles like car's and bikes but I wanted to know how to spawn barriers or tree's and such things or make them appear to be destroyed or knocked over. I've seen Swegta and Rambo do this in their video's and still have no clear explanation on how to do this. If someone can give me a tutorial or depiction on how to do this that would be pretty neat.

18
Happy Halloween Guy's


A Mission for the holiday

Enjoy!

I also added my pedstats and my ide to fix the boss fights and fighting stats.


Code: [Select]

MissionSetup = function()
  AreaTransitionXYZ(0, 270, -110, 6.4000000953674)
  Wait(200)
  AreaTransitionXYZ(14,-502.2488, 318.8277, 31.4111)
  ChapterSet(1)
  PlayerSetHealth(800)
  PlayerSwapModel("PRH1a_Tad")

  ClockSet(20, 0) 
 
  DATLoad("1_11X2.DAT", 2)
  DATInit()
 
  DisablePunishmentSystem(true)
  AreaDisableAllPatrolPaths()
  SoundPlayInteractiveStream("MS_HalloweenLow.rsm", 0.5)
  SoundSetMidIntensityStream("MS_HalloweenMid.rsm", 0.60000002384186)
  SoundSetHighIntensityStream("MS_HalloweenHigh.rsm", 1)
  DisablePunishmentSystem(false)
 
  AreaLoadSpecialEntities("Halloween3", true)
  AreaEnsureSpecialEntitiesAreCreated()
 
  PedSetActionTree(gPlayer,"/Global/Player","Act/Player.act")
  PedSetAITree(gPlayer,"/Global/PlayerAI","Act/PlayerAI.act")
 
    LoadAnimationGroup("1_02BYourSchool")
  LoadAnimationGroup("1_02_MeetWithGary")
  LoadAnimationGroup("1_03The Setup")
  LoadAnimationGroup("1_04TheSlingshot")
  LoadAnimationGroup("1_06ALittleHelp")
  LoadAnimationGroup("1_07_SaveBucky")
  LoadAnimationGroup("1_07_Sk8Board")
  LoadAnimationGroup("1_08ThatBitch")
  LoadAnimationGroup("1_08_MandPuke")
  LoadAnimationGroup("1_09_Candidate")
  LoadAnimationGroup("1_10Betrayal")
  LoadAnimationGroup("1_11B_HeBigPrank")
  LoadAnimationGroup("1_G1_TheDiary")
  LoadAnimationGroup("1_S01HatVsGall")
  LoadAnimationGroup("2_01LastMinuteShop")
  LoadAnimationGroup("2_02ComicKlepto")
  LoadAnimationGroup("2_05TadsHouse")
  LoadAnimationGroup("2_06MovieTickets")
  LoadAnimationGroup("2_07BeachRumble")
  LoadAnimationGroup("2_08WeedKiller")
  LoadAnimationGroup("2_4RichAreaRace")
  LoadAnimationGroup("2_G2CarnivalDate")
  LoadAnimationGroup("2_G2_GiftExchange")
  LoadAnimationGroup("2_R03PaperRoute")
  LoadAnimationGroup("2_S02CharSheets")
  LoadAnimationGroup("2_S04CharSheets")
  LoadAnimationGroup("2_S05_CooksCrush")
  LoadAnimationGroup("2_S06PantyRaid")
  LoadAnimationGroup("3_01JealousJohnny")
  LoadAnimationGroup("3_04WrongPtTown")
  LoadAnimationGroup("3_05TheTenements")
  LoadAnimationGroup("3_BFightJohnnyV")
  LoadAnimationGroup("3_G3")
  LoadAnimationGroup("3_R05ChemicalDeliv")
  LoadAnimationGroup("3_R08RaceLeague")
  LoadAnimationGroup("3_S03CheatinTime")
  LoadAnimationGroup("4_01Paparazzi")
  LoadAnimationGroup("4_04_FunhouseFun")
  LoadAnimationGroup("4_06BigGame")
  LoadAnimationGroup("4_B2_JockBossBattle")
  LoadAnimationGroup("5_01Grp")
  LoadAnimationGroup("5_01Rats")
  LoadAnimationGroup("5_02PrVandalized")
  LoadAnimationGroup("5_05Zoe")
  LoadAnimationGroup("5_09MakingAMark")
  LoadAnimationGroup("6B_PARA")
  LoadAnimationGroup("AGymLght")
  LoadAnimationGroup("Ambient")
  LoadAnimationGroup("Ambient2")
  LoadAnimationGroup("Ambient3")
  LoadAnimationGroup("ANIBBALL")
  LoadAnimationGroup("AniBroom")
  LoadAnimationGroup("AniDice")
  LoadAnimationGroup("AniFooty")
  LoadAnimationGroup("AniGlobe")
  LoadAnimationGroup("AnimSave")
  LoadAnimationGroup("AniPillo")
  LoadAnimationGroup("ARC3D")
  LoadAnimationGroup("Area_Asylum")
  LoadAnimationGroup("Area_Funhouse")
  LoadAnimationGroup("Area_GirlsDorm")
  LoadAnimationGroup("Area_Infirmary")
  LoadAnimationGroup("Area_School")
  LoadAnimationGroup("Area_Tenements")
  LoadAnimationGroup("Armor")
  LoadAnimationGroup("AsyBars")
  LoadAnimationGroup("AsyDoorB")
  LoadAnimationGroup("AsyDoors")
  LoadAnimationGroup("AsyGate")
  LoadAnimationGroup("AsyLever")
  LoadAnimationGroup("AsySwtch")
  LoadAnimationGroup("AtcPlank")
  LoadAnimationGroup("Authority")
  LoadAnimationGroup("BANANA")
  LoadAnimationGroup("barelLad")
  LoadAnimationGroup("BarrGate")
  LoadAnimationGroup("BATON")
  LoadAnimationGroup("BBALL_21")
  LoadAnimationGroup("bbgun")
  LoadAnimationGroup("BCatcher")
  LoadAnimationGroup("BdrDoorL")
  LoadAnimationGroup("BeardLady")
  LoadAnimationGroup("Bike")
  LoadAnimationGroup("BikeGar")
  LoadAnimationGroup("BoldRoll")
  LoadAnimationGroup("BoltCutt")
  LoadAnimationGroup("Boxing")
  LoadAnimationGroup("BoxRopes")
  LoadAnimationGroup("BRDoor")
  LoadAnimationGroup("BrkSwtch")
  LoadAnimationGroup("BROCKETL")
  LoadAnimationGroup("BRSwitch")
  LoadAnimationGroup("BusDoors")
  LoadAnimationGroup("Butcher")
  LoadAnimationGroup("BXPBag")
  LoadAnimationGroup("B_Striker")
  LoadAnimationGroup("CarnCurt")
  LoadAnimationGroup("CARNI01")
  LoadAnimationGroup("carnies")
  LoadAnimationGroup("Car_Ham")
  LoadAnimationGroup("Cavalier")
  LoadAnimationGroup("Cheer_Cool1")
  LoadAnimationGroup("Cheer_Cool2")
  LoadAnimationGroup("Cheer_Cool3")
  LoadAnimationGroup("Cheer_Gen1")
  LoadAnimationGroup("Cheer_Gen2")
  LoadAnimationGroup("Cheer_Gen3")
  LoadAnimationGroup("Cheer_Girl1")
  LoadAnimationGroup("Cheer_Girl2")
  LoadAnimationGroup("Cheer_Girl3")
  LoadAnimationGroup("Cheer_Girl4")
  LoadAnimationGroup("Cheer_Nerd1")
  LoadAnimationGroup("Cheer_Nerd2")
  LoadAnimationGroup("Cheer_Nerd3")
  LoadAnimationGroup("Cheer_Posh1")
  LoadAnimationGroup("Cheer_Posh2")
  LoadAnimationGroup("Cheer_Posh3")
  LoadAnimationGroup("Chem_Set")
  LoadAnimationGroup("ChLead_Idle")
  LoadAnimationGroup("CLadderA")
  LoadAnimationGroup("CnGate")
  LoadAnimationGroup("Coaster")
  LoadAnimationGroup("COPBIKE")
  LoadAnimationGroup("Cop_Frisk")
  LoadAnimationGroup("CV_Female")
  LoadAnimationGroup("CV_Male")
  LoadAnimationGroup("C_Wrestling")
  LoadAnimationGroup("DartBrd")
  LoadAnimationGroup("DartCab")
  LoadAnimationGroup("DodgeBall")
  LoadAnimationGroup("DodgeBall2")
  LoadAnimationGroup("DoorStr1")
  LoadAnimationGroup("DO_Edgar")
  LoadAnimationGroup("DO_Grap")
  LoadAnimationGroup("DO_StrikeCombo")
  LoadAnimationGroup("DO_Striker")
  LoadAnimationGroup("DRBrace")
  LoadAnimationGroup("Drumming")
  LoadAnimationGroup("DuffBag")
  LoadAnimationGroup("DunkBttn")
  LoadAnimationGroup("DunkSeat")
  LoadAnimationGroup("Earnest")
  LoadAnimationGroup("EnglishClass")
  LoadAnimationGroup("ErrandCrab")
  LoadAnimationGroup("Errand_BUS")
  LoadAnimationGroup("Errand_IND")
  LoadAnimationGroup("Errand_RIC")
  LoadAnimationGroup("Errand_SCH")
  LoadAnimationGroup("ESCDoorL")
  LoadAnimationGroup("ESCDoorR")
  LoadAnimationGroup("ExtWind")
  LoadAnimationGroup("FDoor")
  LoadAnimationGroup("FDoorB")
  LoadAnimationGroup("FDoorC")
  LoadAnimationGroup("Ferris")
  LoadAnimationGroup("FGhost")
  LoadAnimationGroup("FGoblin")
  LoadAnimationGroup("FlagA")
  LoadAnimationGroup("FLbBook")
  LoadAnimationGroup("FlbLader")
  LoadAnimationGroup("FLbPaint")
  LoadAnimationGroup("FLbTable")
  LoadAnimationGroup("FMCntrl")
  LoadAnimationGroup("FMDoor")
  LoadAnimationGroup("FMTrapDr")
  LoadAnimationGroup("FMTrapSw")
  LoadAnimationGroup("FortTell")
  LoadAnimationGroup("funCart")
  LoadAnimationGroup("funCurtn")
  LoadAnimationGroup("funMiner")
  LoadAnimationGroup("funRocks")
  LoadAnimationGroup("FunTeeth")
  LoadAnimationGroup("FXTestG")
  LoadAnimationGroup("F_Adult")
  LoadAnimationGroup("F_BULLY")
  LoadAnimationGroup("F_Crazy")
  LoadAnimationGroup("F_Douts")
  LoadAnimationGroup("F_Girls")
  LoadAnimationGroup("F_Greas")
  LoadAnimationGroup("F_Jocks")
  LoadAnimationGroup("F_Nerds")
  LoadAnimationGroup("F_OldPeds")
  LoadAnimationGroup("F_Pref")
  LoadAnimationGroup("F_Preps")
  LoadAnimationGroup("GarbCanA")
  LoadAnimationGroup("GatCool")
  LoadAnimationGroup("GEN_SOCIAL")
  LoadAnimationGroup("Gfight")
  LoadAnimationGroup("GhostDrs")
  LoadAnimationGroup("Gift")
  LoadAnimationGroup("Go_Cart")
  LoadAnimationGroup("Grap")
  LoadAnimationGroup("GymHoop")
  LoadAnimationGroup("GymWLad")
  LoadAnimationGroup("G_Grappler")
  LoadAnimationGroup("G_Johnny")
  LoadAnimationGroup("G_Striker")
  LoadAnimationGroup("Halloween")
  LoadAnimationGroup("HallWind")
  LoadAnimationGroup("Hang_Jock")
  LoadAnimationGroup("Hang_Moshing")
  LoadAnimationGroup("Hang_Talking")
  LoadAnimationGroup("Hang_Workout")
  LoadAnimationGroup("Hobos")
  LoadAnimationGroup("Hobo_Cheer")
  LoadAnimationGroup("HSdinger")
  LoadAnimationGroup("HUMIL_4-10_B")
  LoadAnimationGroup("HUMIL_4-10_C")
  LoadAnimationGroup("HUMIL_5-8F_A")
  LoadAnimationGroup("HUMIL_5-8F_B")
  LoadAnimationGroup("HUMIL_5-8V4-10")
  LoadAnimationGroup("HUMIL_5-8V6-1")
  LoadAnimationGroup("HUMIL_5-8VPLY")
  LoadAnimationGroup("HUMIL_5-8_A")
  LoadAnimationGroup("HUMIL_5-8_B")
  LoadAnimationGroup("HUMIL_5-8_C")
  LoadAnimationGroup("HUMIL_6-1V4-10")
  LoadAnimationGroup("HUMIL_6-1V6-1")
  LoadAnimationGroup("HUMIL_6-1VPLY")
  LoadAnimationGroup("HUMIL_6-1_A")
  LoadAnimationGroup("HUMIL_6-1_B")
  LoadAnimationGroup("HUMIL_6-1_C")
  LoadAnimationGroup("HUMIL_6-5V4-10")
  LoadAnimationGroup("HUMIL_6-5V6-1")
  LoadAnimationGroup("HUMIL_6-5VPLY")
  LoadAnimationGroup("HUMIL_6-5_A")
  LoadAnimationGroup("HUMIL_6-5_B")
  LoadAnimationGroup("HUMIL_6-5_C")
  LoadAnimationGroup("IDLE_AUTH_A")
  LoadAnimationGroup("IDLE_AUTH_B")
  LoadAnimationGroup("IDLE_AUTH_C")
  LoadAnimationGroup("IDLE_AUTH_D")
  LoadAnimationGroup("IDLE_BULLY_A")
  LoadAnimationGroup("IDLE_BULLY_B")
  LoadAnimationGroup("IDLE_BULLY_C")
  LoadAnimationGroup("IDLE_BULLY_D")
  LoadAnimationGroup("IDLE_CIVF_A")
  LoadAnimationGroup("IDLE_CIVF_B")
  LoadAnimationGroup("IDLE_CIVF_C")
  LoadAnimationGroup("IDLE_CIVM_A")
  LoadAnimationGroup("IDLE_CIVM_B")
  LoadAnimationGroup("IDLE_CIVM_C")
  LoadAnimationGroup("IDLE_DOUT_A")
  LoadAnimationGroup("IDLE_DOUT_B")
  LoadAnimationGroup("IDLE_DOUT_C")
  LoadAnimationGroup("IDLE_DOUT_D")
  LoadAnimationGroup("IDLE_FATG_A")
  LoadAnimationGroup("IDLE_FATG_B")
  LoadAnimationGroup("IDLE_FATG_C")
  LoadAnimationGroup("IDLE_FAT_A")
  LoadAnimationGroup("IDLE_FAT_B")
  LoadAnimationGroup("IDLE_FAT_C")
  LoadAnimationGroup("IDLE_GREAS_A")
  LoadAnimationGroup("IDLE_GREAS_B")
  LoadAnimationGroup("IDLE_GREAS_C")
  LoadAnimationGroup("IDLE_GREAS_D")
  LoadAnimationGroup("IDLE_GSF_A")
  LoadAnimationGroup("IDLE_GSF_B")
  LoadAnimationGroup("IDLE_GSF_C")
  LoadAnimationGroup("IDLE_GSM_A")
  LoadAnimationGroup("IDLE_GSM_B")
  LoadAnimationGroup("IDLE_GSM_C")
  LoadAnimationGroup("IDLE_JOCK_A")
  LoadAnimationGroup("IDLE_JOCK_B")
  LoadAnimationGroup("IDLE_JOCK_C")
  LoadAnimationGroup("IDLE_JOCK_D")
  LoadAnimationGroup("IDLE_NERD_A")
  LoadAnimationGroup("IDLE_NERD_B")
  LoadAnimationGroup("IDLE_NERD_C")
  LoadAnimationGroup("IDLE_NERD_D")
  LoadAnimationGroup("IDLE_NGIRL")
  LoadAnimationGroup("IDLE_PREP_A")
  LoadAnimationGroup("IDLE_PREP_B")
  LoadAnimationGroup("IDLE_PREP_C")
  LoadAnimationGroup("IDLE_PREP_D")
  LoadAnimationGroup("IDLE_SEXY_A")
  LoadAnimationGroup("IDLE_SEXY_B")
  LoadAnimationGroup("IDLE_SEXY_C")
  LoadAnimationGroup("INDgateC")
  LoadAnimationGroup("JPhoto")
  LoadAnimationGroup("JunkCarA")
  LoadAnimationGroup("JV_Asylum")
  LoadAnimationGroup("J_Damon")
  LoadAnimationGroup("J_Grappler")
  LoadAnimationGroup("J_Melee")
  LoadAnimationGroup("J_Ranged")
  LoadAnimationGroup("J_Striker")
  LoadAnimationGroup("KISS1")
  LoadAnimationGroup("KISS2")
  LoadAnimationGroup("KISS3")
  LoadAnimationGroup("KISS4")
  LoadAnimationGroup("KissAdult")
  LoadAnimationGroup("KISSB")
  LoadAnimationGroup("KISSF")
  LoadAnimationGroup("LckrGymA")
  LoadAnimationGroup("LE_Officer")
  LoadAnimationGroup("LE_Orderly")
  LoadAnimationGroup("Mermaid")
  LoadAnimationGroup("MG_Craps")
  LoadAnimationGroup("MINIBIKE")
  LoadAnimationGroup("MINICHEM")
  LoadAnimationGroup("MINIDARTS")
  LoadAnimationGroup("MINIDunk")
  LoadAnimationGroup("MINIGraf")
  LoadAnimationGroup("MINIHACKY")
  LoadAnimationGroup("MINI_Arm")
  LoadAnimationGroup("MINI_BallToss")
  LoadAnimationGroup("MINI_Lock")
  LoadAnimationGroup("MINI_React")
  LoadAnimationGroup("Miracle")
  LoadAnimationGroup("MOWER")
  LoadAnimationGroup("MPostA")
  LoadAnimationGroup("N2B Dishonerable")
  LoadAnimationGroup("Nemesis")
  LoadAnimationGroup("nerdBar1")
  LoadAnimationGroup("NIS_0_00A")
  LoadAnimationGroup("NIS_1_02")
  LoadAnimationGroup("NIS_1_02B")
  LoadAnimationGroup("NIS_1_03")
  LoadAnimationGroup("NIS_1_04")
  LoadAnimationGroup("NIS_1_05")
  LoadAnimationGroup("NIS_1_07")
  LoadAnimationGroup("NIS_1_08_1")
  LoadAnimationGroup("NIS_1_09")
  LoadAnimationGroup("NIS_1_11")
  LoadAnimationGroup("NIS_2_01")
  LoadAnimationGroup("NIS_2_03")
  LoadAnimationGroup("NIS_2_04")
  LoadAnimationGroup("NIS_2_06_1")
  LoadAnimationGroup("NIS_2_B")
  LoadAnimationGroup("NIS_2_S04")
  LoadAnimationGroup("NIS_3_01")
  LoadAnimationGroup("NIS_3_02")
  LoadAnimationGroup("NIS_3_04")
  LoadAnimationGroup("NIS_3_05")
  LoadAnimationGroup("NIS_3_06")
  LoadAnimationGroup("NIS_3_08")
  LoadAnimationGroup("NIS_3_11")
  LoadAnimationGroup("NIS_3_B")
  LoadAnimationGroup("NIS_3_G3")
  LoadAnimationGroup("NIS_3_R09_D")
  LoadAnimationGroup("NIS_3_R09_G")
  LoadAnimationGroup("NIS_3_R09_J")
  LoadAnimationGroup("NIS_3_R09_N")
  LoadAnimationGroup("NIS_3_R09_P")
  LoadAnimationGroup("NIS_3_S03")
  LoadAnimationGroup("NIS_3_S03_B")
  LoadAnimationGroup("NIS_3_S11")
  LoadAnimationGroup("NIS_4_01")
  LoadAnimationGroup("NIS_4_05")
  LoadAnimationGroup("NIS_4_06")
  LoadAnimationGroup("NIS_4_B2")
  LoadAnimationGroup("NIS_5_01")
  LoadAnimationGroup("NIS_5_02")
  LoadAnimationGroup("NIS_5_03")
  LoadAnimationGroup("NIS_5_04")
  LoadAnimationGroup("NIS_5_05")
  LoadAnimationGroup("NIS_5_07")
  LoadAnimationGroup("NIS_5_G5")
  LoadAnimationGroup("NIS_6_02")
  LoadAnimationGroup("NIS_6_03")
  LoadAnimationGroup("NLock01A")
  LoadAnimationGroup("NPC_Adult")
  LoadAnimationGroup("NPC_AggroTaunt")
  LoadAnimationGroup("NPC_Chat_1")
  LoadAnimationGroup("NPC_Chat_2")
  LoadAnimationGroup("NPC_Chat_F")
  LoadAnimationGroup("NPC_Cheering")
  LoadAnimationGroup("NPC_Love")
  LoadAnimationGroup("NPC_Mascot")
  LoadAnimationGroup("NPC_NeedsResolving")
  LoadAnimationGroup("NPC_Principal")
  LoadAnimationGroup("NPC_Shopping")
  LoadAnimationGroup("NPC_Spectator")
  LoadAnimationGroup("N_Ranged")
  LoadAnimationGroup("N_Striker")
  LoadAnimationGroup("N_Striker_A")
  LoadAnimationGroup("N_Striker_B")
  LoadAnimationGroup("ObsDoor")
  LoadAnimationGroup("OBSMotor")
  LoadAnimationGroup("ObsPtf_1")
  LoadAnimationGroup("ObsPtf_2")
  LoadAnimationGroup("Pageant")
  LoadAnimationGroup("PedCoaster")
  LoadAnimationGroup("Player_Tired")
  LoadAnimationGroup("Player_VTired")
  LoadAnimationGroup("POI_Booktease")
  LoadAnimationGroup("POI_Cafeteria")
  LoadAnimationGroup("POI_ChLead")
  LoadAnimationGroup("POI_Gen")
  LoadAnimationGroup("POI_Smoking")
  LoadAnimationGroup("POI_Telloff")
  LoadAnimationGroup("POI_WarmHands")
  LoadAnimationGroup("POI_Worker")
  LoadAnimationGroup("PortaPoo")
  LoadAnimationGroup("PrepDoor")
  LoadAnimationGroup("PunchBag")
  LoadAnimationGroup("pxHoop")
  LoadAnimationGroup("pxLad10M")
  LoadAnimationGroup("Px_Arcade")
  LoadAnimationGroup("Px_Bed")
  LoadAnimationGroup("Px_Fountain")
  LoadAnimationGroup("Px_Garb")
  LoadAnimationGroup("Px_Gen")
  LoadAnimationGroup("Px_Ladr")
  LoadAnimationGroup("Px_Rail")
  LoadAnimationGroup("Px_RedButton")
  LoadAnimationGroup("Px_Sink")
  LoadAnimationGroup("Px_Tlet")
  LoadAnimationGroup("Px_Tree")
  LoadAnimationGroup("P_Grappler")
  LoadAnimationGroup("P_Striker")
  LoadAnimationGroup("QPed")
  LoadAnimationGroup("RAT_PED")
  LoadAnimationGroup("Reeper")
  LoadAnimationGroup("RMailbox")
  LoadAnimationGroup("Russell")
  LoadAnimationGroup("Russell_PBomb")
  LoadAnimationGroup("Santa_Lap")
  LoadAnimationGroup("SAUTH_A")
  LoadAnimationGroup("SAUTH_F")
  LoadAnimationGroup("SAUTH_U")
  LoadAnimationGroup("SAUTH_X")
  LoadAnimationGroup("SBarels1")
  LoadAnimationGroup("SBULL_A")
  LoadAnimationGroup("SBULL_F")
  LoadAnimationGroup("SBULL_S")
  LoadAnimationGroup("SBULL_U")
  LoadAnimationGroup("SBULL_X")
  LoadAnimationGroup("Scaffold")
  LoadAnimationGroup("SCbanpil")
  LoadAnimationGroup("SCBell")
  LoadAnimationGroup("SCDoor")
  LoadAnimationGroup("ScGate")
  LoadAnimationGroup("SCgrdoor")
  LoadAnimationGroup("scObsDr")
  LoadAnimationGroup("ScoolBus")
  LoadAnimationGroup("SCOOTER")
  LoadAnimationGroup("SecDoorL")
  LoadAnimationGroup("SecDoorR")
  LoadAnimationGroup("Sedan")
  LoadAnimationGroup("SFAT_A")
  LoadAnimationGroup("SFAT_F")
  LoadAnimationGroup("SFAT_I")
  LoadAnimationGroup("SFAT_S")
  LoadAnimationGroup("SGEN_A")
  LoadAnimationGroup("SGEN_F")
  LoadAnimationGroup("SGEN_I")
  LoadAnimationGroup("SGEN_S")
  LoadAnimationGroup("SGIRLS")
  LoadAnimationGroup("SGIRL_A")
  LoadAnimationGroup("SGIRL_D")
  LoadAnimationGroup("SGIRL_F")
  LoadAnimationGroup("SGIRL_S")
  LoadAnimationGroup("SGTargB")
  LoadAnimationGroup("ShopBike")
  LoadAnimationGroup("SHUMIL_01")
  LoadAnimationGroup("SHWR")
  LoadAnimationGroup("SIAMESE")
  LoadAnimationGroup("Siamese2")
  LoadAnimationGroup("Sitting_Boys")
  LoadAnimationGroup("SK8Board")
  LoadAnimationGroup("Skateboard")
  LoadAnimationGroup("SkeltonMan")
  LoadAnimationGroup("Slingsh")
  LoadAnimationGroup("SNERD_A")
  LoadAnimationGroup("SNERD_F")
  LoadAnimationGroup("SNERD_I")
  LoadAnimationGroup("SNERD_S")
  LoadAnimationGroup("SNGIRLS")
  LoadAnimationGroup("SNGIRL_D")
  LoadAnimationGroup("SNGIRL_F")
  LoadAnimationGroup("SnowBlob")
  LoadAnimationGroup("SnowMND")
  LoadAnimationGroup("SnowWall")
  LoadAnimationGroup("SOLD_A")
  LoadAnimationGroup("SOLD_F")
  LoadAnimationGroup("SOLD_I")
  LoadAnimationGroup("SOLD_S")
  LoadAnimationGroup("SPLAY_A")
  LoadAnimationGroup("SPLAY_B")
  LoadAnimationGroup("SprayCan")
  LoadAnimationGroup("SpudG")
  LoadAnimationGroup("Squid")
  LoadAnimationGroup("StalDoor")
  LoadAnimationGroup("Straf_Dout")
  LoadAnimationGroup("Straf_Fat")
  LoadAnimationGroup("Straf_Female")
  LoadAnimationGroup("Straf_Male")
  LoadAnimationGroup("Straf_Nerd")
  LoadAnimationGroup("Straf_Prep")
  LoadAnimationGroup("Straf_Savage")
  LoadAnimationGroup("Straf_Wrest")
  LoadAnimationGroup("SUV")
  LoadAnimationGroup("TadGates")
  LoadAnimationGroup("TadShud")
  LoadAnimationGroup("TE_Female")
  LoadAnimationGroup("TGKFlag")
  LoadAnimationGroup("ToolBox")
  LoadAnimationGroup("TrackSW")
  LoadAnimationGroup("TreeFall")
  LoadAnimationGroup("Truck")
  LoadAnimationGroup("Try_Clothes")
  LoadAnimationGroup("TSGate")
  LoadAnimationGroup("UBO")
  LoadAnimationGroup("Umbrella")
  LoadAnimationGroup("VDMilo")
  LoadAnimationGroup("VFlytrap")
  LoadAnimationGroup("V_Bike")
  LoadAnimationGroup("V_Bike_Races")
  LoadAnimationGroup("V_COPBIKE")
  LoadAnimationGroup("V_SCOOTER")
  LoadAnimationGroup("WBalloon")
  LoadAnimationGroup("WeaponUnlock")
  LoadAnimationGroup("Ween_Fem")
  LoadAnimationGroup("WHCrane")
  LoadAnimationGroup("WheelBrl")
  LoadAnimationGroup("WPCannon")
  LoadAnimationGroup("WPSheldB")
  LoadAnimationGroup("WPShield")
  LoadAnimationGroup("WPTurret")
  LoadAnimationGroup("W_BBall")
  LoadAnimationGroup("W_BBallBat")
  LoadAnimationGroup("W_BRocket")
  LoadAnimationGroup("W_Camera")
  LoadAnimationGroup("W_CherryBomb")
  LoadAnimationGroup("W_CHShield")
  LoadAnimationGroup("W_FlashLight")
  LoadAnimationGroup("W_Fountain")
  LoadAnimationGroup("W_Itchpowder")
  LoadAnimationGroup("W_JBroom")
  LoadAnimationGroup("W_Lid")
  LoadAnimationGroup("W_PooBag")
  LoadAnimationGroup("W_PRANK")
  LoadAnimationGroup("W_Slingshot")
  LoadAnimationGroup("W_Snowball")
  LoadAnimationGroup("W_snowshwl")
  LoadAnimationGroup("W_SprayCan")
  LoadAnimationGroup("W_SpudGun")
  LoadAnimationGroup("W_Stick")
  LoadAnimationGroup("W_Thrown")
  LoadAnimationGroup("W_wtrpipe")
  LoadAnimationGroup("x_cas1")
  LoadAnimationGroup("x_cas2")
  LoadAnimationGroup("x_cas3")
  LoadAnimationGroup("x_ccane")
  LoadAnimationGroup("X_Chair")
  LoadAnimationGroup("x_cndl")
  LoadAnimationGroup("x_sleigh")
  LoadAnimationGroup("x_tedy")
  LoadAnimationGroup("1_07_Sk8Board")
  Load("Act/Conv/1_07.act")
  LoadActionTree("Act/Props/SBarels1.act")
  LoadActionTree("Act/Props/barrelLad.act")
  LoadActionTree("Act/Conv/1_03.act")
  LoadActionTree("Act/Anim/1_03_Davis.act")

  PedSetUniqueModelStatus(21,-1)
  PedSetUniqueModelStatus(22,-1)
  PedSetUniqueModelStatus(25,-1)
  PedSetUniqueModelStatus(26,-1)
  PedSetUniqueModelStatus(29,-1)
  PedSetUniqueModelStatus(22,-1)
  PedSetUniqueModelStatus(161,-1)
  PedSetUniqueModelStatus(173,-1)
  PedSetUniqueModelStatus(21,-1)

  Bully01 = PedCreateXYZ(21,-549.7865,-40.1353,31.0114)
  Bully02 = PedCreateXYZ(22,-520.1132, -42.4193, 40.4879)
Bully03 = PedCreateXYZ(22,-541.9270,-22.1205,31.0283)
  Bully04 = PedCreateXYZ(24,-534.1452,-21.4380,31.0114)
  Bully05 = PedCreateXYZ(26,-514.2109,-17.3147,31.0114)
  Bully06 = PedCreateXYZ(28,-518.3836,-17.8297,31.0114)
  Bully07 = PedCreateXYZ(29,-512.6098,-43.0886,31.0114)
  Bully08 = PedCreateXYZ(21,-515.1792,-33.0313,35.4627)
  Bully09 = PedCreateXYZ(22,-514.3107,-35.4768,35.0111)
  Bully10 = PedCreateXYZ(24,-509.9862,-50.1966,35.8609)
  Bully11 = PedCreateXYZ(202,-550.0210,-51.9762,35.7125)
  Bully13 = PedCreateXYZ(26,-548.6695,-43.9495,35.7484)
  Bully12 = PedCreateXYZ(173,-540.9907, -32.8057, 40.4923)
  Bully14 = PedCreateXYZ(203,-534.1277,-32.1934,40.4900)
  Bully17 = PedCreateXYZ(201,-512.6098+1, -43.0886+1,31.0114+1)
  Bully19 = PedCreateXYZ(161, -534.1943359,-40.94366074,40.51479721)

  Wait(3000)
  TextPrintString("Rescue Parker from the Tenements before Halloween starts!", 3, 1)
Wait(2000)
  Blip2 = BlipAddXYZ(589.3970337,-473.0499268,4.455030918,0)
TextPrintString("Follow The Yellow X On the Map to Find the next Location!", 3, 2)
Wait(2000)
F_ErrandStart()
end

F_ErrandStart = function()
  local x,y = 583,-472
  local r1 = x + 1.5
  local r2 = y + 1.5
  local r3 = x - 1.5
  local r4 = y - 1.5
  repeat
    Wait(0)
  until PedInRectangle(gPlayer,r1,r2,r3,r4)
  Wait(1500)
  PlayerSetControl(0)
  AreaTransitionXYZ(36, -547.0377808, -45.9171524, 31.0114212)
  BlipRemove(Blip2)
  Blip40 = BlipAddXYZ(-515.4213,-29.9185,31.0114,0)
  PlayerSetControl(1)
 
  PedSetPedToTypeAttitude(Bully01, 13, 0)
  PedSetPedToTypeAttitude(Bully02, 13, 0)
  PedSetPedToTypeAttitude(Bully03, 13, 0)
  PedSetPedToTypeAttitude(Bully04, 13, 0)
  PedSetPedToTypeAttitude(Bully05, 13, 0)
  PedSetPedToTypeAttitude(Bully06, 13, 0)
  PedSetPedToTypeAttitude(Bully07, 13, 0)
  PedSetPedToTypeAttitude(Bully08, 13, 0)
  PedSetPedToTypeAttitude(Bully09, 13, 0)
  PedSetPedToTypeAttitude(Bully10, 13, 0)
  PedSetPedToTypeAttitude(Bully11, 13, 0)
  PedSetPedToTypeAttitude(Bully13, 13, 0)
  PedSetPedToTypeAttitude(Bully14, 13, 0)
  PedSetPedToTypeAttitude(Bully17, 13, 0)
 
  PedAttackPlayer(Bully01, gPlayer,1)
  PedAttackPlayer(Bully02, gPlayer,1)
  PedAttackPlayer(Bully03, gPlayer,1)
  PedAttackPlayer(Bully04, gPlayer,1)
  PedAttackPlayer(Bully05, gPlayer,1)
  PedAttackPlayer(Bully06, gPlayer,1)
  PedAttackPlayer(Bully07, gPlayer,1)
  PedAttackPlayer(Bully08, gPlayer,1)
  PedAttackPlayer(Bully09, gPlayer,1)
  PedAttackPlayer(Bully10, gPlayer,1)
  PedAttackPlayer(Bully11, gPlayer,1)
  PedAttackPlayer(Bully13, gPlayer,1)
  PedAttackPlayer(Bully14, gPlayer,1)
  PedAttackPlayer(Bully17, gPlayer,1)

 
  F_BulliesConfrintation01()

end

F_BulliesConfrintation01 = function()
  local x,y = -515,-29
  local r1 = x + 3.5
  local r2 = y + 3.5
  local r3 = x - 3.5
  local r4 = y - 3.5
  repeat
    Wait(0)
  until PedInRectangle(gPlayer,r1,r2,r3,r4)
 
  PedClearAllWeapons(gPlayer)
  PedSetWeapon(gPlayer,-1)
 
  BlipRemove(Blip40)
 
   TextPrintString("Head upstairs", 4, 1)
   
   Blip47 = BlipAddXYZ(-541.2206,-35.5556,35.7359,0)
   
  F_SuperVanceBossFight()
end

F_SuperVanceBossFight = function()
  local x,y = -541,-35
  local r1 = x + 3.5
  local r2 = y + 3.5
  local r3 = x - 3.5
  local r4 = y - 3.5
  repeat
    Wait(0)
  until PedInRectangle(gPlayer,r1,r2,r3,r4)
BlipRemove(Blip47)

  PedSetDamageTakenMultiplier(Bully12, 3, 0.5)
  PedSetDamageTakenMultiplier(Bully12, 0, 0.5)
 
  PlayerSocialDisableActionAgainstPed(Bully12, 35, true)
  PlayerSocialDisableActionAgainstPed(Bully12, 23, true)
  PlayerSocialDisableActionAgainstPed(Bully12, 30, true)
  PlayerSocialDisableActionAgainstPed(Bully12, 29, true)
  PlayerSocialDisableActionAgainstPed(Bully12, 28, true)
 
  PedSetStationary(Bully12,false)
  PedSetInvulnerable(Bully12,false)
  CameraReset()
  CameraSetWidescreen(false)
 
  TextPrintString("Defeat Super Pirate Vance", 4, 1)
  gEthanBlip = AddBlipForChar(Bully12, 2, 26, 4)
  PedAttackPlayer(Bully12, gPlayer,1)
  PedSetPedToTypeAttitude(Bully12, 13, 0)
  PedSetHealth(Bully12, 575)
  PedSetInfiniteSprint(Bully12, true)
  PedShowHealthBar(Bully12, true, "N_Vance", true)
 
 
  CreateThread("main2")
 ParkerWeen = PedCreateXYZ(163,-540.9707, -38.6303, 40.5263)
 
  Blip103 = BlipAddXYZ(-534.1943359,-40.94366074,40.51479721,0)
  F_SuperLuckyBossFight()
end

F_EthanBossStyle = function()
Wait(2000)
PlayerSetControl(0)
PedSetActionNode(Bully12, "/Global/P_Bif/Offense/Short/Strikes/LightAttacks/JAB/Cross", "Act/anim/P_Bif.act")
SoundPlayScriptedSpeechEvent(Bully12, "FIGHT", 0, "large")
Wait(2000)
PlayerSetControl(1)
PedSetActionNode(Bully12, "/Global/BOSS_Darby/Offense/Short/Grapples/HeavyAttacks/Catch_Throw", "Act/anim/BOSS_Darby.act")
SoundPlayScriptedSpeechEvent(Bully12, "FIGHT", 0, "large")
Wait(2000)
PlayerSetControl(0)
PedSetActionNode(Bully12, "/Global/G_Striker_A/Offense/Short/Strikes/HeavyAttacks/HeavyKnee", "Act/anim/G_Striker_A.act")
SoundPlayScriptedSpeechEvent(Bully12, "FIGHT", 0, "large")
Wait(2000)
PlayerSetControl(1)
PedSetActionNode(Bully12, "/Global/P_Striker_A/Defense/Evade/EvadeCounter/LightAttacks/EvadeBackPunch", "act/anim/P_Striker_A.act")
SoundPlayScriptedSpeechEvent(Bully12, "FIGHT", 0, "large")
Wait(2000)
PedSetActionNode(Bully12, "/Global/G_Grappler_A/Offense/Short/Strikes/LightAttacks", "Act/anim/G_Grappler_A.act")
SoundPlayScriptedSpeechEvent(Bully12, "FIGHT", 0, "large")
Wait(2000)
PedSetActionNode(Bully12, "/Global/G_Grappler_A/Offense/Short/Strikes/HeavyAttacks/RightHook/Uppercut", "Act/anim/G_Grappler_A.act")
SoundPlayScriptedSpeechEvent(Bully12, "FIGHT", 0, "large")
Wait(2600)
PedSetActionNode(Bully12, "/Global/G_Ranged_A/Offense/Short/Strikes/LightAttacks/RightHook/HeavyKnee", "Act/anim/G_Ranged_A.act")
SoundPlayScriptedSpeechEvent(Bully12, "FIGHT", 0, "large")
Wait(2600)
PedSetActionNode(Bully12, "/Global/G_Ranged_A/Offense/Medium/Strikes/HeavyAttacks/HeavyKnee", "Act/anim/G_Ranged_A.act")
SoundPlayScriptedSpeechEvent(Bully12, "FIGHT", 0, "large")
Wait(2600)
PedSetActionNode(Bully12, "/Global/Nemesis/Offense/Medium/Strikes", "Act/anim/Nemesis.act")
SoundPlayScriptedSpeechEvent(Bully12, "FIGHT", 0, "large")
Wait(2600)
PedSetActionNode(Bully12, "/Global/Nemesis/Offense/Medium/Strikes/LightAttacks/OverHandR/HeavyAttacks/Knee", "Act/anim/Nemesis.act")
SoundPlayScriptedSpeechEvent(Bully12, "FIGHT", 0, "large")
Wait(2600)
PlayerSetControl(0)
PedSetActionNode(Bully12, "/Global/Nemesis/Offense/Medium/Strikes/HeavyAttacks/JackieKick","Act/Anim/Nemesis.act")
SoundPlayScriptedSpeechEvent(Bully12, "FIGHT", 0, "large")
Wait(2600)
PlayerSetControl(1)
PedSetActionNode(Bully12, "/Global/J_Striker_A/Offense/Short/Strikes/LightAttacks/JAB/Elbow/HeavyAttacks/Uppercut", "Act/anim/J_Striker_A.act" )
SoundPlayScriptedSpeechEvent(Bully12, "FIGHT", 0, "large")
end

F_EthanKnockedOut = function()
  if PedIsDead(Bully12) and l_1_7 == false then
  l_1_7 = true
 
  PedDelete(Bully12)
 
 
end
  if PedIsDead(Bully12) and l_1_7 == false then
  l_1_7 = true
 
  PedDelete(Bully12)
 
 
end
end

F_SuperLuckyBossFight = function()
  local x,y = -534,-40
  local r1 = x + 3.5
  local r2 = y + 3.5
  local r3 = x - 3.5
  local r4 = y - 3.5
  repeat
    Wait(0)
  until PedInRectangle(gPlayer,r1,r2,r3,r4)
 
  BlipRemove(Blip103)
 
  TextPrintString("Defeat Super Lucky", 4, 1)
 
   PedAttackPlayer(Bully19, gPlayer,2)
   PedSetHealth(Bully19, 1600)
   PedShowHealthBar(Bully19, true, "N_Lucky", true)
   bHealthBarShown = true
   PedSetActionTree(Bully19, "/Global/Russell_102", "Act/Anim/Russell_102.act")
   PedSetPedToTypeAttitude(Bully19, 13, 0)
   PedSetInfiniteSprint(Bully19, true)
   gDavisBlip = AddBlipForChar(Bully19, 2, 1, 4)
   PedLockTarget(Bully19, gPlayer, 3)
   PlayerSetControl(1)
   
  PedSetDamageTakenMultiplier(Bully19, 3, 0.5)
  PedSetDamageTakenMultiplier(Bully19, 0, 0.5)
 
  PlayerSocialDisableActionAgainstPed(Bully19, 35, true)
  PlayerSocialDisableActionAgainstPed(Bully19, 23, true)
  PlayerSocialDisableActionAgainstPed(Bully19, 30, true)
  PlayerSocialDisableActionAgainstPed(Bully19, 29, true)
  PlayerSocialDisableActionAgainstPed(Bully19, 28, true)
 
  PlayerSetHealth(2000)
 
  CreateThread("main8")
   
   PedSetInvulnerable(Bully19,false)
end

BossDefeated = function()
if PedIsDead(Bully19) then

TextPrintString("Errand Complete",4,1)
Wait(3000)

SoundPlayMissionEndMusic(true, 8)
MissionSucceed(true, false, false)
CameraSetWidescreen(true) 
Wait(4000)
CameraFade(500, 0)
AreaTransitionXYZ(14, -501.4, 316.11, 31.5)
Wait(500)
CameraAllowChange(true)
SoundSetAudioFocusPlayer()
CameraReturnToPlayer()
CameraReset()
CameraSetWidescreen(false)
  PlayerSetHealth(800)
  PlayerSwapModel("PRH1a_Tad")
  PedSetActionTree(gPlayer,"/Global/Player","Act/Player.act")
  PedSetAITree(gPlayer,"/Global/PlayerAI","Act/PlayerAI.act")
PlayerSetControl(1)
end
end

F_PlayerFail = function()
if PedIsDead(gPlayer) then
SoundPlayMissionEndMusic(true, 6)
MissionFail(true, false, false)
Wait(4000)
CameraSetWidescreen(true)
CameraFade(700, 0)
AreaTransitionXYZ(14, -501.4, 316.11, 31.5)
Wait(500)
CameraAllowChange(true)
SoundSetAudioFocusPlayer()
CameraReturnToPlayer()
CameraReset()
CameraSetWidescreen(false)
PedSetActionTree(gPlayer,"/Global/Player","Act/Player.act")
PedSetAITree(gPlayer,"/Global/PlayerAI","Act/PlayerAI.act")
PlayerSetControl(1)
end
end

F_DavisBossStyle = function()
PlayerSetControl(0)
Wait(1000)
PedSetActionNode(Bully19, "/Global/Nemesis/Offense/Short/Strikes", "Act/anim/Nemesis.act")
SoundPlayScriptedSpeechEvent(Bully19, "FIGHT", 0, "large")
PlayerSetControl(1)
Wait(1000)
PedSetActionNode(Bully19, "/Global/J_Melee_A/Offense/Short","act/anim/J_Melee_A.act")
SoundPlayScriptedSpeechEvent(Bully19, "FIGHT", 0, "large")
Wait(1000)
PedSetActionNode(Bully19, "/Global/Russell_102/Offense/Short/Medium/RisingAttacks", "act/anim/Russell_102.act")
SoundPlayScriptedSpeechEvent(Bully19, "FIGHT", 0, "large")
Wait(1000)
PedSetActionNode(Bully19, "/Global/1_03_Davis/Offense/Short/Strikes/HeavyAttacks/SwingPunch/SwingPunch_R", "act/anim/1_03_Davis.act")
SoundPlayScriptedSpeechEvent(Bully19, "FIGHT", 0, "large")
Wait(1000)
PedSetActionNode(Bully19, "/Global/BOSS_Russell/Offense/Short", "Act/anim/BOSS_Russell.act")
SoundPlayScriptedSpeechEvent(Bully19, "FIGHT", 0, "large")
Wait(2000)
PedSetActionNode(Bully19, "/Global/BOSS_Russell/Offense/Medium/Strikes/HeavyAttacks", "Act/anim/BOSS_Russell.act")
SoundPlayScriptedSpeechEvent(Bully19, "FIGHT", 0, "large")
Wait(2000)
PedSetActionNode(Bully19, "/Global/P_Grappler_A/Offense/Medium/Strikes/Kick/TauntKick", "act/anim/P_Grappler_A.act")
SoundPlayScriptedSpeechEvent(Bully19, "FIGHT", 0, "large")
PlayerSetControl(0)
Wait(2000)
PedSetActionNode(Bully19, "/Global/P_Bif/Offense/Special/HeavyAttacks", "act/anim/P_Bif.act" )
SoundPlayScriptedSpeechEvent(Bully19, "FIGHT", 0, "large")
PlayerSetControl(1)
Wait(2000)
PedSetActionNode(Bully19, "/Global/J_Melee_A/Offense/Short/Strikes/LightAttacks/RightHand/LeftHand", "act/anim/J_Melee_A.act" )
SoundPlayScriptedSpeechEvent(Bully19, "FIGHT", 0, "large")
Wait(1000)
PedSetActionNode(Bully19, "/Global/P_Bif/Offense/Short/Strikes/LightAttacks/JAB/Cross", "Act/anim/P_Bif.act")
SoundPlayScriptedSpeechEvent(Bully19, "FIGHT", 0, "large")
Wait(1000)
PedSetActionNode(Bully19, "/Global/J_Grappler_A/Offense/Medium/Strikes/HeavyAttacks/RightPunch/Axehandle", "act/anim/J_Grappler_A.act" )
SoundPlayScriptedSpeechEvent(Bully19, "FIGHT", 0, "large")
Wait(1000)
PedSetActionNode(Bully19, "/Global/J_Mascot/Offense/Medium/Strikes/LightAttacks/WindMill_R/WindMill_L/HeavyAttacks/SwingPunch_R", "act/anim/J_Mascot.act")
SoundPlayScriptedSpeechEvent(Bully19, "FIGHT", 0, "large")
Wait(1000)
end

F_DavisKnockedOut = function()
   if PedIsDead(Bully19) and l_2_9 == false then
   l_2_9 = true
   PedDelete(Bully19)
  SoundPlayInteractiveStream("MS_RunningLow02.rsm", 0.5)
  SoundSetMidIntensityStream("MS_RunningMid.rsm", 0.60000002384186)
  SoundSetHighIntensityStream("MS_SearchingHigh.rsm", 0.60000002384186)
   
     
      PedRecruitAlly(gPlayer, ParkerWeen)
TextPrintString("Errand Completed!", 4, 1)

   
end

   if PedIsDead(Bully19) and l_2_9 == false then
   l_2_9 = true
   PedDelete(Bully19)
 
  SoundPlayInteractiveStream("MS_RunningLow02.rsm", 0.5)
  SoundSetMidIntensityStream("MS_RunningMid.rsm", 0.60000002384186)
  SoundSetHighIntensityStream("MS_SearchingHigh.rsm", 0.60000002384186)
 
        PedRecruitAlly(gPlayer, ParkerWeen)
TextPrintString("Errand Completed", 4, 1)

end
end

main2 = function()
repeat
F_EthanBossStyle()
Wait(0)
until not PedIsValid(Bully12) or PedIsDead(Bully12) or PedGetHealth(Bully12) < 1
end

main8 = function()
repeat
F_DavisBossStyle()
Wait(0)
until not PedIsValid(Bully19) or PedIsDead(Bully19) or PedGetHealth(Bully19) < 1
end

main = function()
repeat
F_EthanKnockedOut()
F_DavisKnockedOut()
F_PlayerFail()
F_DavisKnockedOut()
Wait(0)
until not Alive
end

http://www.mediafire.com/download/lt0l0k8s7ycmw5i/ide.img
http://www.mediafire.com/download/gy4aszupxxp50nd/pedstats.dat

19
Bully Modding Archives / Some Updates
« on: September 27, 2015, 05:41:45 PM »
Well I know I haven't done crap in a while but know that I am still around being a nucense and annoying other bb members with my trolling and epic dialouge
 :cool:  :blank:

To be serious I still am doing my list of mods.
Zombie Mod - 23% Still doing a lot of field test
with AI and path scripting. I plan to release another beta video soon enough again.

Petes Missing - Draw Back - 50% Need to recreate cutscenes and dialouge then add chapter skips and cameras.

King Of The Hill Mod - 0% Not done need to get started.

DBZ Tournament Mod - 40% Field test being done I am having trouble with tables and menus. I am doing clear move zoning which is when health gets to a certain point and the AI does a clear move.

Free Roam Boss Mod - 80% Just need to add Edgar and the Mascots boss fight to free roam and done. Its a easy mod and anyone can do it but I like it though and im sure your enjoy my random foolishness I added to the boss fights.  :biggrin:  :cool:

Criminal Mod - Is restarted because I ended up writing 6000 lines of code then releasing I have menus. :blank: So what it will feature is free roam criminals that do scripted crimes at any given moment for any AI set to the script. What happens is that a display is then telling you a certain item is stolen and that character needs help they'll tell you where they went and blsh vlah(Phone Auto Yype) :neen: Anyway your rewarded.

That's all hopefully can release this winter for all to enjoy. The Zombie mod is also four players I might try and use Player1 for four controllers may work may not have no clue. Their will be a Zombie mini game like COD with power ups and I created a way to make perk a colas and power ups with PickupcreateXYZ.

20
Modding Questions/Help Archives / Menu and Tables dicussion
« on: September 26, 2015, 06:39:17 AM »
I am about to get a new pc and my original hard drives files are corrupted I don't know how this happened though but I think I downloaded to many games,movies,music etc and exceeded my 500GB'S. I am moving on to 2TB's now onw external drive and one built in typical drive but enough about my hunk of junk.  :ffvsielj3:

I just wanted a step by step tutoriala on menu's and how to do table's I had files explaining this but their lost to corruption. I never really got the whole Table or Menu thing anyway seems like my brain is always like this.



I need a complete step by step so of course DabossPonyBoy get your lazy ass here n help wit dis shiat and you to UnknownFaggit IE mean UnknownBrilliance  :D. Just joking but please help  :blank:

21
Video Stories / New Bully Machinima
« on: September 01, 2015, 11:46:51 PM »
Some new Machinima's to watch which are actually pretty good. I enjoy watching Machinima's and may gwt to making my own when i'm not working. I haven't been  working on anything recently and may make some holiday machinima's and release some custom missions.

Bully:SE Machinima Breaking Bullworth.

Bully SE machinima - The new kid - Episode 1

https://www.youtube.com/watch?v=Go6hl9WkkaQ

Bully SE Machinima: Johnny's Revenge


22
This is extremely outdated and I have to rescript it again but this is the source for my complete mission I know it's all scrambled and nonsense but I was kind of tired, up three o clock in the mornin I am laughing out loud at your hysterical statement!


Code: [Select]
MissionSetup = function() 
  AreaTransitionXYZ(0, 270, -110, 6.4000000953674)
  Wait(200)
  AreaTransitionXYZ(14,-502.2488, 318.8277, 31.4111)
  ChapterSet(2)
  PlayerSetHealth(4000)
 
  local l_3_0 = 271.0682
  local l_3_1 = -104.7788
  local l_3_2 = 6.2910
  local l_4_0 = 271.0682
  local l_4_1 = -104.7788
  local l_4_2 = 6.2910
  local l_5_0 = 211.1745
  local l_5_1 = -74.4785
  local l_5_2 = 8.6105
 
  SoundDisableSpeech_ActionTree()
  AreaOverridePopulation(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)
  AreaClearAllPeds()
  DisablePunishmentSystem(true)
  AreaDisableAllPatrolPaths()
  SoundPlayInteractiveStream("MS_RunningLow.rsm", MUSIC_DEFAULT_VOLUME)
  SoundSetMidIntensityStream("MS_RunningMid.rsm", MUSIC_DEFAULT_VOLUME)
  SoundSetHighIntensityStream("MS_SearchingHigh.rsm", MUSIC_DEFAULT_VOLUME)
  DisablePunishmentSystem(false)
  AreaSetDoorLocked(TRIGGER._DT_TPOOR_TENWINDOW, false)
  PedSetUniqueModelStatus(146,-1)
  PedSetUniqueModelStatus(145,-1)
  PedSetUniqueModelStatus(85,-1)
  PedSetUniqueModelStatus(99,-1)
  PedSetUniqueModelStatus(147,-1)
  PedSetUniqueModelStatus(102,-1)
  PedSetUniqueModelStatus(134,-1)
  PedSetUniqueModelStatus(39,-1)
  PedSetUniqueModelStatus(75,-1)
 
  Wait(3000)
  TextPrintString("Meet Angie outside, she has some urgent news for you.", 3, 1)
 
  Angie = PedCreateXYZ(39, l_3_0, l_3_1, l_3_2)
 
  Blip600 = BlipAddXYZ(l_4_0, l_4_1, l_4_2,1)
 
  SoundRemoveAllQueuedSpeech(Angie, true)
 
  LoadAnimationGroup("1_02BYourSchool")
  LoadAnimationGroup("1_02_MeetWithGary")
  LoadAnimationGroup("1_03The Setup")
  LoadAnimationGroup("1_04TheSlingshot")
  LoadAnimationGroup("1_06ALittleHelp")
  LoadAnimationGroup("1_07_SaveBucky")
  LoadAnimationGroup("1_07_Sk8Board")
  LoadAnimationGroup("1_08ThatBitch")
  LoadAnimationGroup("1_08_MandPuke")
  LoadAnimationGroup("1_09_Candidate")
  LoadAnimationGroup("1_10Betrayal")
  LoadAnimationGroup("1_11B_HeBigPrank")
  LoadAnimationGroup("1_G1_TheDiary")
  LoadAnimationGroup("1_S01HatVsGall")
  LoadAnimationGroup("2_01LastMinuteShop")
  LoadAnimationGroup("2_02ComicKlepto")
  LoadAnimationGroup("2_05TadsHouse")
  LoadAnimationGroup("2_06MovieTickets")
  LoadAnimationGroup("2_07BeachRumble")
  LoadAnimationGroup("2_08WeedKiller")
  LoadAnimationGroup("2_4RichAreaRace")
  LoadAnimationGroup("2_G2CarnivalDate")
  LoadAnimationGroup("2_G2_GiftExchange")
  LoadAnimationGroup("2_R03PaperRoute")
  LoadAnimationGroup("2_S02CharSheets")
  LoadAnimationGroup("2_S04CharSheets")
  LoadAnimationGroup("2_S05_CooksCrush")
  LoadAnimationGroup("2_S06PantyRaid")
  LoadAnimationGroup("3_01JealousJohnny")
  LoadAnimationGroup("3_04WrongPtTown")
  LoadAnimationGroup("3_05TheTenements")
  LoadAnimationGroup("3_BFightJohnnyV")
  LoadAnimationGroup("3_G3")
  LoadAnimationGroup("3_R05ChemicalDeliv")
  LoadAnimationGroup("3_R08RaceLeague")
  LoadAnimationGroup("3_S03CheatinTime")
  LoadAnimationGroup("4_01Paparazzi")
  LoadAnimationGroup("4_04_FunhouseFun")
  LoadAnimationGroup("4_06BigGame")
  LoadAnimationGroup("4_B2_JockBossBattle")
  LoadAnimationGroup("5_01Grp")
  LoadAnimationGroup("5_01Rats")
  LoadAnimationGroup("5_02PrVandalized")
  LoadAnimationGroup("5_05Zoe")
  LoadAnimationGroup("5_09MakingAMark")
  LoadAnimationGroup("6B_PARA")
  LoadAnimationGroup("AGymLght")
  LoadAnimationGroup("Ambient")
  LoadAnimationGroup("Ambient2")
  LoadAnimationGroup("Ambient3")
  LoadAnimationGroup("ANIBBALL")
  LoadAnimationGroup("AniBroom")
  LoadAnimationGroup("AniDice")
  LoadAnimationGroup("AniFooty")
  LoadAnimationGroup("AniGlobe")
  LoadAnimationGroup("AnimSave")
  LoadAnimationGroup("AniPillo")
  LoadAnimationGroup("ARC3D")
  LoadAnimationGroup("Area_Asylum")
  LoadAnimationGroup("Area_Funhouse")
  LoadAnimationGroup("Area_GirlsDorm")
  LoadAnimationGroup("Area_Infirmary")
  LoadAnimationGroup("Area_School")
  LoadAnimationGroup("Area_Tenements")
  LoadAnimationGroup("Armor")
  LoadAnimationGroup("AsyBars")
  LoadAnimationGroup("AsyDoorB")
  LoadAnimationGroup("AsyDoors")
  LoadAnimationGroup("AsyGate")
  LoadAnimationGroup("AsyLever")
  LoadAnimationGroup("AsySwtch")
  LoadAnimationGroup("AtcPlank")
  LoadAnimationGroup("Authority")
  LoadAnimationGroup("BANANA")
  LoadAnimationGroup("barelLad")
  LoadAnimationGroup("BarrGate")
  LoadAnimationGroup("BATON")
  LoadAnimationGroup("BBALL_21")
  LoadAnimationGroup("bbgun")
  LoadAnimationGroup("BCatcher")
  LoadAnimationGroup("BdrDoorL")
  LoadAnimationGroup("BeardLady")
  LoadAnimationGroup("Bike")
  LoadAnimationGroup("BikeGar")
  LoadAnimationGroup("BoldRoll")
  LoadAnimationGroup("BoltCutt")
  LoadAnimationGroup("Boxing")
  LoadAnimationGroup("BoxRopes")
  LoadAnimationGroup("BRDoor")
  LoadAnimationGroup("BrkSwtch")
  LoadAnimationGroup("BROCKETL")
  LoadAnimationGroup("BRSwitch")
  LoadAnimationGroup("BusDoors")
  LoadAnimationGroup("Butcher")
  LoadAnimationGroup("BXPBag")
  LoadAnimationGroup("B_Striker")
  LoadAnimationGroup("CarnCurt")
  LoadAnimationGroup("CARNI01")
  LoadAnimationGroup("carnies")
  LoadAnimationGroup("Car_Ham")
  LoadAnimationGroup("Cavalier")
  LoadAnimationGroup("Cheer_Cool1")
  LoadAnimationGroup("Cheer_Cool2")
  LoadAnimationGroup("Cheer_Cool3")
  LoadAnimationGroup("Cheer_Gen1")
  LoadAnimationGroup("Cheer_Gen2")
  LoadAnimationGroup("Cheer_Gen3")
  LoadAnimationGroup("Cheer_Girl1")
  LoadAnimationGroup("Cheer_Girl2")
  LoadAnimationGroup("Cheer_Girl3")
  LoadAnimationGroup("Cheer_Girl4")
  LoadAnimationGroup("Cheer_Nerd1")
  LoadAnimationGroup("Cheer_Nerd2")
  LoadAnimationGroup("Cheer_Nerd3")
  LoadAnimationGroup("Cheer_Posh1")
  LoadAnimationGroup("Cheer_Posh2")
  LoadAnimationGroup("Cheer_Posh3")
  LoadAnimationGroup("Chem_Set")
  LoadAnimationGroup("ChLead_Idle")
  LoadAnimationGroup("CLadderA")
  LoadAnimationGroup("CnGate")
  LoadAnimationGroup("Coaster")
  LoadAnimationGroup("COPBIKE")
  LoadAnimationGroup("Cop_Frisk")
  LoadAnimationGroup("CV_Female")
  LoadAnimationGroup("CV_Male")
  LoadAnimationGroup("C_Wrestling")
  LoadAnimationGroup("DartBrd")
  LoadAnimationGroup("DartCab")
  LoadAnimationGroup("DodgeBall")
  LoadAnimationGroup("DodgeBall2")
  LoadAnimationGroup("DoorStr1")
  LoadAnimationGroup("DO_Edgar")
  LoadAnimationGroup("DO_Grap")
  LoadAnimationGroup("DO_StrikeCombo")
  LoadAnimationGroup("DO_Striker")
  LoadAnimationGroup("DRBrace")
  LoadAnimationGroup("Drumming")
  LoadAnimationGroup("DuffBag")
  LoadAnimationGroup("DunkBttn")
  LoadAnimationGroup("DunkSeat")
  LoadAnimationGroup("Earnest")
  LoadAnimationGroup("EnglishClass")
  LoadAnimationGroup("ErrandCrab")
  LoadAnimationGroup("Errand_BUS")
  LoadAnimationGroup("Errand_IND")
  LoadAnimationGroup("Errand_RIC")
  LoadAnimationGroup("Errand_SCH")
  LoadAnimationGroup("ESCDoorL")
  LoadAnimationGroup("ESCDoorR")
  LoadAnimationGroup("ExtWind")
  LoadAnimationGroup("FDoor")
  LoadAnimationGroup("FDoorB")
  LoadAnimationGroup("FDoorC")
  LoadAnimationGroup("Ferris")
  LoadAnimationGroup("FGhost")
  LoadAnimationGroup("FGoblin")
  LoadAnimationGroup("FlagA")
  LoadAnimationGroup("FLbBook")
  LoadAnimationGroup("FlbLader")
  LoadAnimationGroup("FLbPaint")
  LoadAnimationGroup("FLbTable")
  LoadAnimationGroup("FMCntrl")
  LoadAnimationGroup("FMDoor")
  LoadAnimationGroup("FMTrapDr")
  LoadAnimationGroup("FMTrapSw")
  LoadAnimationGroup("FortTell")
  LoadAnimationGroup("funCart")
  LoadAnimationGroup("funCurtn")
  LoadAnimationGroup("funMiner")
  LoadAnimationGroup("funRocks")
  LoadAnimationGroup("FunTeeth")
  LoadAnimationGroup("FXTestG")
  LoadAnimationGroup("F_Adult")
  LoadAnimationGroup("F_BULLY")
  LoadAnimationGroup("F_Crazy")
  LoadAnimationGroup("F_Douts")
  LoadAnimationGroup("F_Girls")
  LoadAnimationGroup("F_Greas")
  LoadAnimationGroup("F_Jocks")
  LoadAnimationGroup("F_Nerds")
  LoadAnimationGroup("F_OldPeds")
  LoadAnimationGroup("F_Pref")
  LoadAnimationGroup("F_Preps")
  LoadAnimationGroup("GarbCanA")
  LoadAnimationGroup("GatCool")
  LoadAnimationGroup("GEN_SOCIAL")
  LoadAnimationGroup("Gfight")
  LoadAnimationGroup("GhostDrs")
  LoadAnimationGroup("Gift")
  LoadAnimationGroup("Go_Cart")
  LoadAnimationGroup("Grap")
  LoadAnimationGroup("GymHoop")
  LoadAnimationGroup("GymWLad")
  LoadAnimationGroup("G_Grappler")
  LoadAnimationGroup("G_Johnny")
  LoadAnimationGroup("G_Striker")
  LoadAnimationGroup("Halloween")
  LoadAnimationGroup("HallWind")
  LoadAnimationGroup("Hang_Jock")
  LoadAnimationGroup("Hang_Moshing")
  LoadAnimationGroup("Hang_Talking")
  LoadAnimationGroup("Hang_Workout")
  LoadAnimationGroup("Hobos")
  LoadAnimationGroup("Hobo_Cheer")
  LoadAnimationGroup("HSdinger")
  LoadAnimationGroup("HUMIL_4-10_B")
  LoadAnimationGroup("HUMIL_4-10_C")
  LoadAnimationGroup("HUMIL_5-8F_A")
  LoadAnimationGroup("HUMIL_5-8F_B")
  LoadAnimationGroup("HUMIL_5-8V4-10")
  LoadAnimationGroup("HUMIL_5-8V6-1")
  LoadAnimationGroup("HUMIL_5-8VPLY")
  LoadAnimationGroup("HUMIL_5-8_A")
  LoadAnimationGroup("HUMIL_5-8_B")
  LoadAnimationGroup("HUMIL_5-8_C")
  LoadAnimationGroup("HUMIL_6-1V4-10")
  LoadAnimationGroup("HUMIL_6-1V6-1")
  LoadAnimationGroup("HUMIL_6-1VPLY")
  LoadAnimationGroup("HUMIL_6-1_A")
  LoadAnimationGroup("HUMIL_6-1_B")
  LoadAnimationGroup("HUMIL_6-1_C")
  LoadAnimationGroup("HUMIL_6-5V4-10")
  LoadAnimationGroup("HUMIL_6-5V6-1")
  LoadAnimationGroup("HUMIL_6-5VPLY")
  LoadAnimationGroup("HUMIL_6-5_A")
  LoadAnimationGroup("HUMIL_6-5_B")
  LoadAnimationGroup("HUMIL_6-5_C")
  LoadAnimationGroup("IDLE_AUTH_A")
  LoadAnimationGroup("IDLE_AUTH_B")
  LoadAnimationGroup("IDLE_AUTH_C")
  LoadAnimationGroup("IDLE_AUTH_D")
  LoadAnimationGroup("IDLE_BULLY_A")
  LoadAnimationGroup("IDLE_BULLY_B")
  LoadAnimationGroup("IDLE_BULLY_C")
  LoadAnimationGroup("IDLE_BULLY_D")
  LoadAnimationGroup("IDLE_CIVF_A")
  LoadAnimationGroup("IDLE_CIVF_B")
  LoadAnimationGroup("IDLE_CIVF_C")
  LoadAnimationGroup("IDLE_CIVM_A")
  LoadAnimationGroup("IDLE_CIVM_B")
  LoadAnimationGroup("IDLE_CIVM_C")
  LoadAnimationGroup("IDLE_DOUT_A")
  LoadAnimationGroup("IDLE_DOUT_B")
  LoadAnimationGroup("IDLE_DOUT_C")
  LoadAnimationGroup("IDLE_DOUT_D")
  LoadAnimationGroup("IDLE_FATG_A")
  LoadAnimationGroup("IDLE_FATG_B")
  LoadAnimationGroup("IDLE_FATG_C")
  LoadAnimationGroup("IDLE_FAT_A")
  LoadAnimationGroup("IDLE_FAT_B")
  LoadAnimationGroup("IDLE_FAT_C")
  LoadAnimationGroup("IDLE_GREAS_A")
  LoadAnimationGroup("IDLE_GREAS_B")
  LoadAnimationGroup("IDLE_GREAS_C")
  LoadAnimationGroup("IDLE_GREAS_D")
  LoadAnimationGroup("IDLE_GSF_A")
  LoadAnimationGroup("IDLE_GSF_B")
  LoadAnimationGroup("IDLE_GSF_C")
  LoadAnimationGroup("IDLE_GSM_A")
  LoadAnimationGroup("IDLE_GSM_B")
  LoadAnimationGroup("IDLE_GSM_C")
  LoadAnimationGroup("IDLE_JOCK_A")
  LoadAnimationGroup("IDLE_JOCK_B")
  LoadAnimationGroup("IDLE_JOCK_C")
  LoadAnimationGroup("IDLE_JOCK_D")
  LoadAnimationGroup("IDLE_NERD_A")
  LoadAnimationGroup("IDLE_NERD_B")
  LoadAnimationGroup("IDLE_NERD_C")
  LoadAnimationGroup("IDLE_NERD_D")
  LoadAnimationGroup("IDLE_NGIRL")
  LoadAnimationGroup("IDLE_PREP_A")
  LoadAnimationGroup("IDLE_PREP_B")
  LoadAnimationGroup("IDLE_PREP_C")
  LoadAnimationGroup("IDLE_PREP_D")
  LoadAnimationGroup("IDLE_SEXY_A")
  LoadAnimationGroup("IDLE_SEXY_B")
  LoadAnimationGroup("IDLE_SEXY_C")
  LoadAnimationGroup("INDgateC")
  LoadAnimationGroup("JPhoto")
  LoadAnimationGroup("JunkCarA")
  LoadAnimationGroup("JV_Asylum")
  LoadAnimationGroup("J_Damon")
  LoadAnimationGroup("J_Grappler")
  LoadAnimationGroup("J_Melee")
  LoadAnimationGroup("J_Ranged")
  LoadAnimationGroup("J_Striker")
  LoadAnimationGroup("KISS1")
  LoadAnimationGroup("KISS2")
  LoadAnimationGroup("KISS3")
  LoadAnimationGroup("KISS4")
  LoadAnimationGroup("KissAdult")
  LoadAnimationGroup("KISSB")
  LoadAnimationGroup("KISSF")
  LoadAnimationGroup("LckrGymA")
  LoadAnimationGroup("LE_Officer")
  LoadAnimationGroup("LE_Orderly")
  LoadAnimationGroup("Mermaid")
  LoadAnimationGroup("MG_Craps")
  LoadAnimationGroup("MINIBIKE")
  LoadAnimationGroup("MINICHEM")
  LoadAnimationGroup("MINIDARTS")
  LoadAnimationGroup("MINIDunk")
  LoadAnimationGroup("MINIGraf")
  LoadAnimationGroup("MINIHACKY")
  LoadAnimationGroup("MINI_Arm")
  LoadAnimationGroup("MINI_BallToss")
  LoadAnimationGroup("MINI_Lock")
  LoadAnimationGroup("MINI_React")
  LoadAnimationGroup("Miracle")
  LoadAnimationGroup("MOWER")
  LoadAnimationGroup("MPostA")
  LoadAnimationGroup("N2B Dishonerable")
  LoadAnimationGroup("Nemesis")
  LoadAnimationGroup("nerdBar1")
  LoadAnimationGroup("NIS_0_00A")
  LoadAnimationGroup("NIS_1_02")
  LoadAnimationGroup("NIS_1_02B")
  LoadAnimationGroup("NIS_1_03")
  LoadAnimationGroup("NIS_1_04")
  LoadAnimationGroup("NIS_1_05")
  LoadAnimationGroup("NIS_1_07")
  LoadAnimationGroup("NIS_1_08_1")
  LoadAnimationGroup("NIS_1_09")
  LoadAnimationGroup("NIS_1_11")
  LoadAnimationGroup("NIS_2_01")
  LoadAnimationGroup("NIS_2_03")
  LoadAnimationGroup("NIS_2_04")
  LoadAnimationGroup("NIS_2_06_1")
  LoadAnimationGroup("NIS_2_B")
  LoadAnimationGroup("NIS_2_S04")
  LoadAnimationGroup("NIS_3_01")
  LoadAnimationGroup("NIS_3_02")
  LoadAnimationGroup("NIS_3_04")
  LoadAnimationGroup("NIS_3_05")
  LoadAnimationGroup("NIS_3_06")
  LoadAnimationGroup("NIS_3_08")
  LoadAnimationGroup("NIS_3_11")
  LoadAnimationGroup("NIS_3_B")
  LoadAnimationGroup("NIS_3_G3")
  LoadAnimationGroup("NIS_3_R09_D")
  LoadAnimationGroup("NIS_3_R09_G")
  LoadAnimationGroup("NIS_3_R09_J")
  LoadAnimationGroup("NIS_3_R09_N")
  LoadAnimationGroup("NIS_3_R09_P")
  LoadAnimationGroup("NIS_3_S03")
  LoadAnimationGroup("NIS_3_S03_B")
  LoadAnimationGroup("NIS_3_S11")
  LoadAnimationGroup("NIS_4_01")
  LoadAnimationGroup("NIS_4_05")
  LoadAnimationGroup("NIS_4_06")
  LoadAnimationGroup("NIS_4_B2")
  LoadAnimationGroup("NIS_5_01")
  LoadAnimationGroup("NIS_5_02")
  LoadAnimationGroup("NIS_5_03")
  LoadAnimationGroup("NIS_5_04")
  LoadAnimationGroup("NIS_5_05")
  LoadAnimationGroup("NIS_5_07")
  LoadAnimationGroup("NIS_5_G5")
  LoadAnimationGroup("NIS_6_02")
  LoadAnimationGroup("NIS_6_03")
  LoadAnimationGroup("NLock01A")
  LoadAnimationGroup("NPC_Adult")
  LoadAnimationGroup("NPC_AggroTaunt")
  LoadAnimationGroup("NPC_Chat_1")
  LoadAnimationGroup("NPC_Chat_2")
  LoadAnimationGroup("NPC_Chat_F")
  LoadAnimationGroup("NPC_Cheering")
  LoadAnimationGroup("NPC_Love")
  LoadAnimationGroup("NPC_Mascot")
  LoadAnimationGroup("NPC_NeedsResolving")
  LoadAnimationGroup("NPC_Principal")
  LoadAnimationGroup("NPC_Shopping")
  LoadAnimationGroup("NPC_Spectator")
  LoadAnimationGroup("N_Ranged")
  LoadAnimationGroup("N_Striker")
  LoadAnimationGroup("N_Striker_A")
  LoadAnimationGroup("N_Striker_B")
  LoadAnimationGroup("ObsDoor")
  LoadAnimationGroup("OBSMotor")
  LoadAnimationGroup("ObsPtf_1")
  LoadAnimationGroup("ObsPtf_2")
  LoadAnimationGroup("Pageant")
  LoadAnimationGroup("PedCoaster")
  LoadAnimationGroup("Player_Tired")
  LoadAnimationGroup("Player_VTired")
  LoadAnimationGroup("POI_Booktease")
  LoadAnimationGroup("POI_Cafeteria")
  LoadAnimationGroup("POI_ChLead")
  LoadAnimationGroup("POI_Gen")
  LoadAnimationGroup("POI_Smoking")
  LoadAnimationGroup("POI_Telloff")
  LoadAnimationGroup("POI_WarmHands")
  LoadAnimationGroup("POI_Worker")
  LoadAnimationGroup("PortaPoo")
  LoadAnimationGroup("PrepDoor")
  LoadAnimationGroup("PunchBag")
  LoadAnimationGroup("pxHoop")
  LoadAnimationGroup("pxLad10M")
  LoadAnimationGroup("Px_Arcade")
  LoadAnimationGroup("Px_Bed")
  LoadAnimationGroup("Px_Fountain")
  LoadAnimationGroup("Px_Garb")
  LoadAnimationGroup("Px_Gen")
  LoadAnimationGroup("Px_Ladr")
  LoadAnimationGroup("Px_Rail")
  LoadAnimationGroup("Px_RedButton")
  LoadAnimationGroup("Px_Sink")
  LoadAnimationGroup("Px_Tlet")
  LoadAnimationGroup("Px_Tree")
  LoadAnimationGroup("P_Grappler")
  LoadAnimationGroup("P_Striker")
  LoadAnimationGroup("QPed")
  LoadAnimationGroup("RAT_PED")
  LoadAnimationGroup("Reeper")
  LoadAnimationGroup("RMailbox")
  LoadAnimationGroup("Russell")
  LoadAnimationGroup("Russell_PBomb")
  LoadAnimationGroup("Santa_Lap")
  LoadAnimationGroup("SAUTH_A")
  LoadAnimationGroup("SAUTH_F")
  LoadAnimationGroup("SAUTH_U")
  LoadAnimationGroup("SAUTH_X")
  LoadAnimationGroup("SBarels1")
  LoadAnimationGroup("SBULL_A")
  LoadAnimationGroup("SBULL_F")
  LoadAnimationGroup("SBULL_S")
  LoadAnimationGroup("SBULL_U")
  LoadAnimationGroup("SBULL_X")
  LoadAnimationGroup("Scaffold")
  LoadAnimationGroup("SCbanpil")
  LoadAnimationGroup("SCBell")
  LoadAnimationGroup("SCDoor")
  LoadAnimationGroup("ScGate")
  LoadAnimationGroup("SCgrdoor")
  LoadAnimationGroup("scObsDr")
  LoadAnimationGroup("ScoolBus")
  LoadAnimationGroup("SCOOTER")
  LoadAnimationGroup("SecDoorL")
  LoadAnimationGroup("SecDoorR")
  LoadAnimationGroup("Sedan")
  LoadAnimationGroup("SFAT_A")
  LoadAnimationGroup("SFAT_F")
  LoadAnimationGroup("SFAT_I")
  LoadAnimationGroup("SFAT_S")
  LoadAnimationGroup("SGEN_A")
  LoadAnimationGroup("SGEN_F")
  LoadAnimationGroup("SGEN_I")
  LoadAnimationGroup("SGEN_S")
  LoadAnimationGroup("SGIRLS")
  LoadAnimationGroup("SGIRL_A")
  LoadAnimationGroup("SGIRL_D")
  LoadAnimationGroup("SGIRL_F")
  LoadAnimationGroup("SGIRL_S")
  LoadAnimationGroup("SGTargB")
  LoadAnimationGroup("ShopBike")
  LoadAnimationGroup("SHUMIL_01")
  LoadAnimationGroup("SHWR")
  LoadAnimationGroup("SIAMESE")
  LoadAnimationGroup("Siamese2")
  LoadAnimationGroup("Sitting_Boys")
  LoadAnimationGroup("SK8Board")
  LoadAnimationGroup("Skateboard")
  LoadAnimationGroup("SkeltonMan")
  LoadAnimationGroup("Slingsh")
  LoadAnimationGroup("SNERD_A")
  LoadAnimationGroup("SNERD_F")
  LoadAnimationGroup("SNERD_I")
  LoadAnimationGroup("SNERD_S")
  LoadAnimationGroup("SNGIRLS")
  LoadAnimationGroup("SNGIRL_D")
  LoadAnimationGroup("SNGIRL_F")
  LoadAnimationGroup("SnowBlob")
  LoadAnimationGroup("SnowMND")
  LoadAnimationGroup("SnowWall")
  LoadAnimationGroup("SOLD_A")
  LoadAnimationGroup("SOLD_F")
  LoadAnimationGroup("SOLD_I")
  LoadAnimationGroup("SOLD_S")
  LoadAnimationGroup("SPLAY_A")
  LoadAnimationGroup("SPLAY_B")
  LoadAnimationGroup("SprayCan")
  LoadAnimationGroup("SpudG")
  LoadAnimationGroup("Squid")
  LoadAnimationGroup("StalDoor")
  LoadAnimationGroup("Straf_Dout")
  LoadAnimationGroup("Straf_Fat")
  LoadAnimationGroup("Straf_Female")
  LoadAnimationGroup("Straf_Male")
  LoadAnimationGroup("Straf_Nerd")
  LoadAnimationGroup("Straf_Prep")
  LoadAnimationGroup("Straf_Savage")
  LoadAnimationGroup("Straf_Wrest")
  LoadAnimationGroup("SUV")
  LoadAnimationGroup("TadGates")
  LoadAnimationGroup("TadShud")
  LoadAnimationGroup("TE_Female")
  LoadAnimationGroup("TGKFlag")
  LoadAnimationGroup("ToolBox")
  LoadAnimationGroup("TrackSW")
  LoadAnimationGroup("TreeFall")
  LoadAnimationGroup("Truck")
  LoadAnimationGroup("Try_Clothes")
  LoadAnimationGroup("TSGate")
  LoadAnimationGroup("UBO")
  LoadAnimationGroup("Umbrella")
  LoadAnimationGroup("VDMilo")
  LoadAnimationGroup("VFlytrap")
  LoadAnimationGroup("V_Bike")
  LoadAnimationGroup("V_Bike_Races")
  LoadAnimationGroup("V_COPBIKE")
  LoadAnimationGroup("V_SCOOTER")
  LoadAnimationGroup("WBalloon")
  LoadAnimationGroup("WeaponUnlock")
  LoadAnimationGroup("Ween_Fem")
  LoadAnimationGroup("WHCrane")
  LoadAnimationGroup("WheelBrl")
  LoadAnimationGroup("WPCannon")
  LoadAnimationGroup("WPSheldB")
  LoadAnimationGroup("WPShield")
  LoadAnimationGroup("WPTurret")
  LoadAnimationGroup("W_BBall")
  LoadAnimationGroup("W_BBallBat")
  LoadAnimationGroup("W_BRocket")
  LoadAnimationGroup("W_Camera")
  LoadAnimationGroup("W_CherryBomb")
  LoadAnimationGroup("W_CHShield")
  LoadAnimationGroup("W_FlashLight")
  LoadAnimationGroup("W_Fountain")
  LoadAnimationGroup("W_Itchpowder")
  LoadAnimationGroup("W_JBroom")
  LoadAnimationGroup("W_Lid")
  LoadAnimationGroup("W_PooBag")
  LoadAnimationGroup("W_PRANK")
  LoadAnimationGroup("W_Slingshot")
  LoadAnimationGroup("W_Snowball")
  LoadAnimationGroup("W_snowshwl")
  LoadAnimationGroup("W_SprayCan")
  LoadAnimationGroup("W_SpudGun")
  LoadAnimationGroup("W_Stick")
  LoadAnimationGroup("W_Thrown")
  LoadAnimationGroup("W_wtrpipe")
  LoadAnimationGroup("x_cas1")
  LoadAnimationGroup("x_cas2")
  LoadAnimationGroup("x_cas3")
  LoadAnimationGroup("x_ccane")
  LoadAnimationGroup("X_Chair")
  LoadAnimationGroup("x_cndl")
  LoadAnimationGroup("x_sleigh")
  LoadAnimationGroup("x_tedy")
  LoadActionTree("Act/Conv/3_05.act")
  LoadActionTree("Act/AI/AI_Norton.act")
  LoadActionTree("Act/Anim/3_05_Norton.act")
  LoadActionTree("Act/Conv/1_G1.act")
  LoadActionTree("Act/Anim/DO_Edgar.act")
  LoadActionTree("Act/AI/AI_EDGAR_5_B.act")
  LoadActionTree("Act/Conv/5_B.act")
 
  ImportScript("CustomMission.lua")
 
end

function PedsPrepareConversation(ped1,ped2,distance,walkSpeed)
  PlayerSetPunishmentPoints(0)
  if PedGetWeapon(gPlayer) == 437 then
    PedSetWeapon(gPlayer,-1)
  end
  if PedIsInAnyVehicle(gPlayer) then
    PedWarpOutOfCar(gPlayer)
  end
  PedStop(ped2)
  local x,y,z = PedGetPosXYZ(ped2)
  PedMoveToXYZ(ped1,walkSpeed,x,y,z)
  local r1 = x + distance
  local r2 = y + distance
  local r3 = x - distance
  local r4 = y - distance
  x,y,z = PedGetPosXYZ(ped1)
  PedFaceXYZ(ped2,x,y,z)
  repeat
 Wait(0)
  until PedInRectangle(ped1,r1,r2,r3,r4)
  PedStop(ped1)
  x,y,z = PedGetPosXYZ(ped2)
  PedFaceXYZ(ped1,x,y,z)
  x,y,z = PedGetPosXYZ(ped1)
  PedFaceXYZ(ped2,x,y,z)
end

MissionCleanup = function()
CameraSetWidescreen(true)
Wait(500)
CameraFade(700, 0)
PlayerDetachFromVehicle(T_P_V[7].Vehicle)
--AreaClearAllVehicles
--deletepeds

AreaTransitionXYZ(14, -501.4, 316.11, 31.5)
Wait(500)
CameraAllowChange(true)
SoundSetAudioFocusPlayer()
CameraReturnToPlayer()
CameraReset()
CameraSetWidescreen(false)

--R_C_M set to value based on outcome of mission

if R_C_M == 1 then
   --SoundPlayInteractiveStreamLocked("MS_BikeVictory.rsm", 0.8) 
   --Wait(5000)
   SoundPlayMissionEndMusic(true, 8)   
   MissionSucceed(true, false, false)
   Wait(2000)
end


if R_C_M == 2 then
   --SoundPlayInteractiveStreamLocked("MS_BikeFailure.rsm", 0.8)
   --Wait(5000) 
   SoundPlayMissionEndMusic(false, 8)--8?
   MissionFail(false, true, "RACING_L_NOBIKE")
  PedClearObjectives(Bully19)
  PedClearObjectives(Bully01)
  PedClearObjectives(Bully02)
  PedClearObjectives(Bully03)
  PedClearObjectives(Bully04)
  PedClearObjectives(Bully05)
  PedClearObjectives(Bully06)
  PedClearObjectives(Bully07)
  PedClearObjectives(Bully08)
  PedClearObjectives(Bully09)
  PedClearObjectives(Bully10)
  PedClearObjectives(Bully11)
  PedClearObjectives(Bully13)
  PedClearObjectives(Bully12)
  PedClearObjectives(Bully14)
  PedClearObjectives(Bully17)
  PedClearObjectives(Bully23)
 
  PedDelete(Bully19)
  PedDelete(Bully01)
  PedDelete(Bully02)
  PedDelete(Bully03)
  PedDelete(Bully04)
  PedDelete(Bully05)
  PedDelete(Bully06)
  PedDelete(Bully07)
  PedDelete(Bully08)
  PedDelete(Bully09)
  PedDelete(Bully10)
  PedDelete(Bully11)
  PedDelete(Bully13)
  PedDelete(Bully12)
  PedDelete(Bully14)
  PedDelete(Bully17)
  PedDelete(Bully23)
   --first is for fade. true fade, false don't fade.
   --second is whether to display "You Failed" and the message if message
   --third is what message to display, if message.
end
end

F_FirstBulliesSpawn = function()
  local x,y = 271,-108
  local r1 = x + 3.5
  local r2 = y + 3.5
  local r3 = x - 3.5
  local r4 = y - 3.5
  repeat
    Wait(0)
  until PedInRectangle(gPlayer,r1,r2,r3,r4)
 
  BlipRemove(Blip600)
 
  SoundPlayInteractiveStream("MS_RunningLow02.rsm", 0.5)
  SoundSetMidIntensityStream("MS_RunningMid.rsm", 0.60000002384186)
  SoundSetHighIntensityStream("MS_SearchingHigh.rsm", 0.60000002384186)
 
  PedSetActionNode(Angie, "/Global/1_02B/Crying/CryLoop", "Act/Conv/1_02B.act")
 
  PedSetStationary(Angie,true)
  PedSetInvulnerable(Angie,true)
  PlayerSetControl(0)
  CameraSetFOV(65)
  Wait(2000)
  CameraSetFOV(40)
  CameraSetWidescreen(true)
  PedsPrepareConversation(gPlayer,Angie,1,0)
 
  SoundRemoveAllQueuedSpeech(Angie, true)
  Wait(2000)
  PedSetActionNode(Angie, "/Global/6_02/FactionLeaderNIS/Preps/Chad01","Act/Conv/6_02.act")
  TextPrintString("Angie: Something terrible has happened to Pete.",3,2)
  SoundRemoveAllQueuedSpeech(Angie, true)
  Wait(5000)
  PedSetActionNode(gPlayer, "/Global/6_02/FactionLeaderNIS/Preps/Chad01","Act/Conv/6_02.act")
  TextPrintString("Jimmy: What is it Angie what happened?",3,2)
  SoundRemoveAllQueuedSpeech(Angie, true)
  Wait(5000)
  PedSetActionNode(Angie, "/Global/6_02/FactionLeaderNIS/Preps/Chad01","Act/Conv/6_02.act")
  TextPrintString("Angie: Pete was kidnapped by the bullies you have to rescue him!",3,2)
  SoundRemoveAllQueuedSpeech(Angie, true)
  Wait(5000)
  PedSetActionNode(gPlayer, "/Global/6_02/FactionLeaderNIS/Preps/Chad01","Act/Conv/6_02.act")
  TextPrintString("Jimmy: Ah man thanks for telling me Angie, who did you see take him?",3,2)
  SoundRemoveAllQueuedSpeech(Angie, true)
  Wait(5000)
  PedSetActionNode(Angie, "/Global/6_02/FactionLeaderNIS/Preps/Chad01","Act/Conv/6_02.act")
  TextPrintString("Angie: It was Davis, he was talking about plans of taking over bullworth!",3,2)
  SoundRemoveAllQueuedSpeech(Angie, true)
  Wait(5000)
  PedSetActionNode(gPlayer, "/Global/6_02/FactionLeaderNIS/Preps/Chad01","Act/Conv/6_02.act")
  TextPrintString("Jimmy: Hmm the bullies huh? Well Davis will get what's coming to him!",3,2)
  SoundRemoveAllQueuedSpeech(Angie, true)
  Wait(5000)
  PedSetActionNode(gPlayer, "/Global/6_02/FactionLeaderNIS/Preps/Chad01","Act/Conv/6_02.act")
  TextPrintString("Jimmy: Alright Angie I have to go! See you later.",3,2)
  SoundRemoveAllQueuedSpeech(Angie, true)
  Wait(5000)
  PedSetActionNode(Angie, "/Global/6_02/FactionLeaderNIS/Preps/Chad01","Act/Conv/6_02.act")
  TextPrintString("Angie: Jimmy be careful, Davis wasn't acting like himself!",3,2)
  SoundRemoveAllQueuedSpeech(Angie, true)
  Wait(5000)
  PedSetActionNode(gPlayer, "/Global/6_02/FactionLeaderNIS/Preps/Chad01","Act/Conv/6_02.act")
  TextPrintString("Jimmy: Don't worry Angie, I'll bring Pete back in one peace and deal with Davis!",3,2)
  SoundRemoveAllQueuedSpeech(Angie, true)
  Wait(6000)
  PedSetInfiniteSprint(Angie,true)
  PedSetStationary(Angie,false)
  Wait(500)
  CameraReset()
  CameraReturnToPlayer()
  CameraSetWidescreen(false)
  SoundSetAudioFocusPlayer()
  PlayerSetControl(1)
  PedMoveToXYZ(Angie, 2,  l_5_0, l_5_1, l_5_2)
  SoundPlayInteractiveStream("MS_RunningLow02.rsm", 0.5)
  SoundSetMidIntensityStream("MS_RunningMid.rsm", 0.60000002384186)
  SoundSetHighIntensityStream("MS_SearchingHigh.rsm", 0.60000002384186)
   TextPrintString("Follow The Yellow X On the Map to Find the next Location!", 3, 2)
   Blip1 = BlipAddXYZ(162.0127563,-12.96118069,6.155268669,0)
  AreaOverridePopulation(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)
  AreaClearAllPeds()
  DisablePunishmentSystem(false)
  AreaDisableAllPatrolPaths()
  Bully23 = PedCreateXYZ(146,  -522.3120, -22.0529, 35.7500)
  VehicleCreateXYZ(272, 162.0127563+1,-12.96118069+1,6.155268669+1)
  l_1_7 = false
  l_1_8 = false
  CreateThread("main10")
  F_GetBikeFunction()
end

F_GetBikeFunction = function()
  local x,y = 160,-12
  local r1 = x + 3.5
  local r2 = y + 3.5
  local r3 = x - 3.5
  local r4 = y - 3.5
  repeat
    Wait(0)
  until PedInRectangle(gPlayer,r1,r2,r3,r4)
  PedDelete(Angie)
  Bully01 = PedCreateXYZ(146,-549.7865,-40.1353,31.0114)
  Bully02 = PedCreateXYZ(147,-543.9728394,-19.82579613,31.0236)
  Bully19 = PedCreateXYZ(99,-544.4558,-43.0507,31.0114)
  Bully03 = PedCreateXYZ(102,-541.9270,-22.1205,31.0283)
  Bully04 = PedCreateXYZ(146,-534.1452,-21.4380,31.0114)
  Bully05 = PedCreateXYZ(147,-514.2109,-17.3147,31.0114)
  Bully06 = PedCreateXYZ(145,-518.3836,-17.8297,31.0114)
  Bully07 = PedCreateXYZ(85,-512.6098,-43.0886,31.0114)
  Bully08 = PedCreateXYZ(102,-515.1792,-33.0313,35.4627)
  Bully09 = PedCreateXYZ(146,-514.3107,-35.4768,35.0111)
  Bully10 = PedCreateXYZ(85,-509.9862,-50.1966,35.8609)
  Bully11 = PedCreateXYZ(102,-550.0210,-51.9762,35.7125)
  Bully13 = PedCreateXYZ(146,-548.6695,-43.9495,35.7484)
  Bully12 = PedCreateXYZ(145,-544.7006,-34.1911,35.7359)
  Bully14 = PedCreateXYZ(147,-534.1277,-32.1934,40.4900)
  Bully17 = PedCreateXYZ(147,-512.6098+1, -43.0886+1,31.0114+1)
  BlipRemove(Blip1)
  Blip2 = BlipAddXYZ(589.3970337,-473.0499268,4.455030918,0)
  TextPrintString("Get a bike and go to the Tenements!", 4, 1)
  F_AtTheTenements()
end

F_AtTheTenements = function()
  local x,y = 583,-472
  local r1 = x + 1.5
  local r2 = y + 1.5
  local r3 = x - 1.5
  local r4 = y - 1.5
  repeat
    Wait(0)
  until PedInRectangle(gPlayer,r1,r2,r3,r4)
  Wait(1500)
  PlayerSetControl(0)
  AreaTransitionXYZ(36, -547.0377808, -45.9171524, 31.0114212)
  BlipRemove(Blip2)
  Blip3 = BlipAddXYZ(-544.4558,-43.0507,31.0114,0)
  PlayerSetControl(1)
  SoundPlayInteractiveStream("MS_BikeChaseLow.rsm", 0.5)
  SoundSetMidIntensityStream("MS_BikeChaseMid.rsm", 0.60000002384186)
  SoundSetHighIntensityStream("MS_BikeChaseHigh.rsm", 0.60000002384186)
  F_DavisConfrintation()
end

F_DavisConfrintation = function()
  local x,y = -544,-43
  local r1 = x + 3.5
  local r2 = y + 3.5
  local r3 = x - 3.5
  local r4 = y - 3.5
  repeat
    Wait(0)
  until PedInRectangle(gPlayer,r1,r2,r3,r4)

  BlipRemove(Blip3)
 
 
  SoundRemoveAllQueuedSpeech(Bully19, true)
  SoundRemoveAllQueuedSpeech(Bully23, true)
  SoundRemoveAllQueuedSpeech(Bully13, true)
  SoundRemoveAllQueuedSpeech(Bully12, true)
  SoundRemoveAllQueuedSpeech(Bully01, true)
 
  PedSetStationary(Bully19,true)
  PedSetInvulnerable(Bully19,true)
  CameraSetFOV(65)
  Wait(2000)
  CameraSetFOV(40)
  PlayerSetControl(0)
  CameraSetWidescreen(true)
 
  PedsPrepareConversation(gPlayer,Bully19,1,0)
 
  SoundRemoveAllQueuedSpeech(Bully19, true)
  Wait(2000)
  PedSetActionNode(Bully19, "/Global/6_02/FactionLeaderNIS/Preps/Chad01","Act/Conv/6_02.act")
  TextPrintString("Davis: Well Well Well, If it isn't our friendly neighbourhood hero James! .",3,2)
  SoundRemoveAllQueuedSpeech(Bully19, true)
  Wait(5000)
  PedSetActionNode(gPlayer, "/Global/6_02/FactionLeaderNIS/Preps/Chad01","Act/Conv/6_02.act")
  TextPrintString("Jimmy: Davis!, give Pete back you don't have to do this!",3,2)
  SoundRemoveAllQueuedSpeech(Bully19, true)
  Wait(5000)
  PedSetActionNode(Bully19, "/Global/6_02/FactionLeaderNIS/Preps/Chad01","Act/Conv/6_02.act")
  TextPrintString("Davis: Nah Jimmy I am done listening to you, I'm doing things my way now!",3,2)
  SoundRemoveAllQueuedSpeech(Bully19, true)
  Wait(5000)
  PedSetActionNode(gPlayer, "/Global/6_02/FactionLeaderNIS/Preps/Chad01","Act/Conv/6_02.act")
  TextPrintString("Jimmy: Okay fine will do it your way then Davis!",3,2)
  SoundRemoveAllQueuedSpeech(Bully19, true)
  Wait(5000)
  PedSetActionNode(Bully19, "/Global/6_02/FactionLeaderNIS/Preps/Chad01","Act/Conv/6_02.act")
  TextPrintString("Davis: Fine by me your the worst leader ever Jimmy!",3,2)
  SoundRemoveAllQueuedSpeech(Bully19, true)
  Wait(5000)
  PedSetActionNode(Bully19, "/Global/6_02/FactionLeaderNIS/Preps/Chad01","Act/Conv/6_02.act")
  TextPrintString("Davis: See you at the top leader HAHAHAHA!",3,2)
  SoundRemoveAllQueuedSpeech(Bully19, true)
 
  SoundPlayInteractiveStream("MS_BikeChaseLow.rsm", 0.5)
  SoundSetMidIntensityStream("MS_BikeChaseMid.rsm", 0.60000002384186)
  SoundSetHighIntensityStream("MS_BikeChaseHigh.rsm", 0.60000002384186)
 
  PedClearAllWeapons(gPlayer)
  PedSetWeapon(gPlayer,-1)
 
  PedSetInfiniteSprint(Bully19,true)
  PedAddPedToIgnoreList(Bully19, gPlayer)
  PedSetStationary(Bully19,false)
  DisablePunishmentSystem(true)
 
  PedSetActionTree(Bully19, "/Global/1_03_Davis", "Act/Anim/1_03_Davis.act")
  PedMoveToXYZ(Bully19, 3,  -545.8493042, -31.86120033, 35.73596573)
  SoundRemoveAllQueuedSpeech(Bully19, true)
  SoundStopCurrentSpeechEvent(Bully19)
  SoundRemoveAllQueuedSpeech(Bully19, true)
  SoundRemoveAllQueuedSpeech(Bully19, true)
  Wait(400)
  SoundPlayScriptedSpeechEvent(Bully19, "CALL_FOR_HELP", 0, "large")
 
  AreaClearAllProjectiles()
 
  Wait(600)
  TextPrintString("Find the bullies in each room before going upstairs!", 4, 1)
 
  CameraReset()
  CameraReturnToPlayer()
  CameraSetWidescreen(false)
  SoundSetAudioFocusPlayer()
  PlayerSetControl(1)
 
  PedSetPedToTypeAttitude(Bully04, 13, 0)
  PedSetPedToTypeAttitude(Bully05, 13, 0)
  PedSetPedToTypeAttitude(Bully06, 13, 0)
  PedSetPedToTypeAttitude(Bully07, 13, 0)
  PedSetPedToTypeAttitude(Bully01, 13, 0)
  PedSetPedToTypeAttitude(Bully02, 13, 0)
 
  PedFaceObjectNow(Bully01, gPlayer, 3)
  Wait(500)
  SoundPlayScriptedSpeechEvent(Bully01, "SEE_ALLY_ATTACKED", 0, "large")
 
  PedAttackPlayer(Bully01, gPlayer,1)
  PedSetPedToTypeAttitude(Bully01, 13, 0)
  Wait(600)
 
  Blip4 = BlipAddXYZ(-548.3130,-23.4027,31.0159,0)
  CreateThread("main9")
 
  SoundEnableSpeech_ActionTree()
 
  F_BulliesConfrintation1()
end

function FailureIsImmenseLOL()
if AreaGetVisible() == 0 then
 
  TextPrintString("What're you doing!", 4, 1)
  Wait(2000)
  TextPrintString("You fucking cheater!", 4, 1)
  Wait(2000)
 
  AreaTransitionXYZ(14, -502.2488, 318.8277, 31.4111)
 
  SoundPlayInteractiveStreamLocked("MS_ShowdownAtThePlantHigh.rsm", MUSIC_DEFAULT_VOLUME)
 
  AreaOverridePopulation(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)
  AreaClearAllPeds()
  DisablePunishmentSystem(true)
  AreaDisableAllPatrolPaths()
 
  PedClearObjectives(Bully19)
  PedClearObjectives(Bully01)
  PedClearObjectives(Bully02)
  PedClearObjectives(Bully03)
  PedClearObjectives(Bully04)
  PedClearObjectives(Bully05)
  PedClearObjectives(Bully06)
  PedClearObjectives(Bully07)
  PedClearObjectives(Bully08)
  PedClearObjectives(Bully09)
  PedClearObjectives(Bully10)
  PedClearObjectives(Bully11)
  PedClearObjectives(Bully13)
  PedClearObjectives(Bully12)
  PedClearObjectives(Bully14)
  PedClearObjectives(Bully17)
  PedClearObjectives(Bully23)
 
  PedDelete(Bully19)
  PedDelete(Bully01)
  PedDelete(Bully02)
  PedDelete(Bully03)
  PedDelete(Bully04)
  PedDelete(Bully05)
  PedDelete(Bully06)
  PedDelete(Bully07)
  PedDelete(Bully08)
  PedDelete(Bully09)
  PedDelete(Bully10)
  PedDelete(Bully11)
  PedDelete(Bully13)
  PedDelete(Bully12)
  PedDelete(Bully14)
  PedDelete(Bully17)
  PedDelete(Bully23)
 
  Russell = PedCreateXYZ(75, -502.2488+1, 318.8277+1, 31.4111+1)
  Wait(4000)
  PedAttack(Russell, gPlayer,1)
  PedSetPedToTypeAttitude(Russell, 13, 0)
  Russell2 = PedCreateXYZ(75, -502.2488+1, 318.8277+1, 31.4111+1)
  PedAttack(Russell2, gPlayer,2)
  PedSetPedToTypeAttitude(Russell2, 13, 0)
  Wait(4000)
  Russell3 = PedCreateXYZ(75, -502.2488+1, 318.8277+1, 31.4111+1)
  PedAttack(Russell3, gPlayer,2)
  PedSetPedToTypeAttitude(Russell3, 13, 0)
  Wait(4000)
  Russell4 = PedCreateXYZ(75, -502.2488+1, 318.8277+1, 31.4111+1)
  PedAttack(Russell4, gPlayer,2)
  PedSetPedToTypeAttitude(Russell4, 13, 0)
  Wait(4000)
  Russell5 = PedCreateXYZ(75, -502.2488+1, 318.8277+1, 31.4111+1)
  PedAttack(Russell5, gPlayer,2)
  PedSetPedToTypeAttitude(Russell5, 13, 0)
  Wait(4000)
  Russell6 = PedCreateXYZ(75, -502.2488+1, 318.8277+1, 31.4111+1)
  PedAttack(Russell6, gPlayer,2)
  PedSetPedToTypeAttitude(Russell6, 13, 0)
 
  PedSetHealth(Russell, 6000)
  PedSetHealth(Russell2, 6000)
  PedSetHealth(Russell3, 6000)
  PedSetHealth(Russell4, 6000)
  PedSetHealth(Russell5, 6000)
  PedSetHealth(Russell6, 6000)
 
  gRussellBlip = AddBlipForChar(Russell, 2, 26, 4)
  gRussellBlip = AddBlipForChar(Russell2, 2, 26, 4)
  gRussellBlip = AddBlipForChar(Russell3, 2, 26, 4)
  gRussellBlip = AddBlipForChar(Russell4, 2, 26, 4)
  gRussellBlip = AddBlipForChar(Russell5, 2, 26, 4)
  gRussellBlip = AddBlipForChar(Russell6, 2, 26, 4)
 
  PedShowHealthBar(Russell, true, "N_Russell", true)
  bHealthBarShown = true
 
  PlayerSetHealth(30)
  PlayerSetControl(0)
  Wait(2000)

  MissionFail(false, true, "RACING_L_NOBIKE")
  SoundPlayMissionEndMusic(false, 8)
  TextClear()
 
  CameraReset()
  CameraReturnToPlayer()
  CameraSetWidescreen(false)
  SoundSetAudioFocusPlayer()
  SetFactionRespect(11, 20)
 
    PlayerSetControl(1)
  end
end

F_BulliesConfrintation1 = function()
  local x,y = -548,-23
  local r1 = x + 3.5
  local r2 = y + 3.5
  local r3 = x - 3.5
  local r4 = y - 3.5
  repeat
    Wait(0)
  until PedInRectangle(gPlayer,r1,r2,r3,r4)
 
  PedClearAllWeapons(gPlayer)
  PedSetWeapon(gPlayer,-1)
 
  BlipRemove(Blip4)
 
  PedSetHealth(Bully02, 150)
  PedSetHealth(Bully03, 160)
 
  PedSetActionNode(Bully02, "/Global/Ambient/Reactions/HumiliationReact/Laughing/Guy_Laugh/Laugh01","Act/Anim/Ambient.act")
  PedSetActionNode(Bully03, "/Global/Ambient/SocialAnims/SocialChitChat/PlayAnim","Act/Anim/Ambient.act")
 
  PedAttackPlayer(Bully02, gPlayer,1)
  PedAttackPlayer(Bully03, gPlayer,1)
  PedSetPedToTypeAttitude(Bully02, 13, 0)
  PedSetPedToTypeAttitude(Bully03, 13, 0)
 PlayerSetControl(0)
 
  Wait(400)
  PedFaceObjectNow(Bully02, gPlayer, 3)
  PedFaceObjectNow(Bully03, gPlayer, 3)
  Wait(600)
  SoundPlayScriptedSpeechEvent(Bully02, "FIGHT_INITIATE", 0, "large")
  SoundPlayScriptedSpeechEvent(Bully03, "FIGHT_INITIATE", 0, "large")
  repeat
  PedFaceObjectNow(Bully02, gPlayer, 3)
  PedSetActionNode(Bully02, "/Global/BOSS_Darby/Offense/Special/Dash/Dash", "Act/Anim/BOSS_Darby.act")
  Wait(0)
  until PedIsPlaying(Bully02, "/Global/BOSS_Darby/Offense/Special/Dash/Dash", "Act/Anim/BOSS_Darby.act")
  PlayerSetControl(0)
  Wait(600)
  repeat
  PedSetActionNode(Bully02, "/Global/Russell_102/Offense/Short/Strikes/LightAttacks/WindMill_R/WindMill_L/HeavyAttacks/SwingPunch_R", "act/anim/Russell_102.act")
  Wait(0)
  until PedIsPlaying(Bully02, "/Global/Russell_102/Offense/Short/Strikes/LightAttacks/WindMill_R/WindMill_L/HeavyAttacks/SwingPunch_R", "act/anim/Russell_102.act")
  Wait(800)
  repeat
  PedSetActionNode(gPlayer, "/Global/2_B/PlayerOnGround/BellyUp", "Act/Conv/2_B.act")
  Wait(0)
  until PedIsPlaying(gPlayer, "/Global/2_B/PlayerOnGround/BellyUp", "Act/Conv/2_B.act")
 
  PlayerSetControl(1)
  Blip5 = BlipAddXYZ(-533.4614,-22.8947,31.0114,0)
  F_BulliesConfrintation2()
 
end

F_BulliesConfrintation2 = function()
  local x,y = -533,-22
  local r1 = x + 3.5
  local r2 = y + 3.5
  local r3 = x - 3.5
  local r4 = y - 3.5
  repeat
    Wait(0)
  until PedInRectangle(gPlayer,r1,r2,r3,r4)
 
  PedClearAllWeapons(gPlayer)
  PedSetWeapon(gPlayer,-1)
 
  PedAttackPlayer(Bully04, gPlayer,1)
  PedSetPedToTypeAttitude(Bully04, 13, 0)
 
  BlipRemove(Blip5)
 
  PlayerSetControl(0)
 
  PedSetHealth(Bully04, 170)
 
  Wait(600)
  PedFaceObjectNow(Bully04, gPlayer, 3)
 
  PlayerSetControl(0)
  Wait(1000)
 
  SoundPlayScriptedSpeechEvent(Bully04, "FIGHT_INITIATE", 0, "large")
 
  repeat
  PedSetActionNode(Bully04, "/Global/BOSS_Russell/Defense/Evade/EvadeInterrupt/EvadeInterrupt", "act/anim/BOSS_Russell.act")
  Wait(100)
  until PedIsPlaying(Bully04, "/Global/BOSS_Russell/Defense/Evade/EvadeInterrupt/EvadeInterrupt", "act/anim/BOSS_Russell.act")
 
  PlayerSetControl(1)
  Blip6 = BlipAddXYZ(-525.6486,-40.5339,31.0114,0)
 
  F_BulliesConfrintation3()
 
end

F_BulliesConfrintation3 = function()
  local x,y = -525,-40
  local r1 = x + 3.5
  local r2 = y + 3.5
  local r3 = x - 3.5
  local r4 = y - 3.5
  repeat
    Wait(0)
  until PedInRectangle(gPlayer,r1,r2,r3,r4)
 
  BlipRemove(Blip6)
 
  PedClearAllWeapons(gPlayer)
  PedSetWeapon(gPlayer,-1)
 
  PedSetHealth(Bully07, 180)
  PedSetHealth(Bully17, 190)
 
  PedSetActionNode(Bully07, "/Global/Ambient/Reactions/HumiliationReact/Laughing/Guy_Laugh/Laugh01","Act/Anim/Ambient.act")
  PedSetActionNode(Bully17, "/Global/Ambient/Reactions/HumiliationReact/Laughing/Guy_Laugh/Laugh01","Act/Anim/Ambient.act")
 
  PedFaceObjectNow(Bully07, gPlayer, 3)
  PedFaceObjectNow(Bully17, gPlayer, 3)
 
  PedAttackPlayer(Bully07, gPlayer,1)
  PedAttackPlayer(Bully17, gPlayer,1)
  PedSetPedToTypeAttitude(Bully07, 13, 0)
  PedSetPedToTypeAttitude(Bully17, 13, 0)
 
  PlayerSetControl(0)
 
  SoundPlayScriptedSpeechEvent(Bully07, "FIGHT_INITIATE", 0, "large")
  SoundPlayScriptedSpeechEvent(Bully17, "FIGHT_INITIATE", 0, "large")
 
  PlayerSetControl(1)
 
  Wait(2000)
  PedSetActionNode(Bully07, "/Global/Nemesis/Offense/Short/Strikes/LightAttacks/LeftHook/RightCross/HeavyAttacks/SuperUppercut", "act/anim/Nemesis.act")
 
  Wait(1600)
  PedSetActionNode(Bully17, "/Global/Actions/Grapples/Front/Grapples/GrappleMoves/GrappleStrikes/HitC/Charge/...", "Globals/Nemesis.act")
  Blip7 = BlipAddXYZ(-525.3394,-25.7588,31.0173,0)
  F_BulliesConfrintation4()
end

F_BulliesConfrintation4 = function()
  local x,y = -525,-25
  local r1 = x + 3.5
  local r2 = y + 3.5
  local r3 = x - 3.5
  local r4 = y - 3.5
  repeat
    Wait(0)
  until PedInRectangle(gPlayer,r1,r2,r3,r4)
 
  PedClearAllWeapons(gPlayer)
  PedSetWeapon(gPlayer,-1)
 
  BlipRemove(Blip7)
 
  PedSetHealth(Bully05, 185)
  PedSetHealth(Bully06, 195)
 
  PedSetActionNode(Bully05, "/Global/Ambient/Reactions/HumiliationReact/Laughing/Guy_Laugh/Laugh01","Act/Anim/Ambient.act")
  PedSetActionNode(Bully06, "/Global/Ambient/Reactions/HumiliationReact/Laughing/Guy_Laugh/Laugh01","Act/Anim/Ambient.act")
 
  PedFaceObjectNow(Bully05, gPlayer, 3)
  PedFaceObjectNow(Bully06, gPlayer, 3)
 
  PedAttackPlayer(Bully05, gPlayer,1)
  PedAttackPlayer(Bully06, gPlayer,1)
  PedSetPedToTypeAttitude(Bully05, 13, 0)
  PedSetPedToTypeAttitude(Bully06, 13, 0)
 
  PlayerSetControl(0)
 
  SoundPlayScriptedSpeechEvent(Bully05, "FIGHT_INITIATE", 0, "large")
  SoundPlayScriptedSpeechEvent(Bully06, "FIGHT_INITIATE", 0, "large")
 
  PlayerSetControl(1)
 
  Wait(2000)
  PedSetActionNode(Bully05, "/Global/Russell_102/Offense/Short/Strikes/LightAttacks/WindMill_R/WindMill_L/HeavyAttacks/SwingPunch_R", "act/anim/Russell_102.act")
  Wait(2000)
  PedSetActionNode(Bully06, "/Global/P_Striker_B/Offense/Short/Strikes/Unblockable/HeavyPunchCharge", "act/anim/P_Striker_B.act")

  Blip40 = BlipAddXYZ(-515.4213,-29.9185,31.0114,0)
  F_BulliesConfrintation5()
end

F_BulliesConfrintation5 = function()
  local x,y = -515,-29
  local r1 = x + 3.5
  local r2 = y + 3.5
  local r3 = x - 3.5
  local r4 = y - 3.5
  repeat
    Wait(0)
  until PedInRectangle(gPlayer,r1,r2,r3,r4)
 
  PedClearAllWeapons(gPlayer)
  PedSetWeapon(gPlayer,-1)
 
  BlipRemove(Blip40)
 
   TextPrintString("Head upstairs", 4, 1)
   
   Wait(600)
  PedSetActionNode(Bully08, "/Global/Ambient/Reactions/HumiliationReact/Laughing/Guy_Laugh/Laugh01","Act/Anim/Ambient.act")
  PedSetActionNode(Bully09, "/Global/Ambient/Reactions/HumiliationReact/Laughing/Guy_Laugh/Laugh01","Act/Anim/Ambient.act")

  PedAttackPlayer(Bully08, gPlayer,1)
  PedAttackPlayer(Bully09, gPlayer,1)
 
  PedSetPedToTypeAttitude(Bully08, 13, 0)
  PedSetPedToTypeAttitude(Bully09, 13, 0)
   
   PedSetHealth(Bully08, 205)
   PedSetHealth(Bully09, 215)
 
  Wait(4000)
  PedSetActionNode(Bully08, "/Global/Russell_102/Offense/Short/Strikes/LightAttacks/WindMill_R/WindMill_L/HeavyAttacks/SwingPunch_R", "Act/anim/Russell_102.act")
  Wait(4000)
  PedSetActionNode(Bully09, "/Global/P_Striker_B/Offense/Short/Strikes/Unblockable/HeavyPunchCharge", "Act/anim/P_Striker_B.act")
 
  Blip90 = BlipAddXYZ(-526.2628, -28.8353, 35.7359,0)
 
  Bully24 = PedCreateXYZ(147,  -517.4915, -24.5793, 35.7505)
  Bully25 = PedCreateXYZ(102,  -521.7363, -19.1053, 35.7594)
 
  Bully300 = PedCreateXYZ(102, -528.8989,-40.5377,35.9444)
  Wait(2000)
  Bully301 = PedCreateXYZ(147, -528.8989+1,-40.5377+1,35.9444+1)
 
  F_BulliesConfrintation01()
end

F_BulliesConfrintation01 = function()
  local x,y = -522,-22
  local r1 = x + 3.5
  local r2 = y + 3.5
  local r3 = x - 3.5
  local r4 = y - 3.5
  repeat
    Wait(0)
  until PedInRectangle(gPlayer,r1,r2,r3,r4)
 
  PedClearAllWeapons(gPlayer)
  PedSetWeapon(gPlayer,-1)
 
  SoundDisableSpeech_ActionTree()
 
  BlipRemove(Blip90)
 
  Bully28 = PedCreateXYZ(85,  -526.2628, -28.8353, 35.7359)
 
  PedSetInvulnerable(Bully24,true)
  PedSetInvulnerable(Bully25,true)
  PedSetInvulnerable(Bully28,true)
 
  PedSetHealth(Bully23, 650)
  PedSetHealth(Bully24, 150)
  PedSetHealth(Bully25, 160)
 
  PlayerSetControl(0)

  SoundPlayInteractiveStreamLocked("MS_FinalShowdown03High.rsm", MUSIC_DEFAULT_VOLUME)
 
  PedFaceObjectNow(Bully23, gPlayer, 3)
 
  SoundPlayScriptedSpeechEvent(Bully23, "FIGHT_INITIATE", 0, "large")
 
  Wait(2000)
 
  PlayerSetControl(1)
 
  PedAttackPlayer(Bully23, gPlayer,1)
 
  TextPrintString("Defeat Wade", 4, 1)
  gWadeBlip = AddBlipForChar(Bully23, 2, 26, 4)
 
  PedSetCombatZoneMask(Bully23, true, false, false)
 
  PedSetDamageTakenMultiplier(Bully23, 3, 0.5)
  PedSetDamageTakenMultiplier(Bully23, 0, 0.5)
 
  PlayerSocialDisableActionAgainstPed(Bully23, 35, true)
  PlayerSocialDisableActionAgainstPed(Bully23, 23, true)
  PlayerSocialDisableActionAgainstPed(Bully23, 30, true)
  PlayerSocialDisableActionAgainstPed(Bully23, 29, true)
  PlayerSocialDisableActionAgainstPed(Bully23, 28, true)
 
  PedShowHealthBar(Bully23, true, "N_WADE", true)
 
  PedSetPedToTypeAttitude(Bully23, 13, 0)
 
  PedFaceObjectNow(Bully24, gPlayer, 3)
  PedFaceObjectNow(Bully25, gPlayer, 3)
  PedFaceObjectNow(Bully28, gPlayer, 3)
 
  PedSetTaskNode(Bully24, "/Global/AI/ScriptedAI/CheeringAINode", "Act/AI/AI.act")
 
  PedSetTaskNode(Bully25, "/Global/AI/ScriptedAI/CheeringAINode", "Act/AI/AI.act")
 
  PedSetTaskNode(Bully28, "/Global/AI/ScriptedAI/CheeringAINode", "Act/AI/AI.act")
 
  CreateThread("main3")
  CreateThread("main4")
  CreateThread("main6")
 
  PedAddPedToIgnoreList(Pete, gPlayer)
  PedIgnoreAttacks(Pete, true)
  Pete = PedCreateXYZ(134, -513.5119019, -43.34968185, 40.48794174)
  l_2_8 = false

end

F_BullyKnockedOut = function()
 if PedIsDead(Bully23) and l_1_8 == false then
 l_1_8 = true
 
 SoundEnableSpeech_ActionTree()
 
 PedDelete(Bully23)
 PedDelete(Bully24)
 PedDelete(Bully25)
 PedDelete(Bully28)
 Bully26 = PedCreateXYZ(147,  -517.4915, -24.5793, 35.7505)
 Bully27 = PedCreateXYZ(102,  -521.7363, -19.1053, 35.7594)
 Bully29 = PedCreateXYZ(85,  -526.2628, -28.8353, 35.7359)
 
  SoundPlayInteractiveStream("MS_BikeChaseLow.rsm", 0.5)
  SoundSetMidIntensityStream("MS_BikeChaseMid.rsm", 0.60000002384186)
  SoundSetHighIntensityStream("MS_BikeChaseHigh.rsm", 0.60000002384186)
 
  PedSetHealth(Bully26, 280)
  PedSetHealth(Bully27, 290)
  PedSetHealth(Bully29, 295)
 
  Wait(600)
  PedFaceObjectNow(Bully26, gPlayer, 3)
  PedFaceObjectNow(Bully27, gPlayer, 3)
  PedFaceObjectNow(Bully29, gPlayer, 3)
 
  SoundPlayScriptedSpeechEvent(Bully26, "FIGHT_INITIATE", 0, "large")
  SoundPlayScriptedSpeechEvent(Bully27, "FIGHT_INITIATE", 0, "large")
 
  PedSetPedToTypeAttitude(Bully26, 13, 0)
  PedSetPedToTypeAttitude(Bully27, 13, 0)
  PedSetPedToTypeAttitude(Bully29, 13, 0)
  PedAttackPlayer(Bully26, gPlayer,1)
  PedAttackPlayer(Bully27, gPlayer,1)
  PedAttackPlayer(Bully29, gPlayer,1)
  Blip56 = BlipAddXYZ(-513.3505,-46.4518,35.7343,0)
 
  Wait(15000)
  PedSetInvulnerable(Bully29,true)
  PedAddPedToIgnoreList(Bully29, gPlayer)
  PedIgnoreAttacks(Bully29, true)
  PedClearObjectives(Bully29)
  PedMoveToXYZ(Bully29, 3,  -527.763916, -51.61159515, 35.71253204)
  Wait(10000)
  PedDelete(Bully29)
  F_TrentFlee()
end
 if PedIsDead(Bully23) and l_1_8 == false then
 l_1_8 = true
 
 SoundEnableSpeech_ActionTree()
 
 PedDelete(Bully23)
 PedDelete(Bully24)
 PedDelete(Bully25)
 PedDelete(Bully28)
 Bully26 = PedCreateXYZ(147,  -517.4915, -24.5793, 35.7505)
 Bully27 = PedCreateXYZ(102,  -521.7363, -19.1053, 35.7594)
 Bully29 = PedCreateXYZ(85,  -526.2628, -28.8353, 35.7359)
 
  SoundPlayInteractiveStream("MS_BikeChaseLow.rsm", 0.5)
  SoundSetMidIntensityStream("MS_BikeChaseMid.rsm", 0.60000002384186)
  SoundSetHighIntensityStream("MS_BikeChaseHigh.rsm", 0.60000002384186)
 
  PedSetHealth(Bully26, 280)
  PedSetHealth(Bully27, 290)
  PedSetHealth(Bully29, 295)
 
  Wait(600)
  PedFaceObjectNow(Bully26, gPlayer, 3)
  PedFaceObjectNow(Bully27, gPlayer, 3)
  PedFaceObjectNow(Bully29, gPlayer, 3)
 
  SoundPlayScriptedSpeechEvent(Bully26, "FIGHT_INITIATE", 0, "large")
  SoundPlayScriptedSpeechEvent(Bully27, "FIGHT_INITIATE", 0, "large")
 
  PedSetPedToTypeAttitude(Bully26, 13, 0)
  PedSetPedToTypeAttitude(Bully27, 13, 0)
  PedSetPedToTypeAttitude(Bully29, 13, 0)
  PedAttackPlayer(Bully26, gPlayer,1)
  PedAttackPlayer(Bully27, gPlayer,1)
  PedAttackPlayer(Bully29, gPlayer,1)
  Blip56 = BlipAddXYZ(-513.3505,-46.4518,35.7343,0)
 
  Wait(15000)
  PedSetInvulnerable(Bully29,true)
  PedAddPedToIgnoreList(Bully29, gPlayer)
  PedIgnoreAttacks(Bully29, true)
  PedClearObjectives(Bully29)
  PedMoveToXYZ(Bully29, 3,  -527.763916, -51.61159515, 35.71253204)
  Wait(10000)
  PedDelete(Bully29)
  F_TrentFlee()
end
end

function F_LargeCrowd()
SoundPlayScriptedSpeechEvent(Bully24, "FIGHT_WATCH", 0, "large")
Wait(200)
SoundPlayScriptedSpeechEvent(Bully24, "FIGHT_WATCH", 0, "large")
Wait(200)
SoundPlayScriptedSpeechEvent(Bully24, "FIGHT_WATCH", 0, "large")
Wait(200)
SoundPlayScriptedSpeechEvent(Bully24, "FIGHT_WATCH", 0, "large")
Wait(200)
SoundPlayScriptedSpeechEvent(Bully24, "FIGHT_WATCH", 0, "large")
Wait(200)
SoundPlayScriptedSpeechEvent(Bully24, "FIGHT_WATCH", 0, "large")
Wait(200)
SoundPlayScriptedSpeechEvent(Bully24, "FIGHT_WATCH", 0, "large")
Wait(200)
SoundPlayScriptedSpeechEvent(Bully24, "FIGHT_WATCH", 0, "large")
Wait(200)
SoundPlayScriptedSpeechEvent(Bully25, "FIGHT_WATCH", 0, "large")
Wait(200)
SoundPlayScriptedSpeechEvent(Bully25, "FIGHT_WATCH", 0, "large")
Wait(200)
SoundPlayScriptedSpeechEvent(Bully25, "FIGHT_WATCH", 0, "large")
Wait(200)
SoundPlayScriptedSpeechEvent(Bully25, "FIGHT_WATCH", 0, "large")
Wait(200)
SoundPlayScriptedSpeechEvent(Bully25, "FIGHT_WATCH", 0, "large")
Wait(200)
SoundPlayScriptedSpeechEvent(Bully25, "FIGHT_WATCH", 0, "large")
Wait(200)
SoundPlayScriptedSpeechEvent(Bully25, "FIGHT_WATCH", 0, "large")
Wait(200)
SoundPlayScriptedSpeechEvent(Bully25, "FIGHT_WATCH", 0, "large")
end

function F_LargeCrowd2()
SoundPlayAmbience("Fight_Group_Sml_Int.rsm", 0.69999998807907)
end

F_TrentFlee = function()
  local x,y = -518,-43
  local r1 = x + 3.5
  local r2 = y + 3.5
  local r3 = x - 3.5
  local r4 = y - 3.5
  repeat
    Wait(0)
  until PedInRectangle(gPlayer,r1,r2,r3,r4)
 
  PedClearAllWeapons(gPlayer)
  PedSetWeapon(gPlayer,-1)
 
  BlipRemove(Blip56)

PedFaceObjectNow(Bully10, gPlayer, 3)
 
TextPrintString("Go after Trent, watch out for other bullies!", 4, 1)
SoundPlayScriptedSpeechEvent(Bully10, "FIGHT", 0, "large")
PedSetHealth(Bully10, 385)
Wait(1000)
PedMoveToXYZ(Bully10, 3,  -527.763916, -51.61159515, 35.71253204)
PedMoveToXYZ(Bully11, 3,  -538.9951172, -52.32823563, 35.71253204)
Wait(1500)

  Bully20 = PedCreateXYZ(146, -509.9862671, -50.19665527, 35.86096954)
  Bully21 = PedCreateXYZ(147, -550.0210571, -51.9762435, 35.71253204)
  Wait(1500)
PedMoveToXYZ(Bully20, 3,  -527.763916, -51.61159515, 35.71253204)
PedMoveToXYZ(Bully21, 3,  -538.9951172, -52.32823563, 35.71253204)

  PedAttackPlayer(Bully10, gPlayer,1)
  PedAttackPlayer(Bully11, gPlayer,1)
  PedSetPedToTypeAttitude(Bully10, 13, 0)
  PedSetPedToTypeAttitude(Bully11, 13, 0)
  PedAttackPlayer(Bully20, gPlayer,1)
  PedAttackPlayer(Bully21, gPlayer,1)
  PedSetPedToTypeAttitude(Bully20, 13, 0)
  PedSetPedToTypeAttitude(Bully21, 13, 0)
 
  Blip46 = BlipAddXYZ(-550.5805,-46.9971,35.7500,0)
  F_BulliesConfrintation6()
 
end

F_BulliesConfrintation6 = function()
  local x,y = -550,-46
  local r1 = x + 3.5
  local r2 = y + 3.5
  local r3 = x - 3.5
  local r4 = y - 3.5
  repeat
    Wait(0)
  until PedInRectangle(gPlayer,r1,r2,r3,r4)
 
  PedClearAllWeapons(gPlayer)
  PedSetWeapon(gPlayer,-1)
 
  BlipRemove(Blip46)
 
  Blip47 = BlipAddXYZ(-541.2206,-35.5556,35.7359,0)
 
  PedAttackPlayer(Bully13, gPlayer,1)
  PedSetPedToTypeAttitude(Bully13, 13, 0)
 
  PedSetHealth(Bully13, 980)
 
  Wait(600)
  PedFaceObjectNow(Bully13, gPlayer, 3)
 
  SoundPlayScriptedSpeechEvent(Bully13, "FIGHT_INITIATE", 0, "large")
 
  PedFaceObjectNow(Bully300, gPlayer, 3)
  PedFaceObjectNow(Bully301, gPlayer, 3)
 
  PedAttackPlayer(Bully300, gPlayer,1)
  PedAttackPlayer(Bully301, gPlayer,1)
 
  PedSetPedToTypeAttitude(Bully300, 13, 0)
  PedSetPedToTypeAttitude(Bully301, 13, 0)
 
  SoundPlayInteractiveStreamLocked("MS_XmasBellsRudyHigh.rsm", MUSIC_DEFAULT_VOLUME)
 
 l_19_0 = false
end

F_BullySuperAttack = function()
if PedIsDead(Bully300) and PedIsDead(Bully301) and l_19_0 == false then
  PedFaceObjectNow(Bully13, gPlayer, 3)
  Wait(2000)
  PlayerSetControl(0)
  PedSetActionNode(Bully13, "/Global/BOSS_Darby/Offense/Special/Dash/Dash", "Act/Anim/BOSS_Darby.act")
  Wait(400)
  PedSetActionNode(Bully13, "/Global/BOSS_Russell/Defense/Evade/EvadeInterrupt/EvadeInterrupt", "act/anim/BOSS_Russell.act")
  SoundPlayScriptedSpeechEvent(Bully13, "FIGHT", 0, "large")
  Wait(1500)
  PedSetActionNode(gPlayer, "/Global/2_B/PlayerOnGround/BellyUp", "Act/Conv/2_B.act")
  PedIsPlaying(gPlayer, "/Global/2_B/PlayerOnGround/BellyUp", true)
 
  PedStop(Bully13)
  PedClearObjectives(Bully13)
  PedAddPedToIgnoreList(Bully13, gPlayer)
  PedIgnoreAttacks(Bully13, true)
  PedSetInvulnerable(Bully13, true)
  Wait(2000)
  PedMoveToXYZ(Bully13, 3,  -550.5805, -46.9971, 35.7500)

  Bully300 = PedCreateXYZ(102, -541.2206,-35.5556,35.7359)
  Wait(2000)
  Bully301 = PedCreateXYZ(147, -541.2206+1,-35.5556+1,35.7359+1)
 
  PedFaceObjectNow(Bully13, gPlayer, 3)
  SoundPlayScriptedSpeechEvent(Bully13, "CALL_FOR_HELP", 0, "large")
 
  PedFaceObjectNow(Bully300, gPlayer, 3)
  PedFaceObjectNow(Bully301, gPlayer, 3)
 
  PedAttackPlayer(Bully300, gPlayer,1)
  PedAttackPlayer(Bully301, gPlayer,1)
 
  PedSetPedToTypeAttitude(Bully300, 13, 0)
  PedSetPedToTypeAttitude(Bully301, 13, 0)
 
  PlayerSetControl(1)
 
  PedMoveToXYZ(Bully13, 3,  -541.2206,-35.5556,35.7359)
 
  Wait(2000)
 
  PedSetInvulnerable(Bully13, false)
  PedRemovePedFromIgnoreList(Bully13, gPlayer)
  PedIgnoreAttacks(Bully13, false)
  SoundPlayScriptedSpeechEvent(Bully13, "FIGHT_INITIATE", 0, "large")
  PedSetPedToTypeAttitude(Bully13, 13, 0)
  PedAttackPlayer(Bully13, gPlayer,1)
 
end
if PedIsDead(Bully300) and PedIsDead(Bully301) and l_19_0 == false then
  PedFaceObjectNow(Bully13, gPlayer, 3)
  Wait(2000)
  PlayerSetControl(0)
  PedSetActionNode(Bully13, "/Global/BOSS_Darby/Offense/Special/Dash/Dash", "Act/Anim/BOSS_Darby.act")
  Wait(400)
  PedSetActionNode(Bully13, "/Global/BOSS_Russell/Defense/Evade/EvadeInterrupt/EvadeInterrupt", "act/anim/BOSS_Russell.act")
  SoundPlayScriptedSpeechEvent(Bully13, "FIGHT", 0, "large")
  Wait(1500)
  PedSetActionNode(gPlayer, "/Global/2_B/PlayerOnGround/BellyUp", "Act/Conv/2_B.act")
  PedIsPlaying(gPlayer, "/Global/2_B/PlayerOnGround/BellyUp", true)
 
  PedStop(Bully13)
  PedClearObjectives(Bully13)
  PedAddPedToIgnoreList(Bully13, gPlayer)
  PedIgnoreAttacks(Bully13, true)
  PedSetInvulnerable(Bully13, true)
  Wait(2000)
  PedMoveToXYZ(Bully13, 3,  -550.5805, -46.9971, 35.7500)

  Bully300 = PedCreateXYZ(102, -541.2206,-35.5556,35.7359)
  Wait(2000)
  Bully301 = PedCreateXYZ(147, -541.2206+1,-35.5556+1,35.7359+1)
 
  PedFaceObjectNow(Bully13, gPlayer, 3)
  SoundPlayScriptedSpeechEvent(Bully13, "CALL_FOR_HELP", 0, "large")
 
  PedFaceObjectNow(Bully300, gPlayer, 3)
  PedFaceObjectNow(Bully301, gPlayer, 3)
 
  PedAttackPlayer(Bully300, gPlayer,1)
  PedAttackPlayer(Bully301, gPlayer,1)
 
  PedSetPedToTypeAttitude(Bully300, 13, 0)
  PedSetPedToTypeAttitude(Bully301, 13, 0)
 
  PlayerSetControl(1)
 
  PedMoveToXYZ(Bully13, 3,  -541.2206,-35.5556,35.7359)
 
  Wait(2000)
 
  PedSetInvulnerable(Bully13, false)
  PedRemovePedFromIgnoreList(Bully13, gPlayer)
  PedIgnoreAttacks(Bully13, false)
  SoundPlayScriptedSpeechEvent(Bully13, "FIGHT_INITIATE", 0, "large")
  PedSetPedToTypeAttitude(Bully13, 13, 0)
  PedAttackPlayer(Bully13, gPlayer,1)
 
end
end

F_BullyFuckingDead = function()
if PedIsDead(Bully13) and l_19_0 == false then
  l_19_0 = true
 
  Wait(2000)
  F_EthanBossFight()
end
if PedIsDead(Bully13) and l_19_0 == false then
  l_19_0 = true
 
  Wait(2000)
  F_EthanBossFight()
end
end

F_PlayerKnockedOut = function()
if PedIsDead(gPlayer) then
R_C_M = 2
end
end

F_ClearAllWeapons = function()
  Wait(2000)
  PedClearAllWeapons(gPlayer)
  PedSetWeapon(gPlayer,-1)
end

main10 = function()
repeat
F_PlayerKnockedOut()
Wait(0)
until not Alive
end

main7 = function()
repeat
F_ClearAllWeapons()
Wait(0)
until not PedIsValid(Bully19) or PedIsDead(Bully19) or PedGetHealth(Bully19) < 1
end

main8 = function()
repeat
F_DavisBossStyle()
Wait(0)
until not PedIsValid(Bully19) or PedIsDead(Bully19) or PedGetHealth(Bully19) < 1
end

main9 = function()
repeat
FailureIsImmenseLOL()
Wait(4000)
until not PedIsValid(Bully19) or PedIsDead(Bully19) or PedGetHealth(Bully19) < 1
end

main2 = function()
repeat
F_EthanBossStyle()
Wait(0)
until not PedIsValid(Bully12) or PedIsDead(Bully12) or PedGetHealth(Bully12) < 1
end

main6 = function()
repeat
F_BullyBossStyle()
Wait(0)
until not PedIsValid(Bully23) or PedIsDead(Bully23) or PedGetHealth(Bully23) < 1
end

main3 = function()
repeat
F_LargeCrowd()
Wait(0)
until not PedIsValid(Bully23) or PedIsDead(Bully23) or PedGetHealth(Bully23) < 1
end

main4 = function()
repeat
F_LargeCrowd2()
Wait(0)
until not PedIsValid(Bully23) or PedIsDead(Bully23) or PedGetHealth(Bully23) < 1
end

main11 = function()
repeat
F_BullyBossStyle1()
Wait(0)
until not PedIsValid(Bully14) or PedIsDead(Bully14) or PedGetHealth(Bully14) < 1
end

main12 = function()
repeat
F_BullyBossStyle2()
Wait(0)
until not PedIsValid(Bully47) or PedIsDead(Bully47) or PedGetHealth(Bully47) < 1
end

main13 = function()
repeat
F_BullyBossStyle3()
Wait(0)
until not PedIsValid(Bully55) or PedIsDead(Bully55) or PedGetHealth(Bully55) < 1
end

main = function()
F_FirstBulliesSpawn()
repeat
F_BullyKnockedOut()
F_BullySuperAttack()
F_BullyFuckingDead()
F_EthanKnockedOut()
F_TroyKnockedOut()
F_TomKnockedOut()
F_BullySuperAttack2()
F_BullyFuckingDead2()
F_TrentKnockedOut()
F_PeteKnockedOut()
F_DavisKnockedOut()
Wait(0)
until not Alive
end

Code: [Select]
F_EthanBossFight = function()
  local x,y = -541,-35
  local r1 = x + 3.5
  local r2 = y + 3.5
  local r3 = x - 3.5
  local r4 = y - 3.5
  repeat
    Wait(0)
  until PedInRectangle(gPlayer,r1,r2,r3,r4)
 
  SoundPlayInteractiveStream("MS_BikeChaseLow.rsm", 0.5)
  SoundSetMidIntensityStream("MS_BikeChaseMid.rsm", 0.60000002384186)
  SoundSetHighIntensityStream("MS_BikeChaseHigh.rsm", 0.60000002384186)
 
  BlipRemove(Blip47)
 
  PlayerSetControl(0)
 
  PedMoveToXYZ(Bully19, 3,  -520.1132, -42.4193, 40.4879)
  Wait(2000)
  TextPrintString("Davis went upstairs!", 4, 1)
  PedSetInfiniteSprint(Bully19, true)
 
  PedsPrepareConversation(gPlayer,Bully12,1,0)
 
  PedSetStationary(Bully12,true)
  PedSetInvulnerable(Bully12,true)
 
  CameraSetFOV(65)
  Wait(2000)
  CameraSetFOV(40)
  CameraSetWidescreen(true)
 
  SoundDisableSpeech_ActionTree()
 
  Wait(2000)
  PedSetActionNode(Bully12, "/Global/6_02/FactionLeaderNIS/Preps/Chad01","Act/Conv/6_02.act")
  TextPrintString("Ethan: Look Jimmy we don't have to do this you can just walk away!",3,2)
  Wait(5000)
  PedSetActionNode(gPlayer, "/Global/6_02/FactionLeaderNIS/Preps/Chad01","Act/Conv/6_02.act")
  TextPrintString("Jimmy: Ethan you know I can't do that I have to rescue Pete!",3,2)
  Wait(5000)
  PedSetActionNode(Bully12, "/Global/6_02/FactionLeaderNIS/Preps/Chad01","Act/Conv/6_02.act")
  TextPrintString("Ethan: Alright Jimmy prove to me you're a leader and get him back!",3,2)
  Wait(5000)
  PedSetActionNode(Bully12, "/Global/6_02/FactionLeaderNIS/Preps/Chad01","Act/Conv/6_02.act")
  TextPrintString("Ethan: Let's Go this wont be easy!",3,2)
 
  PedSetDamageTakenMultiplier(Bully12, 3, 0.5)
  PedSetDamageTakenMultiplier(Bully12, 0, 0.5)
 
  PlayerSocialDisableActionAgainstPed(Bully12, 35, true)
  PlayerSocialDisableActionAgainstPed(Bully12, 23, true)
  PlayerSocialDisableActionAgainstPed(Bully12, 30, true)
  PlayerSocialDisableActionAgainstPed(Bully12, 29, true)
  PlayerSocialDisableActionAgainstPed(Bully12, 28, true)
 
  PedSetStationary(Bully12,false)
  PedSetInvulnerable(Bully12,false)
  CameraReset()
  CameraSetWidescreen(false)
 
  PedClearAllWeapons(gPlayer)
  PedSetWeapon(gPlayer,-1)
 
  TextPrintString("Defeat Ethan", 4, 1)
  gEthanBlip = AddBlipForChar(Bully12, 2, 26, 4)
  PedAttackPlayer(Bully12, gPlayer,1)
  PedSetPedToTypeAttitude(Bully12, 13, 0)
  PedSetHealth(Bully12, 575)
  PedSetInfiniteSprint(Bully12, true)
  PedShowHealthBar(Bully12, true, "N_ETHAN", true)
  SoundPlayInteractiveStreamLocked("MS_FightingJohnnyVincentBossFight.rsm", MUSIC_DEFAULT_VOLUME)
  Wait(2000)
  PlayerSetControl(1)
 
  CreateThread("main2")
 
  Blip78 = BlipAddXYZ(-542.1815, -26.3866, 35.7594,0)
end

F_BullyBossStyle = function()
PlayerSetControl(0)
Wait(1000)
PedSetActionNode(Bully23, "/Global/Nemesis/Offense/Short/Strikes", "Act/anim/Nemesis.act")
SoundPlayScriptedSpeechEvent(Bully23, "FIGHT", 0, "large")
PlayerSetControl(1)
Wait(1000)
PedSetActionNode(Bully23, "/Global/Nemesis/Offense/Short/Strikes/HeavyAttacks/HeavyPunch2", "Act/anim/Nemesis.act")
SoundPlayScriptedSpeechEvent(Bully23, "FIGHT", 0, "large")
Wait(1000)
PedSetActionNode(Bully23, "/Global/Nemesis/Offense/Short/Strikes/LightAttacks/LeftHook/RightCross/HeavyAttacks/SuperUppercut", "Act/anim/Nemesis.act")
SoundPlayScriptedSpeechEvent(Bully23, "FIGHT", 0, "large")
Wait(1000)
PedSetActionNode(Bully23, "/Global/Nemesis/Offense/Short/Strikes/HeavyAttacks/HeavyPunch2", "Act/anim/Nemesis.act")
SoundPlayScriptedSpeechEvent(Bully23, "FIGHT", 0, "large")
Wait(1000)
PedSetActionNode(Bully23, "/Global/BOSS_Russell/Offense/Short", "Act/anim/BOSS_Russell.act")
SoundPlayScriptedSpeechEvent(Bully23, "FIGHT", 0, "large")
Wait(2000)
PedSetActionNode(Bully23, "/Global/BOSS_Russell/Offense/Medium/Strikes/HeavyAttacks", "Act/anim/BOSS_Russell.act")
SoundPlayScriptedSpeechEvent(Bully23, "FIGHT", 0, "large")
Wait(2000)
PedSetActionNode(Bully23, "/Global/BOSS_Russell/Offense/Medium/Strikes/Unblockable/DoubleAxeHandle", "Act/anim/BOSS_Russell.act")
SoundPlayScriptedSpeechEvent(Bully23, "FIGHT", 0, "large")
PlayerSetControl(0)
Wait(2000)
PedSetActionNode(Bully23, "/Global/P_Bif/Offense/Short/Strikes/LightAttacks/JAB/Cross", "Act/anim/P_Bif.act")
SoundPlayScriptedSpeechEvent(Bully23, "FIGHT", 0, "large")
PlayerSetControl(1)
Wait(2000)
PedSetActionNode(Bully23, "/Global/Nemesis/Offense/Medium/Strikes", "Act/anim/Nemesis.act")
SoundPlayScriptedSpeechEvent(Bully23, "FIGHT", 0, "large")
Wait(1000)
PedSetActionNode(Bully23, "/Global/P_Bif/Offense/Short/Strikes/LightAttacks/JAB/Cross", "Act/anim/P_Bif.act")
SoundPlayScriptedSpeechEvent(Bully23, "FIGHT", 0, "large")
Wait(1000)
PedSetActionNode(Bully23, "/Global/BOSS_Darby/Offense/Short/Strikes/Unblockable/HeavyPunchCharge", "Act/anim/BOSS_Darby.act")
SoundPlayScriptedSpeechEvent(Bully23, "FIGHT", 0, "large")
Wait(1000)
PedSetActionNode(Bully23, "/Global/G_Grappler_A/Offense/Short/Strikes/HeavyAttacks/RightHook/Uppercut", "Act/anim/G_Grappler_A.act")
SoundPlayScriptedSpeechEvent(Bully23, "FIGHT", 0, "large")
Wait(1000)
end

F_EthanBossStyle = function()
Wait(2000)
PedSetActionNode(Bully12, "/Global/P_Bif/Offense/Short/Strikes/LightAttacks/JAB/Cross", "Act/anim/P_Bif.act")
SoundPlayScriptedSpeechEvent(Bully12, "FIGHT", 0, "large")
Wait(2000)
PedSetActionNode(Bully12, "/Global/BOSS_Darby/Offense/Short/Grapples/HeavyAttacks/Catch_Throw", "Act/anim/BOSS_Darby.act")
SoundPlayScriptedSpeechEvent(Bully12, "FIGHT", 0, "large")
Wait(2000)
PedSetActionNode(Bully12, "/Global/G_Striker_A/Offense/Short/Strikes/HeavyAttacks/HeavyKnee", "Act/anim/G_Striker_A.act")
SoundPlayScriptedSpeechEvent(Bully12, "FIGHT", 0, "large")
Wait(2000)
PedSetActionNode(Bully12, "/Global/P_Striker_A/Defense/Evade/EvadeCounter/LightAttacks/EvadeBackPunch", "act/anim/P_Striker_A.act")
SoundPlayScriptedSpeechEvent(Bully12, "FIGHT", 0, "large")
Wait(2000)
PedSetActionNode(Bully12, "/Global/G_Grappler_A/Offense/Short/Strikes/LightAttacks", "Act/anim/G_Grappler_A.act")
SoundPlayScriptedSpeechEvent(Bully12, "FIGHT", 0, "large")
Wait(2000)
PedSetActionNode(Bully12, "/Global/G_Grappler_A/Offense/Short/Strikes/HeavyAttacks/RightHook/Uppercut", "Act/anim/G_Grappler_A.act")
SoundPlayScriptedSpeechEvent(Bully12, "FIGHT", 0, "large")
Wait(2600)
PedSetActionNode(Bully12, "/Global/G_Ranged_A/Offense/Short/Strikes/LightAttacks/RightHook/HeavyKnee", "Act/anim/G_Ranged_A.act")
SoundPlayScriptedSpeechEvent(Bully12, "FIGHT", 0, "large")
Wait(2600)
PedSetActionNode(Bully12, "/Global/G_Ranged_A/Offense/Medium/Strikes/HeavyAttacks/HeavyKnee", "Act/anim/G_Ranged_A.act")
SoundPlayScriptedSpeechEvent(Bully12, "FIGHT", 0, "large")
Wait(2600)
PedSetActionNode(Bully12, "/Global/Nemesis/Offense/Medium/Strikes", "Act/anim/Nemesis.act")
SoundPlayScriptedSpeechEvent(Bully12, "FIGHT", 0, "large")
Wait(2600)
PedSetActionNode(Bully12, "/Global/Nemesis/Offense/Medium/Strikes/LightAttacks/OverHandR/HeavyAttacks/Knee", "Act/anim/Nemesis.act")
SoundPlayScriptedSpeechEvent(Bully12, "FIGHT", 0, "large")
Wait(2600)
PedSetActionNode(Bully12, "/Global/Nemesis/Offense/Medium/Strikes/HeavyAttacks/JackieKick","Act/Anim/Nemesis.act")
SoundPlayScriptedSpeechEvent(Bully12, "FIGHT", 0, "large")
Wait(2600)
PedSetActionNode(Bully12, "/Global/J_Striker_A/Offense/Short/Strikes/LightAttacks/JAB/Elbow/HeavyAttacks/Uppercut", "Act/anim/J_Striker_A.act" )
SoundPlayScriptedSpeechEvent(Bully12, "FIGHT", 0, "large")
end

F_EthanKnockedOut = function()
  if PedIsDead(Bully12) and l_1_7 == false then
  l_1_7 = true
 
  PedDelete(Bully12)
 
  SoundPlayInteractiveStream("MS_BikeChaseLow.rsm", MUSIC_DEFAULT_VOLUME)
  SoundSetMidIntensityStream("MS_BikeChaseMid.rsm", MUSIC_DEFAULT_VOLUME)
  SoundSetHighIntensityStream("MS_BikeChaseHigh.rsm", MUSIC_DEFAULT_VOLUME)
  Wait(2000)
  SoundPlayInteractiveStream("MS_EpicConfrontationMid.rsm", MUSIC_DEFAULT_VOLUME)
  SoundSetMidIntensityStream("MS_BikeChaseMid.rsm", MUSIC_DEFAULT_VOLUME)
  SoundSetHighIntensityStream("MS_EpicConfrontationHigh.rsm", MUSIC_DEFAULT_VOLUME)
 
  LoadAnimationGroup("DO_STRIKECOMBO")
  LoadAnimationGroup("BOXING")
  LoadAnimationGroup("C_Wrestling")
  LoadActionTree("Act/Anim/DO_Edgar.act")
  LoadActionTree("Act/AI/AI_EDGAR_5_B.act")
 
  F_BulliesConfrintation02()
end
  if PedIsDead(Bully12) and l_1_7 == false then
  l_1_7 = true
 
  PedDelete(Bully12)
 
  SoundPlayInteractiveStream("MS_BikeChaseLow.rsm", MUSIC_DEFAULT_VOLUME)
  SoundSetMidIntensityStream("MS_BikeChaseMid.rsm", MUSIC_DEFAULT_VOLUME)
  SoundSetHighIntensityStream("MS_BikeChaseHigh.rsm", MUSIC_DEFAULT_VOLUME)
  Wait(2000)
  SoundPlayInteractiveStream("MS_EpicConfrontationMid.rsm", MUSIC_DEFAULT_VOLUME)
  SoundSetMidIntensityStream("MS_BikeChaseMid.rsm", MUSIC_DEFAULT_VOLUME)
  SoundSetHighIntensityStream("MS_EpicConfrontationHigh.rsm", MUSIC_DEFAULT_VOLUME)
 
  LoadAnimationGroup("DO_STRIKECOMBO")
  LoadAnimationGroup("BOXING")
  LoadAnimationGroup("C_Wrestling")
  LoadActionTree("Act/Anim/DO_Edgar.act")
  LoadActionTree("Act/AI/AI_EDGAR_5_B.act")
 
  F_BulliesConfrintation02()
end
end

F_BulliesConfrintation02 = function()
  local x,y = -542,-26
  local r1 = x + 3.5
  local r2 = y + 3.5
  local r3 = x - 3.5
  local r4 = y - 3.5
  repeat
    Wait(0)
  until PedInRectangle(gPlayer,r1,r2,r3,r4)
 
  BlipRemove(Blip78)
 
  Bully30 = PedCreateXYZ(102, -542.1815, -26.3866, 35.7594)
 
  Bully31 = PedCreateXYZ(147, -547.7224, -23.0555, 35.7594)
 
  PedFaceObjectNow(Bully31, gPlayer, 3)
 
  PedSetHealth(Bully30, 480)
  PedSetHealth(Bully31, 180)
 
 
  PedSetPedToTypeAttitude(Bully30, 13, 0)
  PedSetPedToTypeAttitude(Bully31, 13, 0)
 
  PedSetDamageTakenMultiplier(Bully30, 3, 0.5)
  PedSetDamageTakenMultiplier(Bully30, 0, 0.5)
 
  PedAttackPlayer(Bully30, gPlayer,1)
 
  PlayerSocialDisableActionAgainstPed(Bully30, 35, true)
  PlayerSocialDisableActionAgainstPed(Bully30, 23, true)
  PlayerSocialDisableActionAgainstPed(Bully30, 30, true)
  PlayerSocialDisableActionAgainstPed(Bully30, 29, true)
  PlayerSocialDisableActionAgainstPed(Bully30, 28, true)
 
  PedSetAITree(Bully30, "/Global/AI_EDGAR_5_B", "Act/AI/AI_EDGAR_5_B.act")
  PedSetActionTree(Bully30, "/Global/DO_Edgar", "Act/Anim/DO_Edgar.act")
 
  SoundPlayInteractiveStreamLocked("MS_ShowdownAtThePlantHigh.rsm", MUSIC_DEFAULT_VOLUME)
 
  gTroyBlip = AddBlipForChar(Bully30, 2, 26, 4)
 
  PedShowHealthBar(Bully30, true, "N_TROY", true)
 
  PedSetWeapon(Bully30, 342)
 
  PedSetWeapon(gPlayer, 342)
 
  Blip79 = BlipAddXYZ(-534.1277466, -32.19345856, 40.49004364,0)
 
  Bully31 = PedCreateXYZ(102, -540.9907, -32.8057, 40.4923)
  Bully32 = PedCreateXYZ(85, -533.9155, -29.7763, 40.4886)
  Bully34 = PedCreateXYZ(146, -530.1337, -34.3973, 40.4879)
  Bully35 = PedCreateXYZ(145, -529.5260, -31.6303, 40.4822)
 
  PedFaceObjectNow(Bully31, gPlayer, 3)
  PedFaceObjectNow(Bully32, gPlayer, 3)
  PedFaceObjectNow(Bully34, gPlayer, 3)
  PedFaceObjectNow(Bully35, gPlayer, 3)

 
  l_1_9 = false
 
  SoundEnableSpeech_ActionTree()
 
end

F_TroyKnockedOut = function()
  if PedIsDead(Bully30) and l_1_9 == false then
  l_1_9 = true
 
  PedDelete(Bully30)
 
  SoundPlayInteractiveStream("MS_BikeChaseLow.rsm", MUSIC_DEFAULT_VOLUME)
  SoundSetMidIntensityStream("MS_BikeChaseMid.rsm", MUSIC_DEFAULT_VOLUME)
  SoundSetHighIntensityStream("MS_BikeChaseHigh.rsm", MUSIC_DEFAULT_VOLUME)
  Wait(3000)
  SoundPlayInteractiveStream("MS_EpicConfrontationMid.rsm", MUSIC_DEFAULT_VOLUME)
  SoundSetMidIntensityStream("MS_BikeChaseMid.rsm", MUSIC_DEFAULT_VOLUME)
  SoundSetHighIntensityStream("MS_EpicConfrontationHigh.rsm", MUSIC_DEFAULT_VOLUME)
  Wait(3000)
  F_BulliesConfrintation03()
end
  if PedIsDead(Bully30) and l_1_9 == false then
  l_1_9 = true
 
  PedDelete(Bully30)
 
  SoundPlayInteractiveStream("MS_BikeChaseLow.rsm", MUSIC_DEFAULT_VOLUME)
  SoundSetMidIntensityStream("MS_BikeChaseMid.rsm", MUSIC_DEFAULT_VOLUME)
  SoundSetHighIntensityStream("MS_BikeChaseHigh.rsm", MUSIC_DEFAULT_VOLUME)
  Wait(3000)
  SoundPlayInteractiveStream("MS_EpicConfrontationMid.rsm", MUSIC_DEFAULT_VOLUME)
  SoundSetMidIntensityStream("MS_BikeChaseMid.rsm", MUSIC_DEFAULT_VOLUME)
  SoundSetHighIntensityStream("MS_EpicConfrontationHigh.rsm", MUSIC_DEFAULT_VOLUME)
  Wait(3000)
  F_BulliesConfrintation03()
end
end

F_BullyBossStyle1 = function()
PlayerSetControl(0)
Wait(1000)
PedSetActionNode(Bully14, "/Global/Nemesis/Offense/Short/Strikes", "Act/anim/Nemesis.act")
SoundPlayScriptedSpeechEvent(Bully14, "FIGHT", 0, "large")
PlayerSetControl(1)
Wait(1000)
PedSetActionNode(Bully14, "/Global/Nemesis/Offense/Short/Strikes/HeavyAttacks/HeavyPunch2", "Act/anim/Nemesis.act")
SoundPlayScriptedSpeechEvent(Bully14, "FIGHT", 0, "large")
Wait(1000)
PedSetActionNode(Bully14, "/Global/Nemesis/Offense/Short/Strikes/LightAttacks/LeftHook/RightCross/HeavyAttacks/SuperUppercut", "Act/anim/Nemesis.act")
SoundPlayScriptedSpeechEvent(Bully14, "FIGHT", 0, "large")
Wait(1000)
PedSetActionNode(Bully14, "/Global/Nemesis/Offense/Short/Strikes/HeavyAttacks/HeavyPunch2", "Act/anim/Nemesis.act")
SoundPlayScriptedSpeechEvent(Bully14, "FIGHT", 0, "large")
Wait(1000)
PedSetActionNode(Bully14, "/Global/BOSS_Russell/Offense/Short", "Act/anim/BOSS_Russell.act")
SoundPlayScriptedSpeechEvent(Bully14, "FIGHT", 0, "large")
Wait(2000)
PedSetActionNode(Bully14, "/Global/BOSS_Russell/Offense/Medium/Strikes/HeavyAttacks", "Act/anim/BOSS_Russell.act")
SoundPlayScriptedSpeechEvent(Bully14, "FIGHT", 0, "large")
Wait(2000)
PedSetActionNode(Bully14, "/Global/BOSS_Russell/Offense/Medium/Strikes/Unblockable/DoubleAxeHandle", "Act/anim/BOSS_Russell.act")
SoundPlayScriptedSpeechEvent(Bully14, "FIGHT", 0, "large")
PlayerSetControl(0)
Wait(2000)
PedSetActionNode(Bully14, "/Global/P_Bif/Offense/Short/Strikes/LightAttacks/JAB/Cross", "Act/anim/P_Bif.act")
SoundPlayScriptedSpeechEvent(Bully14, "FIGHT", 0, "large")
PlayerSetControl(1)
Wait(2000)
PedSetActionNode(Bully14, "/Global/Nemesis/Offense/Medium/Strikes", "Act/anim/Nemesis.act")
SoundPlayScriptedSpeechEvent(Bully14, "FIGHT", 0, "large")
Wait(1000)
PedSetActionNode(Bully14, "/Global/P_Bif/Offense/Short/Strikes/LightAttacks/JAB/Cross", "Act/anim/P_Bif.act")
SoundPlayScriptedSpeechEvent(Bully14, "FIGHT", 0, "large")
Wait(1000)
PedSetActionNode(Bully14, "/Global/BOSS_Darby/Offense/Short/Strikes/Unblockable/HeavyPunchCharge", "Act/anim/BOSS_Darby.act")
SoundPlayScriptedSpeechEvent(Bully14, "FIGHT", 0, "large")
Wait(1000)
PedSetActionNode(Bully14, "/Global/G_Grappler_A/Offense/Short/Strikes/HeavyAttacks/RightHook/Uppercut", "Act/anim/G_Grappler_A.act")
SoundPlayScriptedSpeechEvent(Bully14, "FIGHT", 0, "large")
Wait(1000)
end

F_BulliesConfrintation03 = function()
  local x,y = -533,-31
  local r1 = x + 3.5
  local r2 = y + 3.5
  local r3 = x - 3.5
  local r4 = y - 3.5
  repeat
    Wait(0)
  until PedInRectangle(gPlayer,r1,r2,r3,r4)
 
  PedClearAllWeapons(gPlayer)
  PedSetWeapon(gPlayer,-1)
 
  CreateThread("main7")
 
  BlipRemove(Blip79)
 
    PlayerSetControl(0)
   
   PedsPrepareConversation(gPlayer,Bully14,1,0)
   PedSetStationary(Bully14,true)
   PedSetInvulnerable(Bully14,true)
   
   CameraSetWidescreen(true)
   
   PedsPrepareConversation(gPlayer,Bully14,1,0)
   
   SoundDisableSpeech_ActionTree()
   
  CameraSetFOV(65)
  Wait(2000)
  CameraSetFOV(40)
  Wait(2000)
  PedSetActionNode(Bully14, "/Global/6_02/FactionLeaderNIS/Preps/Chad01","Act/Conv/6_02.act")
  TextPrintString("Tom: Jimmy this is as far as you go!",3,2)
  Wait(5000)
  PedSetActionNode(gPlayer, "/Global/6_02/FactionLeaderNIS/Preps/Chad01","Act/Conv/6_02.act")
  TextPrintString("Jimmy: Tom let's put an end to this please!",3,2)
  Wait(5000)
  PedSetActionNode(Bully14, "/Global/6_02/FactionLeaderNIS/Preps/Chad01","Act/Conv/6_02.act")
  TextPrintString("Tom: I can't ever betray my crew, Jimmy it has to be a fight!",3,2)
  Wait(5000)
  PedSetActionNode(gPlayer, "/Global/6_02/FactionLeaderNIS/Preps/Chad01","Act/Conv/6_02.act")
  TextPrintString("Jimmy: This is what I am trying to prevent fights!",3,2)
  Wait(5000)
  PedSetActionNode(Bully14, "/Global/6_02/FactionLeaderNIS/Preps/Chad01","Act/Conv/6_02.act")
  TextPrintString("Tom: Although you're trying to prevent them their still happening!",3,2)
  Wait(5000)
  PedSetActionNode(gPlayer, "/Global/6_02/FactionLeaderNIS/Preps/Chad01","Act/Conv/6_02.act")
  TextPrintString("Jimmy: I understand that but I am trying my best!",3,2)
  Wait(5000)
  PedSetActionNode(Bully14, "/Global/6_02/FactionLeaderNIS/Preps/Chad01","Act/Conv/6_02.act")
  TextPrintString("Tom: Well you have to try harder enough talking!",3,2)
  Wait(5000)
  PedSetActionNode(Bully14, "/Global/6_02/FactionLeaderNIS/Preps/Chad01","Act/Conv/6_02.act")
  TextPrintString("Tom: Boys give him one hell of a fight!",3,2)
 
  PedSetStationary(Bully14,false)
  PedSetInvulnerable(Bully14,false)
  CameraReset()
  CameraSetWidescreen(false)
  PlayerSetControl(1)
 
  PedSetActionTree(Bully14, "/Global/J_Mascot", "Act/Anim/J_Mascot.act")
  TextPrintString("Defeat Tom!", 4, 1)
  PedAttackPlayer(Bully14, gPlayer,1)
  PedSetPedToTypeAttitude(Bully14, 13, 0)
  gTomBlip = AddBlipForChar(Bully14, 2, 26, 4)
  PedSetHealth(Bully14, 675)
 
  SoundEnableSpeech_ActionTree()
 
  PedSetDamageTakenMultiplier(Bully14, 3, 0.5)
  PedSetDamageTakenMultiplier(Bully14, 0, 0.5)
 
  PlayerSocialDisableActionAgainstPed(Bully14, 35, true)
  PlayerSocialDisableActionAgainstPed(Bully14, 23, true)
  PlayerSocialDisableActionAgainstPed(Bully14, 30, true)
  PlayerSocialDisableActionAgainstPed(Bully14, 29, true)
  PlayerSocialDisableActionAgainstPed(Bully14, 28, true)
 
  PedShowHealthBar(Bully14, true, "N_TOM", true)
 
  SoundPlayInteractiveStreamLocked("MS_StreetFightLargeHigh_Boxing.rsm", MUSIC_DEFAULT_VOLUME)
 
  PedSetActionTree(Bully31, "/Global/P_Striker_A", "Act/Anim/P_Striker_A.act")
  PedSetActionTree(Bully32, "/Global/P_Striker_A", "Act/Anim/P_Striker_A.act")
  PedSetActionTree(Bully34, "/Global/P_Striker_A", "Act/Anim/P_Striker_A.act")
  PedSetActionTree(Bully35, "/Global/P_Striker_A", "Act/Anim/P_Striker_A.act")
 
  PedAttackPlayer(Bully31, gPlayer,1)
  PedAttackPlayer(Bully32, gPlayer,1)
  PedAttackPlayer(Bully34, gPlayer,1)
  PedAttackPlayer(Bully35, gPlayer,1)

  PedSetPedToTypeAttitude(Bully31, 13, 0)
  PedSetPedToTypeAttitude(Bully32, 13, 0)
  PedSetPedToTypeAttitude(Bully34, 13, 0)
  PedSetPedToTypeAttitude(Bully35, 13, 0)
 
  Bully46 = PedCreateXYZ(145, -533.0253, -18.0395, 40.5175)
  Bully623 = PedCreateXYZ(146, -533.0253+1, -18.0395+1, 40.5175+1)
 
  CreateThread("main11")
 
  Blip100 = BlipAddXYZ(-533.0253, -18.0395, 40.5175,0)
 
  l_11_90 = false
end

F_TomKnockedOut = function()
  if PedIsDead(Bully14) and l_11_90 == false then
  l_11_90 = true
 
  PedDelete(Bully14)
 
  SoundPlayInteractiveStream("MS_BikeChaseLow.rsm", MUSIC_DEFAULT_VOLUME)
  SoundSetMidIntensityStream("MS_BikeChaseMid.rsm", MUSIC_DEFAULT_VOLUME)
  SoundSetHighIntensityStream("MS_BikeChaseHigh.rsm", MUSIC_DEFAULT_VOLUME)
  Wait(3000)
  SoundPlayInteractiveStream("MS_EpicConfrontationMid.rsm", MUSIC_DEFAULT_VOLUME)
  SoundSetMidIntensityStream("MS_BikeChaseMid.rsm", MUSIC_DEFAULT_VOLUME)
  SoundSetHighIntensityStream("MS_EpicConfrontationHigh.rsm", MUSIC_DEFAULT_VOLUME)
  Wait(3000)
  F_BulliesConfrintation04()
end
  if PedIsDead(Bully14) and l_11_90 == false then
  l_11_90 = true
 
  PedDelete(Bully14)
 
  SoundPlayInteractiveStream("MS_BikeChaseLow.rsm", MUSIC_DEFAULT_VOLUME)
  SoundSetMidIntensityStream("MS_BikeChaseMid.rsm", MUSIC_DEFAULT_VOLUME)
  SoundSetHighIntensityStream("MS_BikeChaseHigh.rsm", MUSIC_DEFAULT_VOLUME)
  Wait(3000)
  SoundPlayInteractiveStream("MS_EpicConfrontationMid.rsm", MUSIC_DEFAULT_VOLUME)
  SoundSetMidIntensityStream("MS_BikeChaseMid.rsm", MUSIC_DEFAULT_VOLUME)
  SoundSetHighIntensityStream("MS_EpicConfrontationHigh.rsm", MUSIC_DEFAULT_VOLUME)
  Wait(3000)
  F_BulliesConfrintation04()
end
end

F_BulliesConfrintation04 = function()
  local x,y = -532,-25
  local r1 = x + 3.5
  local r2 = y + 3.5
  local r3 = x - 3.5
  local r4 = y - 3.5
  repeat
    Wait(0)
  until PedInRectangle(gPlayer,r1,r2,r3,r4)
 
  BlipRemove(Blip100)
 
  TextPrintString("Defeat The Bullies!", 4, 1)
 
  Blip101 = BlipAddXYZ(-541.5520, -27.2601, 40.4227,0)
 
  PedFaceObjectNow(Bully46, gPlayer, 3)
  PedFaceObjectNow(Bully623, gPlayer, 3)
 
  PedAttackPlayer(Bully46, gPlayer,1)
  PedAttackPlayer(Bully623, gPlayer,1)
  PedAttackPlayer(Bully50, gPlayer,1)
 
  PedSetPedToTypeAttitude(Bully46, 13, 0)
  PedSetPedToTypeAttitude(Bully623, 13, 0)
  PedSetPedToTypeAttitude(Bully50, 13, 0)
 
  PedSetDamageTakenMultiplier(Bully46, 3, 0.5)
 
  PlayerSocialDisableActionAgainstPed(Bully46, 35, true)
  PlayerSocialDisableActionAgainstPed(Bully46, 23, true)
  PlayerSocialDisableActionAgainstPed(Bully46, 30, true)
  PlayerSocialDisableActionAgainstPed(Bully46, 29, true)
  PlayerSocialDisableActionAgainstPed(Bully46, 28, true)
 
  gEthanBlip = AddBlipForChar(Bully46, 2, 26, 4)
 
  PedSetHealth(Bully46, 920)
 
  PedShowHealthBar(Bully46, true, "N_ETHAN", true)
 
  SoundPlayInteractiveStreamLocked("MS_TenementsHigh.rsm", MUSIC_DEFAULT_VOLUME)
 
  Bully50 = PedCreateXYZ(102, -533.1600, -28.6016, 40.4863)
  Bully47 = PedCreateXYZ(85, -547.9218, -20.1157, 40.4529)
  Bully51 = PedCreateXYZ(102, -550.3185, -18.1365, 40.4678)
  Bully52 = PedCreateXYZ(146, -543.3803, -18.5298, 40.4648)
 
  l_11_0 = false
end

F_BullySuperAttack2 = function()
if PedIsDead(Bully50) and PedIsDead(Bully623) and l_11_0 == false then
  PedFaceObjectNow(Bully46, gPlayer, 3)
  Wait(2000)
  PlayerSetControl(0)
  PedSetActionNode(Bully46, "/Global/BOSS_Darby/Offense/Special/Dash/Dash", "Act/Anim/BOSS_Darby.act")
  Wait(400)
  PedSetActionNode(Bully46, "/Global/G_Grappler_A/Offense/Short/Strikes/HeavyAttacks/RightHook/Uppercut", "Act/anim/G_Grappler_A.act")
  SoundPlayScriptedSpeechEvent(Bully46, "FIGHT", 0, "large")
  Wait(1500)
  PedSetActionNode(gPlayer, "/Global/2_B/PlayerOnGround/BellyUp", "Act/Conv/2_B.act")
  PedIsPlaying(gPlayer, "/Global/2_B/PlayerOnGround/BellyUp", true)
 
  PedStop(Bully46)
  PedClearObjectives(Bully46)
  PedAddPedToIgnoreList(Bully46, gPlayer)
  PedIgnoreAttacks(Bully46, true)
  PedSetInvulnerable(Bully46, true)
  Wait(2000)
  PedMoveToXYZ(Bully46, 3,  -533.0253, -18.0395, 40.5175)
 
  Bully50 = PedCreateXYZ(102, -540.9907, -32.8057, 40.4923)
  Bully623 = PedCreateXYZ(146, -540.9907+1, -32.8057+1, 40.4923+1)
 
  PedFaceObjectNow(Bully46, gPlayer, 3)
  SoundPlayScriptedSpeechEvent(Bully46, "CALL_FOR_HELP", 0, "large")
 
  PedFaceObjectNow(Bully50, gPlayer, 3)
  PedSetPedToTypeAttitude(Bully50, 13, 0)
  PedFaceObjectNow(Bully623, gPlayer, 3)
  PedSetPedToTypeAttitude(Bully623, 13, 0)
 
  PlayerSetControl(1)
 
  Wait(2000)
 
  PedAttackPlayer(Bully50, gPlayer,1)
  PedAttackPlayer(Bully623, gPlayer,1)
 
  PedSetPedToTypeAttitude(Bully50, 13, 0)
  PedSetPedToTypeAttitude(Bully623, 13, 0)
 
  PedSetInvulnerable(Bully46, false)
  PedRemovePedFromIgnoreList(Bully46, gPlayer)
  PedIgnoreAttacks(Bully46, false)
  SoundPlayScriptedSpeechEvent(Bully46, "FIGHT_INITIATE", 0, "large")
  PedSetPedToTypeAttitude(Bully46, 13, 0)
  PedAttackPlayer(Bully46, gPlayer,1)
 
end
if PedIsDead(Bully50) and PedIsDead(Bully623) and l_11_0 == false then
  PedFaceObjectNow(Bully46, gPlayer, 3)
  Wait(2000)
  PlayerSetControl(0)
  PedSetActionNode(Bully46, "/Global/BOSS_Darby/Offense/Special/Dash/Dash", "Act/Anim/BOSS_Darby.act")
  Wait(400)
  PedSetActionNode(Bully46, "/Global/G_Grappler_A/Offense/Short/Strikes/HeavyAttacks/RightHook/Uppercut", "Act/anim/G_Grappler_A.act")
  SoundPlayScriptedSpeechEvent(Bully46, "FIGHT", 0, "large")
  Wait(1500)
  PedSetActionNode(gPlayer, "/Global/2_B/PlayerOnGround/BellyUp", "Act/Conv/2_B.act")
  PedIsPlaying(gPlayer, "/Global/2_B/PlayerOnGround/BellyUp", true)
 
  PedStop(Bully46)
  PedClearObjectives(Bully46)
  PedAddPedToIgnoreList(Bully46, gPlayer)
  PedIgnoreAttacks(Bully46, true)
  PedSetInvulnerable(Bully46, true)
  Wait(2000)
  PedMoveToXYZ(Bully46, 3,  -533.0253, -18.0395, 40.5175)
 
  Bully50 = PedCreateXYZ(102, -540.9907, -32.8057, 40.4923)
  Bully623 = PedCreateXYZ(146, -540.9907+1, -32.8057+1, 40.4923+1)
 
  PedFaceObjectNow(Bully46, gPlayer, 3)
  SoundPlayScriptedSpeechEvent(Bully46, "CALL_FOR_HELP", 0, "large")
 
  PedFaceObjectNow(Bully50, gPlayer, 3)
  PedSetPedToTypeAttitude(Bully50, 13, 0)
  PedFaceObjectNow(Bully623, gPlayer, 3)
  PedSetPedToTypeAttitude(Bully623, 13, 0)
 
  PlayerSetControl(1)
 
  Wait(2000)
 
  PedAttackPlayer(Bully50, gPlayer,1)
  PedAttackPlayer(Bully623, gPlayer,1)
 
  PedSetPedToTypeAttitude(Bully50, 13, 0)
  PedSetPedToTypeAttitude(Bully623, 13, 0)
 
  PedSetInvulnerable(Bully46, false)
  PedRemovePedFromIgnoreList(Bully46, gPlayer)
  PedIgnoreAttacks(Bully46, false)
  SoundPlayScriptedSpeechEvent(Bully46, "FIGHT_INITIATE", 0, "large")
  PedSetPedToTypeAttitude(Bully46, 13, 0)
  PedAttackPlayer(Bully46, gPlayer,1)
 
end
end

F_BullyFuckingDead2 = function()
if PedIsDead(Bully46) and l_11_0 == false then
l_11_0 = true

F_BulliesConfrintation05()
end
if PedIsDead(Bully46) and l_11_0 == false then
l_11_0 = true

F_BulliesConfrintation05()
end
end

F_BullyBossStyle2 = function()
PlayerSetControl(0)
Wait(1000)
PedSetActionNode(Bully47, "/Global/Nemesis/Offense/Short/Strikes", "Act/anim/Nemesis.act")
SoundPlayScriptedSpeechEvent(Bully47, "FIGHT", 0, "large")
PlayerSetControl(1)
Wait(1000)
PedSetActionNode(Bully47, "/Global/Nemesis/Offense/Short/Strikes/HeavyAttacks/HeavyPunch2", "Act/anim/Nemesis.act")
SoundPlayScriptedSpeechEvent(Bully47, "FIGHT", 0, "large")
Wait(1000)
PedSetActionNode(Bully47, "/Global/Nemesis/Offense/Short/Strikes/LightAttacks/LeftHook/RightCross/HeavyAttacks/SuperUppercut", "Act/anim/Nemesis.act")
SoundPlayScriptedSpeechEvent(Bully47, "FIGHT", 0, "large")
Wait(1000)
PedSetActionNode(Bully47, "/Global/Nemesis/Offense/Short/Strikes/HeavyAttacks/HeavyPunch2", "Act/anim/Nemesis.act")
SoundPlayScriptedSpeechEvent(Bully47, "FIGHT", 0, "large")
Wait(1000)
PedSetActionNode(Bully47, "/Global/BOSS_Russell/Offense/Short", "Act/anim/BOSS_Russell.act")
SoundPlayScriptedSpeechEvent(Bully47, "FIGHT", 0, "large")
Wait(2000)
PedSetActionNode(Bully47, "/Global/BOSS_Russell/Offense/Medium/Strikes/HeavyAttacks", "Act/anim/BOSS_Russell.act")
SoundPlayScriptedSpeechEvent(Bully47, "FIGHT", 0, "large")
Wait(2000)
PedSetActionNode(Bully47, "/Global/BOSS_Russell/Offense/Medium/Strikes/Unblockable/DoubleAxeHandle", "Act/anim/BOSS_Russell.act")
SoundPlayScriptedSpeechEvent(Bully47, "FIGHT", 0, "large")
PlayerSetControl(0)
Wait(2000)
PedSetActionNode(Bully47, "/Global/P_Bif/Offense/Short/Strikes/LightAttacks/JAB/Cross", "Act/anim/P_Bif.act")
SoundPlayScriptedSpeechEvent(Bully47, "FIGHT", 0, "large")
PlayerSetControl(1)
Wait(2000)
PedSetActionNode(Bully47, "/Global/Nemesis/Offense/Medium/Strikes", "Act/anim/Nemesis.act")
SoundPlayScriptedSpeechEvent(Bully47, "FIGHT", 0, "large")
Wait(1000)
PedSetActionNode(Bully47, "/Global/P_Bif/Offense/Short/Strikes/LightAttacks/JAB/Cross", "Act/anim/P_Bif.act")
SoundPlayScriptedSpeechEvent(Bully47, "FIGHT", 0, "large")
Wait(1000)
PedSetActionNode(Bully47, "/Global/BOSS_Darby/Offense/Short/Strikes/Unblockable/HeavyPunchCharge", "Act/anim/BOSS_Darby.act")
SoundPlayScriptedSpeechEvent(Bully47, "FIGHT", 0, "large")
Wait(1000)
PedSetActionNode(Bully47, "/Global/G_Grappler_A/Offense/Short/Strikes/HeavyAttacks/RightHook/Uppercut", "Act/anim/G_Grappler_A.act")
SoundPlayScriptedSpeechEvent(Bully47, "FIGHT", 0, "large")
Wait(1000)
end

F_BulliesConfrintation05 = function()
  local x,y = -541,-27
  local r1 = x + 3.5
  local r2 = y + 3.5
  local r3 = x - 3.5
  local r4 = y - 3.5
  repeat
    Wait(0)
  until PedInRectangle(gPlayer,r1,r2,r3,r4)
 
   BlipRemove(Blip101)
 
  TextPrintString("Defeat The Bullies!", 4, 1)
 
  PedFaceObjectNow(Bully47, gPlayer, 3)
  PedFaceObjectNow(Bully51, gPlayer, 3)
  PedFaceObjectNow(Bully52, gPlayer, 3)
 
  PedAttackPlayer(Bully47, gPlayer,1)
  PedAttackPlayer(Bully51, gPlayer,1)
  PedAttackPlayer(Bully52, gPlayer,1)
 
  PedSetPedToTypeAttitude(Bully47, 13, 0)
  PedSetPedToTypeAttitude(Bully51, 13, 0)
  PedSetPedToTypeAttitude(Bully52, 13, 0)
 
  PedSetDamageTakenMultiplier(Bully47, 3, 0.5)
  PedSetDamageTakenMultiplier(Bully47, 0, 0.5)
 
  PlayerSocialDisableActionAgainstPed(Bully47, 35, true)
  PlayerSocialDisableActionAgainstPed(Bully47, 23, true)
  PlayerSocialDisableActionAgainstPed(Bully47, 30, true)
  PlayerSocialDisableActionAgainstPed(Bully47, 29, true)
  PlayerSocialDisableActionAgainstPed(Bully47, 28, true)
 
  PedSetHealth(Bully47, 680)
 
  gTrentBlip = AddBlipForChar(Bully47, 2, 26, 4)
 
  PedShowHealthBar(Bully47, true, "N_TRENT", true)
 
  SoundPlayInteractiveStreamLocked("MS_BikeFunHigh.rsm", MUSIC_DEFAULT_VOLUME)
 
  Blip102 = BlipAddXYZ(-542.6859, -36.3132, 40.4913,0)
 
  CreateThread("main12")
 
  Bully55 = PedCreateXYZ(102, -547.6255, -44.7669, 40.4983)
  Bully53 = PedCreateXYZ(146, -542.6859, -36.3132, 40.4913)
  Bully54 = PedCreateXYZ(147, -540.9707, -38.6303, 40.5263)
 
  l_11_92 = false
end

F_TrentKnockedOut = function()
  if PedIsDead(Bully47) and l_11_92 == false then
  l_11_92 = true
 
  PedDelete(Bully47)
 
  SoundPlayInteractiveStream("MS_BikeChaseLow.rsm", MUSIC_DEFAULT_VOLUME)
  SoundSetMidIntensityStream("MS_BikeChaseMid.rsm", MUSIC_DEFAULT_VOLUME)
  SoundSetHighIntensityStream("MS_BikeChaseHigh.rsm", MUSIC_DEFAULT_VOLUME)
  Wait(3000)
  SoundPlayInteractiveStream("MS_EpicConfrontationMid.rsm", MUSIC_DEFAULT_VOLUME)
  SoundSetMidIntensityStream("MS_BikeChaseMid.rsm", MUSIC_DEFAULT_VOLUME)
  SoundSetHighIntensityStream("MS_EpicConfrontationHigh.rsm", MUSIC_DEFAULT_VOLUME)
  Wait(3000)
  F_BulliesConfrintation06()
end
  if PedIsDead(Bully47) and l_11_92 == false then
  l_11_92 = true
 
  PedDelete(Bully47)
 
  SoundPlayInteractiveStream("MS_BikeChaseLow.rsm", MUSIC_DEFAULT_VOLUME)
  SoundSetMidIntensityStream("MS_BikeChaseMid.rsm", MUSIC_DEFAULT_VOLUME)
  SoundSetHighIntensityStream("MS_BikeChaseHigh.rsm", MUSIC_DEFAULT_VOLUME)
  Wait(3000)
  SoundPlayInteractiveStream("MS_EpicConfrontationMid.rsm", MUSIC_DEFAULT_VOLUME)
  SoundSetMidIntensityStream("MS_BikeChaseMid.rsm", MUSIC_DEFAULT_VOLUME)
  SoundSetHighIntensityStream("MS_EpicConfrontationHigh.rsm", MUSIC_DEFAULT_VOLUME)
  Wait(3000)
  F_BulliesConfrintation06()
end
end

F_BulliesConfrintation06 = function()
  local x,y = -542,-36
  local r1 = x + 3.5
  local r2 = y + 3.5
  local r3 = x - 3.5
  local r4 = y - 3.5
  repeat
    Wait(0)
  until PedInRectangle(gPlayer,r1,r2,r3,r4)
 
  BlipRemove(Blip102)
 
  PlayerSetControl(0)
 
  TextPrintString("Defeat Troy, Look out for the other bullies!", 4, 1)
 
  PedShowHealthBar(Bully55, true, "N_TROY", true)
 
  PedFaceObjectNow(Bully53, gPlayer, 3)
  PedFaceObjectNow(Bully54, gPlayer, 3)
 
  PedAttackPlayer(Bully55, gPlayer,1)
 
  PedSetPedToTypeAttitude(Bully55, 13, 0)
 
  PedSetHealth(Bully55, 990)
 
  PedSetDamageTakenMultiplier(Bully55, 3, 0.5)
  PedSetDamageTakenMultiplier(Bully55, 0, 0.5)
 
  PlayerSocialDisableActionAgainstPed(Bully55, 35, true)
  PlayerSocialDisableActionAgainstPed(Bully55, 23, true)
  PlayerSocialDisableActionAgainstPed(Bully55, 30, true)
  PlayerSocialDisableActionAgainstPed(Bully55, 29, true)
  PlayerSocialDisableActionAgainstPed(Bully55, 28, true)
 
  PedAttackPlayer(Bully53, gPlayer,2)
  PedAttackPlayer(Bully54, gPlayer,2)
 
  PedSetPedToTypeAttitude(Bully53, 13, 0)
  PedSetPedToTypeAttitude(Bully54, 13, 0)
 
  SoundPlayInteractiveStreamLocked("MS_BikeDay.rsm", MUSIC_DEFAULT_VOLUME)
 
  CreateThread("main13")
 
  Blip103 = BlipAddXYZ(-534.1943359,-40.94366074,40.51479721,0)
 
  F_FinalBossFightDavis()
end

F_BullyBossStyle3 = function()
Wait(1000)
PedSetActionNode(Bully55, "/Global/Nemesis/Offense/Short/Strikes", "Act/anim/Nemesis.act")
SoundPlayScriptedSpeechEvent(Bully55, "FIGHT", 0, "large")
Wait(1000)
PedSetActionNode(Bully55, "/Global/Nemesis/Offense/Short/Strikes/HeavyAttacks/HeavyPunch2", "Act/anim/Nemesis.act")
SoundPlayScriptedSpeechEvent(Bully55, "FIGHT", 0, "large")
Wait(1000)
PedSetActionNode(Bully55, "/Global/Nemesis/Offense/Short/Strikes/LightAttacks/LeftHook/RightCross/HeavyAttacks/SuperUppercut", "Act/anim/Nemesis.act")
SoundPlayScriptedSpeechEvent(Bully55, "FIGHT", 0, "large")
Wait(1000)
PedSetActionNode(Bully55, "/Global/Nemesis/Offense/Short/Strikes/HeavyAttacks/HeavyPunch2", "Act/anim/Nemesis.act")
SoundPlayScriptedSpeechEvent(Bully55, "FIGHT", 0, "large")
Wait(1000)
PedSetActionNode(Bully55, "/Global/BOSS_Russell/Offense/Short", "Act/anim/BOSS_Russell.act")
SoundPlayScriptedSpeechEvent(Bully55, "FIGHT", 0, "large")
Wait(2000)
PedSetActionNode(Bully55, "/Global/BOSS_Russell/Offense/Medium/Strikes/HeavyAttacks", "Act/anim/BOSS_Russell.act")
SoundPlayScriptedSpeechEvent(Bully55, "FIGHT", 0, "large")
Wait(2000)
PedSetActionNode(Bully55, "/Global/BOSS_Russell/Offense/Medium/Strikes/Unblockable/DoubleAxeHandle", "Act/anim/BOSS_Russell.act")
SoundPlayScriptedSpeechEvent(Bully55, "FIGHT", 0, "large")
end

F_FinalBossFightDavis = function()
  local x,y = -534,-40
  local r1 = x + 3.5
  local r2 = y + 3.5
  local r3 = x - 3.5
  local r4 = y - 3.5
  repeat
    Wait(0)
  until PedInRectangle(gPlayer,r1,r2,r3,r4)

  BlipRemove(Blip103)
 
   PlayerSetControl(0)
   
   PedsPrepareConversation(gPlayer,Bully19,1,0)
   PedSetStationary(Bully19,true)
   PedSetInvulnerable(Bully19,true)
   
   CameraSetWidescreen(true)
   
   SoundDisableSpeech_ActionTree()
   
  CameraSetFOV(65)
  Wait(2000)
  CameraSetFOV(40)
  Wait(2000)
  PedSetActionNode(Bully19, "/Global/6_02/FactionLeaderNIS/Preps/Chad01","Act/Conv/6_02.act")
  TextPrintString("Davis: So Jimmy you decided to show up!",3,2)
  Wait(5000)
  PedSetActionNode(gPlayer, "/Global/6_02/FactionLeaderNIS/Preps/Chad01","Act/Conv/6_02.act")
  TextPrintString("Jimmy: Davis give Pete back I am done with this nonsense!",3,2)
  Wait(5000)
  PedSetActionNode(Bully19, "/Global/6_02/FactionLeaderNIS/Preps/Chad01","Act/Conv/6_02.act")
  TextPrintString("Davis: Nah Jimmy, you're such a leader everything is still terrible!",3,2)
  Wait(5000)
  PedSetActionNode(Bully12, "/Global/6_02/FactionLeaderNIS/Preps/Chad01","Act/Conv/6_02.act")
  TextPrintString("Jimmy: I am doing the best I can me and Pete what else do you want!",3,2)
  Wait(2000)
  PedSetActionNode(Bully19, "/Global/6_02/FactionLeaderNIS/Preps/Chad01","Act/Conv/6_02.act")
  TextPrintString("Davis: The school is still garbage, I am gonna rule the school! .",3,2)
  Wait(5000)
  PedSetActionNode(gPlayer, "/Global/6_02/FactionLeaderNIS/Preps/Chad01","Act/Conv/6_02.act")
  TextPrintString("Jimmy: I won't let you, I will always rescue everyone!",3,2)
  Wait(5000)
  PedSetActionNode(Bully19, "/Global/6_02/FactionLeaderNIS/Preps/Chad01","Act/Conv/6_02.act")
  TextPrintString("Davis: Then it's a fight, this ain't no slingshot fight either!",3,2)
  Wait(5000)
  PedSetActionNode(Bully19, "/Global/6_02/FactionLeaderNIS/Preps/Chad01","Act/Conv/6_02.act")
  TextPrintString("Davis: This time I'll put you down with my fist, Russell taught me!",3,2)
   CameraFollowPed(Bully19)
   Wait(6000)
   TextPrintString("Final Boss Fight : Davis", 4, 1)
   Wait(2000)
   TextPrintString("Defeat Davis For the Final Time!", 4, 1)
   Wait(3000)
   TextPrintString("Davis swings are very powerful, Be CAREFUL!", 4, 1)
   
    PedSetStationary(Bully19,false)
   PedSetInvulnerable(Bully19,false)
 
   SoundPlayScriptedSpeechEvent(Bully19, "FIGHT", 0, "large")
   SoundPlayInteractiveStreamLocked("MS_EpicConfrantation_NIS.rsm", MUSIC_DEFAULT_VOLUME)
   Wait(4000)
   SoundPlayInteractiveStreamLocked("MS_EpicConfrontationHighPart2.rsm", MUSIC_DEFAULT_VOLUME)
   SoundPlayScriptedSpeechEvent(Bully19, "FIGHT", 0, "large")
   CameraSetWidescreen(false)
   CameraReset()
   CameraFollowPed(gPlayer)

   PedRemovePedFromIgnoreList(Bully19, gPlayer)
   PedAttackPlayer(Bully19, gPlayer,2)
   PedSetHealth(Bully19, 1600)
   PedShowHealthBar(Bully19, true, "N_Davis", true)
   bHealthBarShown = true
   PedSetActionTree(Bully19, "/Global/Russell_102", "Act/Anim/Russell_102.act")
   PedSetPedToTypeAttitude(Bully19, 13, 0)
   PedSetInfiniteSprint(Bully19, true)
   gDavisBlip = AddBlipForChar(Bully19, 2, 1, 4)
   PedLockTarget(Bully19, gPlayer, 3)
   PlayerSetControl(1)
   
   SoundEnableSpeech_ActionTree()
   
  PedSetDamageTakenMultiplier(Bully19, 3, 0.5)
  PedSetDamageTakenMultiplier(Bully19, 0, 0.5)
 
  PlayerSocialDisableActionAgainstPed(Bully19, 35, true)
  PlayerSocialDisableActionAgainstPed(Bully19, 23, true)
  PlayerSocialDisableActionAgainstPed(Bully19, 30, true)
  PlayerSocialDisableActionAgainstPed(Bully19, 29, true)
  PlayerSocialDisableActionAgainstPed(Bully19, 28, true)
   
   PedSetInvulnerable(Bully19,false)
   
   CreateThread("main8")
   
   l_2_9 = false

end

F_DavisBossStyle = function()
PlayerSetControl(0)
Wait(1000)
PedSetActionNode(Bully19, "/Global/Nemesis/Offense/Short/Strikes", "Act/anim/Nemesis.act")
SoundPlayScriptedSpeechEvent(Bully19, "FIGHT", 0, "large")
PlayerSetControl(1)
Wait(1000)
PedSetActionNode(Bully19, "/Global/J_Melee_A/Offense/Short","act/anim/J_Melee_A.act")
SoundPlayScriptedSpeechEvent(Bully19, "FIGHT", 0, "large")
Wait(1000)
PedSetActionNode(Bully19, "/Global/Russell_102/Offense/Short/Medium/RisingAttacks", "act/anim/Russell_102.act")
SoundPlayScriptedSpeechEvent(Bully19, "FIGHT", 0, "large")
Wait(1000)
PedSetActionNode(Bully19, "/Global/1_03_Davis/Offense/Short/Strikes/HeavyAttacks/SwingPunch/SwingPunch_R", "act/anim/1_03_Davis.act")
SoundPlayScriptedSpeechEvent(Bully19, "FIGHT", 0, "large")
Wait(1000)
PedSetActionNode(Bully19, "/Global/BOSS_Russell/Offense/Short", "Act/anim/BOSS_Russell.act")
SoundPlayScriptedSpeechEvent(Bully19, "FIGHT", 0, "large")
Wait(2000)
PedSetActionNode(Bully19, "/Global/BOSS_Russell/Offense/Medium/Strikes/HeavyAttacks", "Act/anim/BOSS_Russell.act")
SoundPlayScriptedSpeechEvent(Bully19, "FIGHT", 0, "large")
Wait(2000)
PedSetActionNode(Bully19, "/Global/P_Grappler_A/Offense/Medium/Strikes/Kick/TauntKick", "act/anim/P_Grappler_A.act")
SoundPlayScriptedSpeechEvent(Bully19, "FIGHT", 0, "large")
PlayerSetControl(0)
Wait(2000)
PedSetActionNode(Bully19, "/Global/P_Bif/Offense/Special/HeavyAttacks", "act/anim/P_Bif.act" )
SoundPlayScriptedSpeechEvent(Bully19, "FIGHT", 0, "large")
PlayerSetControl(1)
Wait(2000)
PedSetActionNode(Bully19, "/Global/J_Melee_A/Offense/Short/Strikes/LightAttacks/RightHand/LeftHand", "act/anim/J_Melee_A.act" )
SoundPlayScriptedSpeechEvent(Bully19, "FIGHT", 0, "large")
Wait(1000)
PedSetActionNode(Bully19, "/Global/P_Bif/Offense/Short/Strikes/LightAttacks/JAB/Cross", "Act/anim/P_Bif.act")
SoundPlayScriptedSpeechEvent(Bully19, "FIGHT", 0, "large")
Wait(1000)
PedSetActionNode(Bully19, "/Global/J_Grappler_A/Offense/Medium/Strikes/HeavyAttacks/RightPunch/Axehandle", "act/anim/J_Grappler_A.act" )
SoundPlayScriptedSpeechEvent(Bully19, "FIGHT", 0, "large")
Wait(1000)
PedSetActionNode(Bully19, "/Global/J_Mascot/Offense/Medium/Strikes/LightAttacks/WindMill_R/WindMill_L/HeavyAttacks/SwingPunch_R", "act/anim/J_Mascot.act")
SoundPlayScriptedSpeechEvent(Bully19, "FIGHT", 0, "large")
Wait(1000)
end

F_DavisKnockedOut = function()
   if PedIsDead(Bully19) and l_2_9 == false then
   l_2_9 = true
   PedDelete(Bully19)
   SoundPlayInteractiveStreamLocked("MS_EpicConfrontationEnding.rsm", MUSIC_DEFAULT_VOLUME)
   Wait(5000)
   SoundPlayInteractiveStream("MS_EpicConfrontationLow.rsm", MUSIC_DEFAULT_VOLUME)
   SoundSetMidIntensityStream("MS_EpicConfrontationMid.rsm", MUSIC_DEFAULT_VOLUME)
   SoundSetHighIntensityStream("MS_EpicConfrontationHigh.rsm", MUSIC_DEFAULT_VOLUME)
   Wait(3000)
   SoundPlayInteractiveStream("MS_BikeChaseLow.rsm", MUSIC_DEFAULT_VOLUME)
  SoundSetMidIntensityStream("MS_BikeChaseMid.rsm", MUSIC_DEFAULT_VOLUME)
  SoundSetHighIntensityStream("MS_BikeChaseHigh.rsm", MUSIC_DEFAULT_VOLUME)
   PedRecruitAlly(gPlayer, Pete)
   PedGuardPed(Pete, gPlayer)
   gPeteBlip = AddBlipForChar(Pete, 6, 2, 2)
   PedSetInfiniteSprint(Pete, true)
   
   PlayerSetControl(0)
   
   PedsPrepareConversation(gPlayer,Pete,1,0)
   PedSetStationary(Pete,true)
   PedSetInvulnerable(Pete,true)
   
   SoundDisableSpeech_ActionTree()
   
  CameraSetFOV(65)
  Wait(2000)
  CameraSetFOV(40)
  Wait(5000)
  PedSetActionNode(Pete, "/Global/6_02/FactionLeaderNIS/Preps/Chad01","Act/Conv/6_02.act")
  TextPrintString("Pete: Thanks for saving me the school is in complete chaos!",3,2)
  Wait(5000)
  PedSetActionNode(gPlayer, "/Global/6_02/FactionLeaderNIS/Preps/Chad01","Act/Conv/6_02.act")
  TextPrintString("Jimmy: I know, this isn't over between me and the bullies!",3,2)
  Wait(5000)
  PedSetActionNode(Pete, "/Global/6_02/FactionLeaderNIS/Preps/Chad01","Act/Conv/6_02.act")
  TextPrintString("Pete: I know it isn't, you should just take some time and think.",3,2)
  Wait(5000)
  PedSetActionNode(gPlayer, "/Global/6_02/FactionLeaderNIS/Preps/Chad01","Act/Conv/6_02.act")
  TextPrintString("Jimmy: I am done thinking of what to do it is time to take action!",3,2)
  Wait(5000)
  PedSetActionNode(Pete, "/Global/6_02/FactionLeaderNIS/Preps/Chad01","Act/Conv/6_02.act")
  TextPrintString("Pete: By making your view from other students worse being a dictator?! .",3,2)
  Wait(5000)
  PedSetActionNode(gPlayer, "/Global/6_02/FactionLeaderNIS/Preps/Chad01","Act/Conv/6_02.act")
  TextPrintString("Jimmy: What else am I supposed to do be nice I gotta keep order!",3,2)
  Wait(5000)
  PedSetActionNode(Pete, "/Global/6_02/FactionLeaderNIS/Preps/Chad01","Act/Conv/6_02.act")
  TextPrintString("Pete: Maybe force isn't the best way to do it all the time try different methods!",3,2)
  Wait(5000)
  PedSetActionNode(gPlayer, "/Global/6_02/FactionLeaderNIS/Preps/Chad01","Act/Conv/6_02.act")
  TextPrintString("Jimmy: I never doubt your advice Pete, I will try different methods.",3,2)
  Wait(5000)
  PedSetActionNode(Pete, "/Global/6_02/FactionLeaderNIS/Preps/Chad01","Act/Conv/6_02.act")
  TextPrintString("Pete: Good!, now let's get out of here!",3,2)
  Wait(5000)
  PedSetActionNode(gPlayer, "/Global/6_02/FactionLeaderNIS/Preps/Chad01","Act/Conv/6_02.act")
  TextPrintString("Jimmy: Yeah this place is brining back unwanted memories heh.",3,2)
 
  PedSetStationary(Pete,false)
  PedSetInvulnerable(Pete,false)
 CameraReset()
  CameraSetWidescreen(false)
 
  SoundEnableSpeech_ActionTree()
 
  SoundPlayInteractiveStream("MS_RunningLow02.rsm", 0.5)
  SoundSetMidIntensityStream("MS_RunningMid.rsm", 0.60000002384186)
  SoundSetHighIntensityStream("MS_SearchingHigh.rsm", 0.60000002384186)
 
  PlayerSetControl(1)
 
  Blip1024 = BlipAddXYZ(211.1745, -74.4785, 8.6105,0)
  F_PeteIsRescued()
end

   if PedIsDead(Bully19) and l_2_9 == false then
   l_2_9 = true
   PedDelete(Bully19)
   SoundPlayInteractiveStreamLocked("MS_EpicConfrontationEnding.rsm", MUSIC_DEFAULT_VOLUME)
   Wait(5000)
   SoundPlayInteractiveStream("MS_EpicConfrontationLow.rsm", MUSIC_DEFAULT_VOLUME)
   SoundSetMidIntensityStream("MS_EpicConfrontationMid.rsm", MUSIC_DEFAULT_VOLUME)
   SoundSetHighIntensityStream("MS_EpicConfrontationHigh.rsm", MUSIC_DEFAULT_VOLUME)
   Wait(3000)
   SoundPlayInteractiveStream("MS_BikeChaseLow.rsm", MUSIC_DEFAULT_VOLUME)
  SoundSetMidIntensityStream("MS_BikeChaseMid.rsm", MUSIC_DEFAULT_VOLUME)
  SoundSetHighIntensityStream("MS_BikeChaseHigh.rsm", MUSIC_DEFAULT_VOLUME)
   PedRecruitAlly(gPlayer, Pete)
   PedGuardPed(Pete, gPlayer)
   gPeteBlip = AddBlipForChar(Pete, 6, 2, 2)
   PedSetInfiniteSprint(Pete, true)
   
   PlayerSetControl(0)
   
   PedsPrepareConversation(gPlayer,Pete,1,0)
   PedSetStationary(Pete,true)
   PedSetInvulnerable(Pete,true)
   
   SoundDisableSpeech_ActionTree()
   
  CameraSetFOV(65)
  Wait(2000)
  CameraSetFOV(40)
  Wait(5000)
  PedSetActionNode(Pete, "/Global/6_02/FactionLeaderNIS/Preps/Chad01","Act/Conv/6_02.act")
  TextPrintString("Pete: Thanks for saving me the school is in complete chaos!",3,2)
  Wait(5000)
  PedSetActionNode(gPlayer, "/Global/6_02/FactionLeaderNIS/Preps/Chad01","Act/Conv/6_02.act")
  TextPrintString("Jimmy: I know, this isn't over between me and the bullies!",3,2)
  Wait(5000)
  PedSetActionNode(Pete, "/Global/6_02/FactionLeaderNIS/Preps/Chad01","Act/Conv/6_02.act")
  TextPrintString("Pete: I know it isn't, you should just take some time and think.",3,2)
  Wait(5000)
  PedSetActionNode(gPlayer, "/Global/6_02/FactionLeaderNIS/Preps/Chad01","Act/Conv/6_02.act")
  TextPrintString("Jimmy: I am done thinking of what to do it is time to take action!",3,2)
  Wait(5000)
  PedSetActionNode(Pete, "/Global/6_02/FactionLeaderNIS/Preps/Chad01","Act/Conv/6_02.act")
  TextPrintString("Pete: By making your view from other students worse being a dictator?! .",3,2)
  Wait(5000)
  PedSetActionNode(gPlayer, "/Global/6_02/FactionLeaderNIS/Preps/Chad01","Act/Conv/6_02.act")
  TextPrintString("Jimmy: What else am I supposed to do be nice I gotta keep order!",3,2)
  Wait(5000)
  PedSetActionNode(Pete, "/Global/6_02/FactionLeaderNIS/Preps/Chad01","Act/Conv/6_02.act")
  TextPrintString("Pete: Maybe force isn't the best way to do it all the time try different methods!",3,2)
  Wait(5000)
  PedSetActionNode(gPlayer, "/Global/6_02/FactionLeaderNIS/Preps/Chad01","Act/Conv/6_02.act")
  TextPrintString("Jimmy: I never doubt your advice Pete, I will try different methods.",3,2)
  Wait(5000)
  PedSetActionNode(Pete, "/Global/6_02/FactionLeaderNIS/Preps/Chad01","Act/Conv/6_02.act")
  TextPrintString("Pete: Good!, now let's get out of here!",3,2)
  Wait(5000)
  PedSetActionNode(gPlayer, "/Global/6_02/FactionLeaderNIS/Preps/Chad01","Act/Conv/6_02.act")
  TextPrintString("Jimmy: Yeah this place is brining back unwanted memories heh.",3,2)
 
  PedSetStationary(Pete,false)
  PedSetInvulnerable(Pete,false)
  CameraReset()
  CameraSetWidescreen(false)
 
  SoundEnableSpeech_ActionTree()
 
  SoundPlayInteractiveStream("MS_RunningLow02.rsm", 0.5)
  SoundSetMidIntensityStream("MS_RunningMid.rsm", 0.60000002384186)
  SoundSetHighIntensityStream("MS_SearchingHigh.rsm", 0.60000002384186)
 
  PlayerSetControl(1)
 
  Blip1024 = BlipAddXYZ(211.1745, -74.4785, 8.6105,0)
  F_PeteIsRescued()
end
end

F_PeteIsRescued = function()
  local x,y = 211,-74
  local r1 = x + 3.5
  local r2 = y + 3.5
  local r3 = x - 3.5
  local r4 = y - 3.5
  repeat
    Wait(0)
  until PedInRectangle(gPlayer,r1,r2,r3,r4)
 
  BlipRemove(Blip1024)
 
     PlayerSetControl(0)
   
   PedsPrepareConversation(gPlayer,Pete,1,0)
   PedSetStationary(Pete,true)
   PedSetInvulnerable(Pete,true)
   
   CameraSetWidescreen(true)
   
  CameraSetFOV(65)
  Wait(2000)
  CameraSetFOV(40)
  Wait(5000)
  PedSetActionNode(Pete, "/Global/6_02/FactionLeaderNIS/Preps/Chad01","Act/Conv/6_02.act")
  TextPrintString("Pete: Alright later Jimmy thanks for rescuing me!",3,2)
  Wait(5000)
  PedSetActionNode(gPlayer, "/Global/6_02/FactionLeaderNIS/Preps/Chad01","Act/Conv/6_02.act")
  TextPrintString("Jimmy: Okay later Pete, I'm gonna get some sleep!",3,2)
  Wait(3000)
  PedSetActionNode(Pete, "/Global/6_02/FactionLeaderNIS/Preps/Chad01","Act/Conv/6_02.act")
  TextPrintString("Pete: Alright later Jimmy.",3,2)
 
  PedSetStationary(Pete,false)
  PedSetInvulnerable(Pete,false)

MissionSucceed(true, false, false)
SoundPlayMissionEndMusic(true, 8)
CameraSetWidescreen(true) 
Wait(1000)
CameraFade(700, 0)
AreaTransitionXYZ(14, -501.4, 316.11, 31.5)
Wait(500)
CameraAllowChange(true)
SoundSetAudioFocusPlayer()
CameraReturnToPlayer()
CameraReset()
CameraSetWidescreen(false)
PlayerSetControl(1)
SoundEnableSpeech_ActionTree()
ClockSet(18, 0)
end
 
F_PeteKnockedOut = function()
if PedIsDead(Pete) and l_2_8 == false then
 l_2_8 = true
 CameraSetWidescreen(true) 
  TextPrintString("You Failed Pete!", 4, 1)
  Wait(2000)
  PedClearObjectives(Bully19)
  PedClearObjectives(Bully01)
  PedClearObjectives(Bully02)
  PedClearObjectives(Bully03)
  PedClearObjectives(Bully04)
  PedClearObjectives(Bully05)
  PedClearObjectives(Bully06)
  PedClearObjectives(Bully07)
  PedClearObjectives(Bully08)
  PedClearObjectives(Bully09)
  PedClearObjectives(Bully10)
  PedClearObjectives(Bully11)
  PedClearObjectives(Bully13)
  PedClearObjectives(Bully12)
  PedClearObjectives(Bully14)
  PedClearObjectives(Bully17)
  PedClearObjectives(Bully23)
 
  PedDelete(Bully19)
  PedDelete(Bully01)
  PedDelete(Bully02)
  PedDelete(Bully03)
  PedDelete(Bully04)
  PedDelete(Bully05)
  PedDelete(Bully06)
  PedDelete(Bully07)
  PedDelete(Bully08)
  PedDelete(Bully09)
  PedDelete(Bully10)
  PedDelete(Bully11)
  PedDelete(Bully13)
  PedDelete(Bully12)
  PedDelete(Bully14)
  PedDelete(Bully17)
  PedDelete(Bully23)
 
  AreaTransitionXYZ(14, -502.2488, 318.8277, 31.4111)
 
  MissionFail(false, true, "RACING_L_NOBIKE")
  TextClear()
 
  PlayerSetHealth(10)
  PlayerSetControl(0)
  Wait(4000)
 
  PlayerSetControl(1)
   
  SoundPlayMissionEndMusic(false, 8)
  SetFactionRespect(11, 20)
  Wait(500)
  CameraFade(700, 0)
  CameraSetWidescreen(false)
 
end
if PedIsDead(Pete) and l_2_8 == false then
 l_2_8 = true
 CameraSetWidescreen(true) 
  TextPrintString("You Failed Pete!", 4, 1)
  Wait(2000)
  PedClearObjectives(Bully19)
  PedClearObjectives(Bully01)
  PedClearObjectives(Bully02)
  PedClearObjectives(Bully03)
  PedClearObjectives(Bully04)
  PedClearObjectives(Bully05)
  PedClearObjectives(Bully06)
  PedClearObjectives(Bully07)
  PedClearObjectives(Bully08)
  PedClearObjectives(Bully09)
  PedClearObjectives(Bully10)
  PedClearObjectives(Bully11)
  PedClearObjectives(Bully13)
  PedClearObjectives(Bully12)
  PedClearObjectives(Bully14)
  PedClearObjectives(Bully17)
  PedClearObjectives(Bully23)
 
  PedDelete(Bully19)
  PedDelete(Bully01)
  PedDelete(Bully02)
  PedDelete(Bully03)
  PedDelete(Bully04)
  PedDelete(Bully05)
  PedDelete(Bully06)
  PedDelete(Bully07)
  PedDelete(Bully08)
  PedDelete(Bully09)
  PedDelete(Bully10)
  PedDelete(Bully11)
  PedDelete(Bully13)
  PedDelete(Bully12)
  PedDelete(Bully14)
  PedDelete(Bully17)
  PedDelete(Bully23)

 AreaTransitionXYZ(14, -502.2488, 318.8277, 31.4111)

  MissionFail(false, true, "RACING_L_NOBIKE")
  TextClear()
 
  PlayerSetHealth(10)
  PlayerSetControl(0)
  Wait(4000)
 
  PlayerSetControl(1)
   
  SoundPlayMissionEndMusic(false, 8)
  SetFactionRespect(11, 20)
  Wait(500)
  CameraFade(700, 0)
  CameraSetWidescreen(false)
end
end

23
Mod Releases / Pete's Missing Custom Mission Beta - Open Source
« on: August 03, 2015, 12:51:36 PM »
I am laughing out loud at your hysterical statement!  The original script I created for my mission it is very old and outdated. This was when I first started scripting missions like two years ago didn't really know how any of the codes and such worked, looks like a five year old made it.  :laugh: (Newbie Type Essence) :ninja: Not a newbie no more bro. 8)

Code: [Select]
ImportScript("\\Library\\LibTable.lua") -- imports the LibTable library
ImportScript("\\Library\\LibPed.lua") -- imports the LibPed library
local l_0_0 = false
 
MissionSetup = function()
  local l_1_0 = 270 -- X coords
  local l_1_1 = -110 -- Y coords
  local l_1_2 = 6.4000000953674 -- Z coords
 
  PlayerSetHealth(200) -- gives the player 10000 health
  AreaTransitionXYZ(0, l_1_0, l_1_1, l_1_2)
  PickupCreateXYZ(388, l_1_0, l_1_1, l_1_2)
 
  SoundPlayInteractiveStream("MS_BikeChaseLow.rsm", MUSIC_DEFAULT_VOLUME)
  SoundSetMidIntensityStream("MS_BikeFastMid.rsm", MUSIC_DEFAULT_VOLUME)
  SoundSetHighIntensityStream("MS_BikeChaseHigh.rsm", MUSIC_DEFAULT_VOLUME)
  DisablePunishmentSystem(true)
 
  Wait(10000) -- Waits 20 Seconds
  TextPrintString("By: LostInSpace Aka AlphaTECH", 4, 1) -- Author name(s) goes here
  Wait(10000) -- Waits 20 Seconds
  TextPrintString("Find the bullies throughout the Tenements!", 4, 1)
  Wait(10000) -- Waits 20 Seconds
  TextPrintString("The Bullies have stolen Pete's stuff find the bullies and retrive the items!", 4, 1)

  TextPrintString("Find the first two bullies and fight them!", 4, 1)
  Bully01 = PedCreateXYZ(146,  -550.9371948, -36.46917725, 31.0114212)
  Bully17 = PedCreateXYZ(147,  -550.9371948+4, -36.46917725+4, 31.011421+4)
  Bully02 = PedCreateXYZ(147,  -543.9728394, -19.82579613, 31.02360916)
  PedSetPedToTypeAttitude(Bully01, 13, 0)
  PedSetPedToTypeAttitude(Bully02, 13, 0)
  PedSetPedToTypeAttitude(Bully17, 13, 0)
 
  PickupCreateXYZ(398, -543.9728394, -19.82579613, 31.02360916)
  PickupCreateXYZ(363, -541.927002, -22.1205101, 31.02838898)
  PickupCreateXYZ(370, -541.927002, -22.1205101, 31.02838898)
  PickupCreateXYZ(398, -514.310791, -35.47680283, 35.01113129)
  PickupCreateXYZ(398, -512.0600586, -47.42821503, 35.73261261)
  PickupCreateXYZ(398, -517.3728638, -51.74479675, 35.71253204)
  PickupCreateXYZ(398, -548.6695557, -43.94956589, 35.74840164)
 
  Wait(30000) -- Waits 30 Seconds
  TextPrintString("Check all the rooms to see if any bullies are in them", 4, 1)
  Wait(30000) -- Waits 30 Seconds
  TextPrintString("If you do not find all Pete's items you lose!", 4, 1)
  Bully03 = PedCreateXYZ(121, -541.927002, -22.1205101, 31.02838898)
  Bully04 = PedCreateXYZ(146, -534.1452026, -21.4380722, 31.0114212)
  Bully05 = PedCreateXYZ(147, -514.2109375, -17.31479454, 31.0114212)
  Bully06 = PedCreateXYZ(121, -518.383667, -17.82973862, 31.01142311)
  Bully07 = PedCreateXYZ(85, -512.6098022, -43.0886879, 31.0114193)
  Bully08 = PedCreateXYZ(102, -515.1792603, -33.03131485, 35.46273422)
  Bully09 = PedCreateXYZ(146, -514.310791, -35.47680283, 35.01113129)
  Bully10 = PedCreateXYZ(85, -512.0600586, -47.42821503, 35.73261261)
  Bully11 = PedCreateXYZ(121, -517.3728638, -51.74479675, 35.71253204)
  PedSetPedToTypeAttitude(Bully03, 13, 0)
  PedSetPedToTypeAttitude(Bully04, 13, 0)
  PedSetPedToTypeAttitude(Bully05, 13, 0)
  PedSetPedToTypeAttitude(Bully06, 13, 0)
  PedSetPedToTypeAttitude(Bully07, 13, 0)
  PedSetPedToTypeAttitude(Bully08, 13, 0)
  PedSetPedToTypeAttitude(Bully09, 13, 0)
  PedSetPedToTypeAttitude(Bully10, 13, 0)
  PedSetPedToTypeAttitude(Bully11, 13, 0)
 
 
 

 

  Wait(90000) -- Waits 90 Seconds
  TextPrintString("Head upstairs", 4, 1)
  Bully12 = PedCreateXYZ(146, -548.6695557, -43.94956589, 35.74840164)
  Bully13 = PedCreateXYZ(102, -544.7006836, -34.19110489, 35.73597336)
  PedSetPedToTypeAttitude(Bully13, 13, 0)
  PedSetPedToTypeAttitude(Bully12, 13, 0)
 



  Wait(90000) -- Waits 90 Minutes
  TextPrintString("Mini Boss Fight : Davis Health 675%", 4, 1)
  Bully14 = PedCreateXYZ(99, -544.7495117, -30.87559319, 35.73596954)
  PedSetAITree(Bully14, "/Global/RusselAI", "Act/AI/AI_RUSSEL_1_B.act")
  gDavisBlip = AddBlipForChar(Bully14, 2, 26, 4)
  PedAttack(Bul1y14, gPlayer,1)
  PedShowHealthBar(Bully14, true, "N_Davis", true)
  bHealthBarShown = true
  PedSetPedToTypeAttitude(Bully14, 13, 0)
  PedSetHealth(Bully14, 675)
  PedSetInfiniteSprint(Bully14, true)
  SoundSetHighIntensityStream("MS_BikeDay.rsm", MUSIC_DEFAULT_VOLUME)

   Bully15 = PedCreateXYZ(147, -536.6812134, -30.2863369, 40.49000931)
   Wait(120000) -- Waits 2 Minutes
   TextPrintString("Mini Boss Fight : Ethan Health 600%", 4, 1)
   Bully16 = PedCreateXYZ(145, -536.7505493, -32.0619278, 40.49129105)
   gDavisBlip = AddBlipForChar(Bully16, 2, 26, 4)
   PedShowHealthBar(Bully16, true, "N_Ethan", true)
   bHealthBarShown = true
   PedSetPedToTypeAttitude(Bully16, 13, 0)
   PedSetPedToTypeAttitude(Bully15, 13, 0)
   PedAttackPlayer(Bully16, gplayer,1)
   PedSetHealth(Bully16, 600)
   PedSetAITree(Bully16, "/Global/AI_EDGAR_5_B", "Act/AI/AI_EDGAR_5_B.act")
   PedSetActionTree(Bully16, "/Global/DO_Edgar", "Act/Anim/DO_Edgar.act")
   PedSetWeapon(Bully16, 342)
   PedSetInfiniteSprint(Bully16, true)
   SoundSetHighIntensityStream("MS_BikeDay.rsm", MUSIC_DEFAULT_VOLUME)

   Wait(120000) -- Waits 2 Minutes
   TextPrintString("Boss Fight : Davis! Health 1000%", 4, 1)
   Wait(5000) -- Waits 5 Seconds
   TextPrintString("Davis swings are a bit powerful, Be CAREFUL!", 4, 1)
   Bully18 = PedCreateXYZ(99, -524.7280884, -40.38653564, 40.48794174)
   PedAttackPlayer(Bully18, gPlayer,1)
   PedSetHealth(Bully18, 1000)
   gDavisBlip = AddBlipForChar(Bully18, 2, 26, 4)
   PedShowHealthBar(Bully18, true, "N_Davis", true)
   bHealthBarShown = true
   PedSetActionTree(Bully18, "/Global/Russell_102", "Act/Anim/Russell_102.act")
   PedSetPedToTypeAttitude(Bully18, 13, 0)
   PedSetInfiniteSprint(Bully18, true)
   PickupCreateXYZ(385, -524.7280884+4, -40.38653564+4, 40.48794174+6)
   PickupCreateXYZ(393, -524.7280884+6, -40.38653564+6, 40.48794174+6)
   SoundSetHighIntensityStream("MS_BikeDay.rsm", MUSIC_DEFAULT_VOLUME)
end

F_MissionSetup = function()
  F_tCatwalkCam()
  F_CatWalk()
  F_SecondThirdFloor()
  CameraFollowPed(gPlayer)
  LoadAnimationGroup("BOXING")
  LoadAnimationGroup("DO_STRIKECOMBO")
  LoadAnimationGroup("1_G1_TheDiary")
  LoadAnimationGroup("NIS_3_05")
  LoadAnimationGroup("Area_Tenements")
  LoadAnimationGroup("N2B Dishonerable")
  LoadAnimationGroup("NIS_2_B")
  LoadAnimationGroup("P_Striker")
  LoadAnimationGroup("P_Grappler")
  LoadAnimationGroup("J_Ranged")
  LoadAnimationGroup("J_Damon")
  LoadAnimationGroup("Straf_Prep")
  LoadAnimationGroup("STRAF_WREST")
  LoadAnimationGroup("B_Striker")
  LoadAnimationGroup("TE_FEMALE")
  LoadAnimationGroup("DO_Striker")
  LoadAnimationGroup("F_Nerds")
  LoadAnimationGroup("N_Striker_B") 
  LoadAnimationGroup("NPC_Adult")
  LoadAnimationGroup("G_Johnny")
  LoadAnimationGroup("F_Girls")
  LoadAnimationGroup("F_Douts")
  LoadAnimationGroup("F_Greas")
  LoadAnimationGroup("LE_ORDERLY")
  LoadAnimationGroup("F_CRAZY")
  LoadAnimationGroup("F_JOCKS")
  LoadAnimationGroup("SNERD_I")
  LoadAnimationGroup("SNERD_S")
  LoadAnimationGroup("Halloween")
  LoadAnimationGroup("F_Adult")
  LoadAnimationGroup("LE_Orderly")
  LoadAnimationGroup("F_Preps")
  LoadAnimationGroup("G_Grappler")
  LoadAnimationGroup("Russell")
  LoadAnimationGroup("NPC_Mascot")
  LoadAnimationGroup("IDLE_JOCK_A")
  LoadAnimationGroup("Earnest")
  LoadAnimationGroup("G_Grappler")
  LoadAnimationGroup("G_Striker")
  LoadAnimationGroup("Nemesis")
  LoadAnimationGroup("N_STRIKER_B") 
  LoadAnimationGroup("Straf_Wrest")
  LoadAnimationGroup("J_Striker")
  LoadAnimationGroup("J_Grappler")
  LoadAnimationGroup("NPC_Principal")
  LoadAnimationGroup("Authority")
  LoadAnimationGroup("C_Wrestling")
end
 
MissionCleanup = function()
  UnLoadAnimationGroup("BOXING")
  UnLoadAnimationGroup("DO_STRIKECOMBO")
  UnLoadAnimationGroup("1_G1_TheDiary")
  UnLoadAnimationGroup("NIS_3_05")
  UnLoadAnimationGroup("Area_Tenements")
  UnLoadAnimationGroup("Russell")
  UnLoadAnimationGroup("N2B Dishonerable")
  UnLoadAnimationGroup("NIS_2_B")
  UnLoadAnimationGroup("P_Striker")
  UnLoadAnimationGroup("P_Grappler")
  UnLoadAnimationGroup("J_Ranged")
  UnLoadAnimationGroup("J_Damon")
  UnLoadAnimationGroup("Straf_Prep")
  UnLoadAnimationGroup("STRAF_WREST")
  UnLoadAnimationGroup("B_Striker")
  UnLoadAnimationGroup("TE_FEMALE") 
  UnLoadAnimationGroup("DO_Striker")
  UnLoadAnimationGroup("F_Nerds")
  UnLoadAnimationGroup("N_Striker_B")
  UnLoadAnimationGroup("NPC_Adult")
  UnLoadAnimationGroup("G_Johnny")
  UnLoadAnimationGroup("F_Girls")
  UnLoadAnimationGroup("F_Douts")
  UnLoadAnimationGroup("F_Greas")
  UnLoadAnimationGroup("LE_ORDERLY")
  UnLoadAnimationGroup("F_CRAZY")
  UnLoadAnimationGroup("F_JOCKS")
  UnLoadAnimationGroup("SNERD_I")
  UnLoadAnimationGroup("SNERD_S")
  UnLoadAnimationGroup("Halloween")
  UnLoadAnimationGroup("F_Adult")
  UnLoadAnimationGroup("LE_Orderly")
  UnLoadAnimationGroup("F_Preps")
  UnLoadAnimationGroup("G_Grappler")
  UnLoadAnimationGroup("NPC_Mascot")
  UnLoadAnimationGroup("IDLE_JOCK_A")
  UnLoadAnimationGroup("Earnest")
  UnLoadAnimationGroup("G_Grappler")
  UnLoadAnimationGroup("G_Striker")
  UnLoadAnimationGroup("Nemesis")
  UnLoadAnimationGroup("N_STRIKER_B")
  UnLoadAnimationGroup("Straf_Wrest")
  UnLoadAnimationGroup("J_Grappler")
  UnLoadAnimationGroup("NPC_Principal")
  UnLoadAnimationGroup("Authority")
  UnLoadAnimationGroup("C_Wrestling")
  collectgarbage()
end -- end statement
 
main = function() -- Main mission function
  repeat
    Wait(0)
  until l_0_0 ~= false
  Wait(3000)
  MissionSucceed()
end

24
Community Stories / Bully 2 : Story Missions
« on: July 30, 2015, 11:13:19 PM »
I made a separate post to add missions.
So here are the chapter 1 missions well some that I thought of. Well for the most part Zoe's story is the one that I thought of first because she was my original character to use.

Zoe's Arc

New Generation Bullies/NGB
Tiny Tabby Northrop- Leader - 6'5 - Looks like Russell.
Tabatha White - 2nd In Command - Davis's Kid - 5'3
Brenda Martin - Clique Member 5'2
Lisa Robinson - Clique Member 5'9
Tammy Gurney - Clique Member 5'6
Trina Northwick - Clique Member 5'3
Emma Miller - Clique Member 5'5
Olivia Martin - Clique Member 5'4
Well they are the N.G.B that bully many kids in the eastside of campus. They hang around the Garage/Autoshop - Which it has updates from Bully. More gates and way more building's built to hold more classes and car's/bikes.

Chapter - 1 Expect the unexpected in New Bullworth
Mission 1 - Introduction/Beginning
Zoe just arrives at bullworth and Jimmy just dropped off James.
Dialouge
Zoe : So this is the school you went to it's enormous.
Jimmy : Yep this is the junk school I went to when I was younger.
Jimmy : You should enjoy most of it but if you have a problem don't be afraid to teach someone some manners.
Zoe : Okay Dad, Why are you always so violent, laughing*.
Jimmy : Because when growing up these back stabbing maniacs always caused me trouble and I garuntee the same asshole's children go here and they behave just like their parents. "Bully old character's reference."
Zoe : Okay sure if I have a problem I'll protect myself.
Jimmy : Also it's a new day and age stay away from those type's of girls.
Zoe : No No, I like boy's dad, jeez never have I thought of that.
Jimmy : That's even worse stay away from that damned westside campus! Err I meam behave yourself.
Zoe : Laughing* Thank's for telling me crazy, I'll be sure to stay um in my books.
Jimmy : Right work first then all the other crap comes second. Okay we're here Zoe hope you have fun, I'll be leaving town for the year for vacation with your mom.
We're only going one state away, Uncle Petey should call me if you have any problems
Zoe : Okay bye Dad and I love you,
kisses Jimmy and Jimmy gives Jimmy a hug.
Jimmy : Oh hey Petey long time no see got kind of tall their don't you think laughing*
Petey : Very funny Jimmy, and everything is going good with Angie.
Jimmy : Yep I wish I could see lil Panna, she was such a tough cute kid not like you though.
Petey : Whatever Jimmy, and Panna is doing fine atop by and see her sometime.
Jimmy : Alright Petey, I'll be back next year see you then and if Zoe has any problema call me first thing!
Petey : Alright later Jimmy.
Zoe and Petey Wave*
Petey : Well hello little Zoe hows the baby doing!? Smiling*
Zoe : I'm not five looks annoyed*, it's going okay altough Dad is as crazy as ever.
Petey : Laughing* Jimmy haa alwaya been the bad kid, kind of like Panna always getting into trouble.
Petety : Well I have to get back to the office, being principal is harder than ever.
Zoe : Don't worry it'll pass soon, I hope I don't get like this with my work.
Petey : Don't worry, you'll be fine just stay away from the bad crowds! The older kids dorm grades 9 - 12 are on the right enter and your room and locker have a name on it. Your outfit is also on your dorm bed, your Dad prepared you well for this laughing*.
Zoe : Okay thanks, see you around Uncle Petey.
Tasks going to the dorm and exploring the school.
Zoe enter's the dorm and is greeted by Panna.
Panna : Well if it isn't Miss goodie two shoes!
Zoe : Panna hi!, I haven't seen you ever since you went to Juvi!
Panna : Yep I finally got out during the start of the school year.
Zoe : Great don't go back, and what're you doing now?
Panna : Well i'm the dorm Prefect, I gotta get back, after I'll show you around, Hey you jackasses stop that fighting before I break your faces!
Zoe laughs and enters her dorm
The player is then prompted to put on a uniform
Panna : So I see you're all dressed up so let's get to the school it's still 7:00am anyway.
Zoe : Okay that'd be fun!
Panna : Let's get to it then.
Your prompted to follow Panna to the school
Panna : So how's Jimmy doing?, I heard he just got out of Juvi to. I saw him their but you know him always busy.
Zoe :Yeah he just got out, he never speaks he isn't like my Dad at all.
Panna :Yep good old Jimmy, hopefully he get's along with his classmates.
Panna and Zoe enter's the school
Panna : Damned young kids stop with that now! Get off of her damnit, Zoe i'll be back sorry.
Zoe : It's fine you go handle your business i'll explore myself.
Player is prompted to explore the school
Tiny Tabby : Hey cough up the money chump!
Zoe : Tiny uhm hi gulps*.
Tiny : Hey Zoe long time no see, sorry thought you were one of those other chumps.
Zoe : Can you take me around Panna had to go handle some stuff.
Tiny : That jerk left you alone, whatever i'll help you Squeek. Ah man used to love that name for you.
Zoe : Laughing* I remeber we used to call you big bertha.
Tiny : Oh god please don't, I just got these loser's to learn my new name.
Prompted to explore school with Tiny
Madelyn : Hey hey, I need help please!
Zoe : What's the problem?
Madelyn : One of the kids stole my books please can you hwlp me?
Zoe : Sure I can be of assistance i'll find them!
Prompted to confront the theif
Aubrey : So I took the books from that loser laughing*.
Zoe : Hey give them back you jerk now!
Tiny : Yeah before I make change!
Aubrey : Uh oh, Riley help!
Riley : You wanna peace of me! Rahhhhhh!
Tiny : Bring it on!
Aubrey : Try and catch me loser laughung*.
Zoe : Hey get back here! Tiny are you okay!
Tiny : Sure I got this prick, take care of the other one!
Prompted to follow Aubrey
Zoe : No where to run to huh?
Aubrey : Shit bring it on dork, watcha wanna uhm do!?
First fight inside the game.
You're prompted a fight tutorial, which has a completey different layout from Bully
Zoe has a four punch hook combo which the player is prompted to do
Aubrey is a preppy and is also a boxer
Aubrey dodges the first four punches
She has a uniqe evade like the B striker preppies from Bully but has a mixture of A/B Striker fighting moves
Aubrey swings back with a two jab combo knocking Zoe back
Zoe get's back up then you're proopted to block her next attack which is a two hook combo
Then a boss health meter appears
You're prompted to defeat Aubrey
Then you're prompted to humiliate her
Zoe : You were a push over huh stupid dork.
Aubrey : Uhhhh, my Dad will sue your stupid ass.
Player is prompted to go back to Madelyn
Madelyn : Thanks for the help, here's an award for your grattitude!
Zoe : Cool and sure someone has to teach bullies a lesson.
Tiny : Alright it's all over now, man that Riley is no joke. I had to throw water in her face just to hide and run away.
Zoe : Crap so she's coming for us!
Riley : You damned, get back here now, i'll make punching bags outta you!
Zoe : Run!
Prompted to hide in a locker or trash can, stall or class room.
Riley : I'll find you bastards soon enough better count on it! Fuck now I gotta use my gym towel.
Player is prompted to explore the school
Tiny : That was close, now let's explore the class rooms.
Player prompted it's getting late and it is 30 mintues to class
Player prompted that it's time for class
Kids talking about Zoe
Teacher/Mrs.Bailey/Science Class
Mrs.Bailey : Okay get to work children.
You unlock a new type of weapon from your first science class the cherry bomb
Prompted to do class work
Class completed/Prompted to do second mission or explore
Spice Girls/New Generation Preppies
Sydney Harrington - Leader
Riley Taylor - Second In Command
Alice Taylor
Julia Guathier
Aubrey Spencer
London Ogilvie
Jasmine Vandervelde
Gabriella/Gabriel Vendome
Elizabeth/Liz Montrose
Alexis/Lexy Morris
Mission 2 - Start of a long and crazy drawn out year
Alice : Laughing* You got beat up by the new girl you need more classes!
Aubrey : Shutup Alice she caught me off guard, we need to teach the fresh bitch a lesson!
Sydney : What's this I hear about fighting? Where the highest breed of nepitism and snobbery we take down these poor illiterate scum.
Sydney : Aubrey how could you be so pathetic in losing to a low class loser.
Alice : Samething I was saying she's weak! She needs more training!
Aubrey : Maybe I do, i'll train way harder and take  down that scum.
Sydney : Liz and Julia find that scum and take her down.
Julia : Ugh I don't want to get my brand new 300$ aquaberry shirt dirtied but whatever.
Liz : Forget your shirt we have to beat that jerk to a pulp!
The school is shown and it has many updates and two new floors.
Zoe : Man this school lunch is garbage!
Liz : So you're Zoe nice to meet you, trash pit.
Julia : Let's just get this over with I don't even want to touch this trash again!
Zoe : Crap, I gotta get the hell outta here!
Player is prompted to run to the nearest hiding placement
Liz : Comeon new scum, don't be a prissy fit.
Julia : Heh she's forgotten her lunch, wait a minute?!
Julia : Got you, you little wench now for some payback!
Prompted with a fight
Defeat Julia and Liz
Panna : Hey you little jerks get away from her now!
Julia : Crap prefect, lucky bitch will get you next time you wench!
Liz : Yeah will get you nasty trash!
Panna : Hey get back here now, and face your punishment!
Zoe : Ugh god this school really is crazy!
Lexy : So you think you're going to get off that easily? Here's something special for you scum turd!
*Rotten Egg Splatter*
Zoe : Ugh you bastard, i'm gonna kick your spice preppy ass!
Prompted to chase after Lexy
Lexy : Alright girls purge the new girl with a barrage of egg yolk *laughing*.
Prompted to take cover
Zoe : Crap man using eggs as a weapon what a bunch of stuck up jerks!
Prompted to pickup a trash can cover and protect yourself
Zoe : Perfect now I can run toward them!
London : Ew laughing* Guess after this I have to wash the trash blood off my aquaberry sweater!
Zoe : Bring it on preppy loser!
Prompted to fight London
London is a grappler and uses Grapple A for preppies and Striker B stance and Striker B for a fighting style also.
Well since it's a new game i'll introduce hyper combo's
Hyper combo's and rage mode
Rage Mode - Intracite system that happens during half health, gives the ped a boost,stamina, and power.
Hyper Combo - A chain of combo's that do large amounts of damage.
London is an extremely fast boxer her hyper combo's reduce a large amount of health.
London uses the Rage Mode system and introduces it.
Prompted to grapple her and throw her down.
London : Shit get off me you damn turd!
Zoe : Not until I break your damn face!
Prompted to do ground mounted hit's
Since London is a black belt in jujitsu she can reverse many of your grapples.
Defeat London!
Threw half the fight London can goes into Rage Mode.
Her fighting moves do 40% of damage to the player.
Mostly blocking and evading her moves would work against her.
London Defeated!
Zoe : Good guess you preppy trash aren't all the great!
Lexy : Just because you defeated London doesn't mean anything!
Lexy : Your about to get sent to that blue collar school in the sky!
Lexy is a Melee type of fighter, she uses both Grappler and Striker moves
Lexy also has a finisher move called a death blow which reaches your kidney's kind of like Derby's original boss style.
Lexy Defeated
Prompted to Leave the Harrington House Manor
The Harrington House is updated also with many new rooms and a lot of new boarders which are mostly preppy kids.
Mission Completed/ -10 Preppy Respect

Jimmy's Arc

Mission 3 - Jimmy's return to Bullworth
Jimmy Sr. : Alright Jimmy since you've been in alright of trouble recently I'm only going to tell you this once.
Jimmy Sr. : If I hear any trouble about you during this school year will be sending you to military school.
Jimmy Jr. : I'll be fine dad I'll try and behave myself.
Jimmy Sr. : You better I am tired of dealing with you! I'll make sure to have your teachers call me each month to check up on you.
Jimmy Jr. : Okay can I go now.
Jimmy Sr. : Sure have a good first day son and please stay out of trouble.
Jimmy Jr. : Alright see ya later Dad.
Prompted to walk to the new main building
Grease - Similar to Outsiders
Tony Vincent
Larry Romano Jr.
Jason Williams
Dominic Pucino
Christian Medici
Logan De Luca
Eli Lombardi
Noah Mancini
Nathan Esposito

Noah : Hey new stuff you need some help?
Noah : Oh crap your Jimmy's kid right, right nice to uh meet ya.
Jimmy Jr. : Yeah and what's up, can you tell me where the main campus is?
Noah : No problem I could even walk you their if it isn't a problem.
Jimmy Jr. : Sure guess this school isn't all bad like my Dad says.
Noah : Oh trust me it's worse than your dad says.
Prompted to walk with Noah to the School
Noah : It's Tony so glad to see him.
Tony : Noah my man glad to see ya, who in the hell is this?
Noah : It's Jimmy's kid he just got to the main campus.
Tony : Great who the hell runs this school isn't a secretary supposed to meet the students.
Noah : Guess things have changed now, due to the short staffing.
Tony : Short staffing my ass, of course that slut is probably givin the new headmaster a clean nose.
Noah : Could be that also guess will go and see.
Mrs.Cleo : *Mhhm* Uhm what are you students doing in the main office.
Noah : We're here with the new kid Mrs.Cleo as I can see you guys are busy.
Mrs.Cleo : Mind your business Noah, Ah yes young Hopkins nice to see you.
Jimmy : Why do I have a feeling of Deja vu?
Prompted to go to the boys dorm

Preppies
Darby Harrington Jr.
Jaiden Morris
Cliff Taylor
Lewis Montrose
Mathew Vendome
Tevin Vandervelde
Stewart Ogilvie
Vincent Spencer
Wendell Gauthier

Prefects East Dormitory
Alexander The Fourth - Alex Ludwig
Bruce Banner
Alton Braxton
Andy Newton
Charlie Cillian
Calvin Cillian
Brydon Carter
Johnny Vincent The Second - Johnny's first son, with Lola.
Tony Vincent second son, With Mandy

Tony : Shit I'm going to be late for my class can't let my big bro see me gotta go.
Noah : Aw man and the fun just started, see ya dude.
Jimmy : See ya tony.
Derby's youngest son is introduced
Darby : Hello poor scum how pleasurable of a time it is to meet you.
Noah : Look you stuck up rich jerk just let us threw.
Darby : Boy's I think we have a bad mouthed one here let's teach him some as my Daddy likes to say manners. *Laughter*
Stewart : You disgust me you nasty turd!
Fight Threw the Tutorial
Defeat The Preppy
Alexander : Hey you boy's better get to your classes this instant!
Darby : Run!
Noah : Shit Prefect just chill out since your new.
Alexander : You boy who might you be?
Jimmy : My names Jimmy uhh nice'd to meet you.
Alexander : Ah your Hopkins boy, just because your his son doesn't mean you can engage in foolishness now get to your dorm.
Jimmy : Sure I'll be right on my way.
Enter New Dorm Prompt
The boys dorm has four main floors since the addition to a lot of new students.
Noah : Alright so since your new here I guess I show you to your dorm room.
Prompted to go to your dorm.
Visual - On the second floor near the bathroom hearing screaming.
Jaiden : Yes yes, give that loser a nice bath from his stinky smell.

Nerds
Dexter Jones
Eden Papadopoulos
Elliot Trudeau
Ezekiel Pasteur
Gavin Johnson
Fergus Anderson
Francis Johnson
Hubert O'Connor
Harry Carlson

Dexter : No please don't do it I don't like the smell of that no!
Jimmy : Hey you jerk leave him alone!
Jaiden : Oh and what might you do about it?
Jimmy : Aren't you to rich for these types of things or is your money as tight as your ass?
Jaiden : You disrespectful little blue collar scum!
Jaiden : I'll beat you into one of us!
Defeat Jaiden
Jaiden is a boxer like all the other preppies but he uses a southpaw style
He shifts as he swings similar to the original P_Grapple_A style
Jaiden Defeated
Noah : Holy crap you beat up the hall monitor, ah man your in big trouble!
Jimmy : He shouldn't have been such a heartless jerk!
Dexter : Thanks oh thank you if you ever need any assistance in your work just tell me or my brethren.
Jimmy : Sure cool.
Prompted to pick up the dormitory keys from the hall monitor
Johnny : Whoa x3, are you kids serious even though that hall monitor is jerk you can't do that.
Johnny : I don't wanna see this type of behavior again now give me the keys and I'll take your to your dorms.
Jimmy : Wait I forgot to tell you I'm new I just got assigned my dorm room.
Johnny : Wait your Jimmy's kid right, ah man my Dad can't stop talkin about all the wild stuff they used to do.
Cut-scene showing new boys dorm
Noah : Alright so this is the dump, I hope you enjoy it ha!
Jimmy : Man it is kind of a dump wish they'd clean up the place!
Noah : Well dealing with bullworth it's usually gone to stay that way.
Jimmy : Alright I'll change into my new uniform.
Noah : Great then after that I'll show you around the dump.
Prompted to get dressed Time (8:00am)
Prompted class times (Math - 9:00am)
                                    (Science - 9:40am)
                                     (Language - 10:30am)
                                     (Lunch - 11:30am)
                                     (History - 12:45pm)
                                     (Music - 1:40pm)
                                      (Gym - 2:10pm
                                       (School Closing - 3:00pm)
Mission Completed/Preppy Respect -10

Mission 4 - Getting to Know Your School
Prompted to go to the school from your dorm. (8:00am) One hour before classes start, don't be late or theirs hell to pay!

Tony : Alright Nathan did you get the joke candy?
Nathan : Yeah sure aw man they look so tasty!
Tony : Look their for pranking not for eating got it!
Nathan : Okay x2 got it!
Jimmy : Hey what are you guys up to?
Tony : Where just gettin' ready to pull a prank on the preps you in?
Jimmy : Yeah sure, what're you guys gonna do?
Tony : Where gonna give those losers some joke candy.
Tony : Go into the school and give those losers the joke candy.
Jimmy : How am I supposed to do that?
Tony : Their rich jerks, ah Nathan go wit' em.
Nathan : Alright comeon and hey my names Nathan nice to meet ya.
Enter's the School - The Eastside Campus is very large and updated blah blah you get the idea
Nathan : Alright here's how it goes, make a big fuss about the candy then they'll take it.
Jimmy : Okay doesn't seem to hard.
Jimmy : Aw man this candy tastes so awesome to bad I'm the only one who can afford it!
Jaiden : What?!, how did you get candy from Al's Candy your to poor give it to me, Now!
Jimmy : Okay sure please don't hurt me!
Jaiden : I do what I want let's go boys!
*Laughter*
Nathan : Alright you got em buncha stuck up idiots.
Jimmy : So what next?
Nathan : Trust me there is a ton of things to do in this school.
Sammy Balton - Young Kid
Sammy : Hey I am in need of assistance!
Jimmy : Sure what's the problem?
Sammy : The preps took my lunch money and they wont give it back!
Nathan : Sure x2 we can get em back but for a fee.
Sammy : How much are we talking I only have ten bucks.
Jimmy : I'd say 6 bucks, I hear lunch is only 3.50.
Sammy : Okay sure, they're downstairs near the old water fountains next to the bathroom.
Jimmy : Alright let's go!
Prompted to go to the fountains
Mathew : Do you know the little jerk told me I'd better give it back.
Mathew : What a disrespectful little savage, how dare how talk to me that way.
Lewis : These new children need discipline from their savage ways I'd say we teach them!
Jimmy : Hey are you the jerks that stole that kids money time to pay up you rich weak bullies.
Mathew : Yes we are but you are going to have to catch us first run!
Prompted to chase the two preppies
Mathew : Wendell throw the marbles and get them down!
Wendell : Heh this is going to be to easy!
Jimmy and Nathan : Woah!
Jimmy : Dammit, Nathan comeon we cant let them get to the prefects!
Jimmy : Come're you scum turd!
Mathew : Get your filthy scum hands off me!
Nathan : Get ready for a ton pain!
Prompted to fight Mathew and Lewis
Lewis : Get your filthy hands off of him now!
Mathew and Lewis Defeated
Prompted to return to Sam
Sammy : Ah thanks gentleman your to kind!
Jimmy : Yeah x2 Now pay up.
Sammy : Sure here you!
Prompted for money hud - You just got 3.50$, money is added each time you steal, work, or find it.
Jimmy : That was awesome, anything else to do?















25
Bully Modding Archives / Bully : Clique/Gang Mod
« on: July 28, 2015, 11:23:57 PM »
Well I was thinking about my post for my Bully 2 story and decided to add a little mod for it which just allows you to create a clique in free roam. You will be able to protect your territory and do all sorts of shannanigings.

Kind of like the warriors once you create your clique you get an automatic hatred of each clique and have to do different tasks to gain karma or respect from your clique members. They will guard and protect you when they see you attacked or bullied.

In this mod ypu can have gang war's and whatever you want. I will script many games and things to do. You have to either run a clique or just be part of it as a member.

When you're a clique member your leader will asaign you different task like stealing bikes or spreading your gang name across the city. It will be a pretty interesting mod to make and it will be started soon just explaining the concept a list of things I suggested will be below add your own idea's and I may add them to the mod. I will also add my King Of The Hill Mod which set's you to fight different cliques members on a rooftop and once their thrown off you get points.

List Of Addon's
1.King Of The Hill
2.Clique Task
3.Gang Fight's
4.Protecting Territory
5.Taking/Invading Territory - Similiar to Jimmy taking location's.
6.Karma
7.Bike Racing
8.Leader Task's
Much more will be added, come up with idea's and I will add them. I thought of this Bully adaption for a while now and finally decided to make it. You will also be able to get your clique member's to attack or call them back. You will be able to control all member's of the clique by switching threw them. Get ready for a new big type mod I guess should be fun.

26
Bully Modding Archives / Custom Mission Scripting - The Basic's
« on: July 28, 2015, 01:18:43 PM »
Well we all know how I made a custom mission script as a source to use for making missions right? Well I will be doing a little Step by step tutorial on setting certain things to work and how to use some props and other types of things ingame. I will explain how to make a regular test mission and how to make a long actual mission. Now here some things we would need in creating a mission, Notepad++ and the Compiler plus img.tool

You can also run your script threw Stimecycle.lur to get it working like a real mission by pressing buttons and having the Stimecylce run your script. This will cover only basic thing's and will be split into many discussions since their is a lot going on when running a mission.

The very first thing is a test mission or test script to see if  everything you have running is working correctly. We would start by doing this,

Code: [Select]
MissionSetup = function()
-- (0) is the area code for the main map, all area codes are placed here.
AreaTransitionXYZ(0, X, Y, Z)

PedSetUniqueModelStatus(2, -1)

SoundPlayInteractiveStream("MS_BikeFunLow.rsm", 0.5)
SoundSetMidIntensityStream("MS_BikeFunMid.rsm", 0.60000002384186)
SoundSetHighIntensityStream("MS_BikeFunHigh.rsm", 0.60000002384186)

TestPed = PedCreateXYZ(PedID,X,Y,Z)

PedSetAmbiet(TestPed,true)

MissionObjective()

end

MissionObjective = function()
  local x,y = X,Y (Created by Daboss, can be used to make a certain instance.)
  local r1 = x + 3.5
  local r2 = y + 3.5
  local r3 = x - 3.5
  local r4 = y - 3.5
  repeat
    Wait(0)
  until PedInRectangle(gPlayer,r1,r2,r3,r4)

TextPrintString("You're playing hide and seek find the Ped!",4,1)
Wait(3000)
TestBlip = BlipAddXYZ(X,Y,Z,0) (0 is the small Yellow X appearing on the map) (The blip's location should always be the same as the objective location not any wear else. If you script the blip in another location you may mess up player's in finding certain things.)
TextPrintString("Follow the X on the map to go to the location!",4,1)
Wait(3000)
MissionObjectiveFinal()
end

MissionObjectiveFinal = function()
  local x,y = X,Y
  local r1 = x + 3.5
  local r2 = y + 3.5
  local r3 = x - 3.5
  local r4 = y - 3.5
  repeat
    Wait(0)
  until PedInRectangle(gPlayer,r1,r2,r3,r4)

BlipRemove(TestBlip)

TextPrintString("Great you've completed the test mission!",4,1)
Wait(3000)

SoundPlayMissionEndMusic(true, 8)
MissionSucceed(true, false, false)
CameraSetWidescreen(true) 
Wait(4000)
CameraFade(500, 0)
AreaTransitionXYZ(14, -501.4, 316.11, 31.5)
Wait(500)
CameraAllowChange(true)
SoundSetAudioFocusPlayer()
CameraReturnToPlayer()
CameraReset()
CameraSetWidescreen(false)
PlayerSetControl(1)

end

F_PlayerFail = function()
if PedIsDead(gPlayer) then
SoundPlayMissionEndMusic(true, 6)
MissionFail(true, false, false)
Wait(4000)
CameraSetWidescreen(true)
CameraFade(700, 0)
AreaTransitionXYZ(14, -501.4, 316.11, 31.5)
Wait(500)
CameraAllowChange(true)
SoundSetAudioFocusPlayer()
CameraReturnToPlayer()
CameraReset()
CameraSetWidescreen(false)
PlayerSetControl(1)
end

F_LoadAnim = function()
  LoadAnimationGroup("Cheer_Cool2")
  LoadAnimationGroup("NPC_Adult")
  LoadAnimationGroup("TSGate")
  LoadAnimationGroup("SCgrdoor")
  LoadAnimationGroup("Sbarels1")
  LoadAnimationGroup("Area_School")
  LoadAnimationGroup("Px_Rail")
  LoadAnimationGroup("DO_Grap")
  LoadAnimationGroup("1_07_SaveBucky")
  LoadAnimationGroup("TSGate")
  LoadAnimationGroup("F_Nerds")
  LoadAnimationGroup("Hang_Jock")
  LoadAnimationGroup("NPC_AggroTaunt")
  LoadAnimationGroup("Hang_Talking")
  LoadAnimationGroup("1_07_Sk8Board")
  Load("Act/Conv/1_07.act")
  LoadActionTree("Act/Props/SBarels1.act")
  LoadActionTree("Act/Props/barrelLad.act")
  LoadActionTree("Act/Conv/1_03.act")
  LoadActionTree("Act/Anim/1_03_Davis.act")
end

F_CleanUpAnim = function() (Not necessary to use the mission will work either way.)
  UnLoadAnimationGroup("Cheer_Cool2")
  UnLoadAnimationGroup("NPC_Adult")
  UnLoadAnimationGroup("TSGate")
  UnLoadAnimationGroup("SCgrdoor")
  UnLoadAnimationGroup("Sbarels1")
  UnLoadAnimationGroup("Area_School")
  UnLoadAnimationGroup("Px_Rail")
  UnLoadAnimationGroup("DO_Grap")
  UnLoadAnimationGroup("1_07_SaveBucky")
  UnLoadAnimationGroup("TSGate")
  UnLoadAnimationGroup("F_Nerds")
  UnLoadAnimationGroup("Hang_Jock")
  UnLoadAnimationGroup("NPC_AggroTaunt")
  UnLoadAnimationGroup("Hang_Talking")
  UnLoadAnimationGroup("1_07_Sk8Board")
  collectgarbage()
end

main = function()
F_LoadAnim()
F_PlayerFail()
repeat
Wait(0)
until not Alive

Okay so this is a basic setup for a test mission, as you can see I created objectives and set the player to find and do certain things. Their were no enemies introduced in this mission because this is just a test mission in finding and returning a ped.

Next is setting up enemies for the player as an objective it is similar to the very first test mission but Rock-Star separated these test missions so I will be doing the same.

Code: [Select]
MissionSetup = function()
-- (0) is the area code for the main map, all area codes are placed here.
AreaTransitionXYZ(0, X, Y, Z)

PedSetUniqueModelStatus(10, -1) (This set's the ped's free roam model to de-spawn so their are no duplicates.
PedSetUniqueModelStatus(11, -1)
PedSetUniqueModelStatus(12, -1)
PedSetUniqueModelStatus(13, -1)

SoundPlayInteractiveStream("MS_BikeFunLow.rsm", 0.5)
SoundSetMidIntensityStream("MS_BikeFunMid.rsm", 0.60000002384186)
SoundSetHighIntensityStream("MS_BikeFunHigh.rsm", 0.60000002384186)

TestPed = PedCreateXYZ(PedID,X,Y,Z)
TestPed2 = PedCreateXYZ(PedID,X,Y,Z)
TestPed3 = PedCreateXYZ(PedID,X,Y,Z)
TestPed4 = PedCreateXYZ(PedID,X,Y,Z)

PedSetAmbiet(TestPed,true)
PedSetAmbiet(TestPed2,true)
PedSetAmbiet(TestPed3,true)
PedSetAmbiet(TestPed4,true)
MissionObjective()

end

MissionObjective = function()
  local x,y = X,Y (Created by Daboss, can be used to make a certain instance.)
  local r1 = x + 3.5
  local r2 = y + 3.5
  local r3 = x - 3.5
  local r4 = y - 3.5
  repeat
    Wait(0)
  until PedInRectangle(gPlayer,r1,r2,r3,r4)

TextPrintString("Find the enemies and defeat them!",4,1)
Wait(3000)
TestBlip = BlipAddXYZ(X,Y,Z,0) (0 is the small Yellow X appearing on the map) (The blip's location should always be the same as the objective location not any wear else. If you script the blip in another location you may mess up player's in finding certain things.)
TextPrintString("Follow the X on the map to go to the location!",4,1)
Wait(3000)
MissionObjective2()
end

MissionObjective2 = function()
  local x,y = X,Y
  local r1 = x + 3.5
  local r2 = y + 3.5
  local r3 = x - 3.5
  local r4 = y - 3.5
  repeat
    Wait(0)
  until PedInRectangle(gPlayer,r1,r2,r3,r4)

BlipRemove(TestBlip)

TextPrintString("Their they are defeat them!",4,1)
Wait(3000)

gTestBlip = AddBlipForChar(TestPed, 2, 26, 4)
gTestBlip2 = AddBlipForChar(TestPed2, 2, 26, 4)
gTestBlip3 = AddBlipForChar(TestPed3, 2, 26, 4)
gTestBlip4 = AddBlipForChar(TestPed4, 2, 26, 4)

PedSetPedToTypeAttitude(TestPed, 13, 0) (Makes the Ped aggressive with the Player and will attack on sight)
PedSetPedToTypeAttitude(TestPed2, 13, 0)
PedSetPedToTypeAttitude(TestPed3, 13, 0)
PedSetPedToTypeAttitude(TestPed4, 13, 0)

PedAttackPlayer(TestPed,gPlayer,3) (Makes the attack on-sight but the ped won't be able to fight the Player if you have 100% with that clique.
PedAttackPlayer(TestPed2, gPlayer,3)
PedAttackPlayer(TestPed3, gPlayer,3)
PedAttackPlayer(TestPed4, gPlayer,3)

end

F_EnemiesDefeated = function()
if PedIsDead(TestPed) and PedIsDead(TestPed2) and PedIsDead(TestPed3) and PedIsDead(TestPed4) then

TextPrintString("You've defeated the test enemies perfect :D!",4,1)
Wait(3000)

SoundPlayMissionEndMusic(true, 8)
MissionSucceed(true, false, false)
CameraSetWidescreen(true) 
Wait(4000)
CameraFade(500, 0)
AreaTransitionXYZ(14, -501.4, 316.11, 31.5)
Wait(500)
CameraAllowChange(true)
SoundSetAudioFocusPlayer()
CameraReturnToPlayer()
CameraReset()
CameraSetWidescreen(false)
PlayerSetControl(1)
end

F_PlayerFail = function()
if PedIsDead(gPlayer) then
SoundPlayMissionEndMusic(true, 6)
MissionFail(true, false, false)
Wait(4000)
CameraSetWidescreen(true)
CameraFade(700, 0)
AreaTransitionXYZ(14, -501.4, 316.11, 31.5)
Wait(500)
CameraAllowChange(true)
SoundSetAudioFocusPlayer()
CameraReturnToPlayer()
CameraReset()
CameraSetWidescreen(false)
PlayerSetControl(1)
end

F_LoadAnim = function()
  LoadAnimationGroup("Cheer_Cool2")
  LoadAnimationGroup("NPC_Adult")
  LoadAnimationGroup("TSGate")
  LoadAnimationGroup("SCgrdoor")
  LoadAnimationGroup("Sbarels1")
  LoadAnimationGroup("Area_School")
  LoadAnimationGroup("Px_Rail")
  LoadAnimationGroup("DO_Grap")
  LoadAnimationGroup("1_07_SaveBucky")
  LoadAnimationGroup("TSGate")
  LoadAnimationGroup("F_Nerds")
  LoadAnimationGroup("Hang_Jock")
  LoadAnimationGroup("NPC_AggroTaunt")
  LoadAnimationGroup("Hang_Talking")
  LoadAnimationGroup("1_07_Sk8Board")
  Load("Act/Conv/1_07.act")
  LoadActionTree("Act/Props/SBarels1.act")
  LoadActionTree("Act/Props/barrelLad.act")
  LoadActionTree("Act/Conv/1_03.act")
  LoadActionTree("Act/Anim/1_03_Davis.act")
end

F_CleanUpAnim = function() (Not necessary to use the mission will work either way.)
  UnLoadAnimationGroup("Cheer_Cool2")
  UnLoadAnimationGroup("NPC_Adult")
  UnLoadAnimationGroup("TSGate")
  UnLoadAnimationGroup("SCgrdoor")
  UnLoadAnimationGroup("Sbarels1")
  UnLoadAnimationGroup("Area_School")
  UnLoadAnimationGroup("Px_Rail")
  UnLoadAnimationGroup("DO_Grap")
  UnLoadAnimationGroup("1_07_SaveBucky")
  UnLoadAnimationGroup("TSGate")
  UnLoadAnimationGroup("F_Nerds")
  UnLoadAnimationGroup("Hang_Jock")
  UnLoadAnimationGroup("NPC_AggroTaunt")
  UnLoadAnimationGroup("Hang_Talking")
  UnLoadAnimationGroup("1_07_Sk8Board")
  collectgarbage()
end

main = function()
F_LoadAnim()
F_EnemiesDefeated()
F_PlayerFail()
repeat
Wait(0)
until not Alive

Next is creating a test boss fight which is fairly easy you could chose to make the boss do certain animations when the condition is right or you can set anything you want it is up to you but we all know during boss missions the boss ped is always given a set of objectives to do so I will be explaining how to do this.

Code: [Select]
MissionSetup = function()
-- (0) is the area code for the main map, all area codes are placed here.
AreaTransitionXYZ(0, X, Y, Z)

PedSetUniqueModelStatus(10, -1) (This set's the ped's free roam model to de-spawn so their are no duplicates.

SoundPlayInteractiveStream("MS_BikeFunLow.rsm", 0.5)
SoundSetMidIntensityStream("MS_BikeFunMid.rsm", 0.60000002384186)
SoundSetHighIntensityStream("MS_BikeFunHigh.rsm", 0.60000002384186)

TestBossPed = PedCreateXYZ(PedID,X,Y,Z)

MissionObjective()

end

MissionObjective = function()
  local x,y = X,Y (Created by Daboss, can be used to make a certain instance.)
  local r1 = x + 3.5
  local r2 = y + 3.5
  local r3 = x - 3.5
  local r4 = y - 3.5
  repeat
    Wait(0)
  until PedInRectangle(gPlayer,r1,r2,r3,r4)

TextPrintString("Follow TestBoss!",4,1)
Wait(3000)
TestBlip = BlipAddXYZ(X,Y,Z,0) (0 is the small Yellow X appearing on the map) (The blip's location should always be the same as the objective location not any wear else. If you script the blip in another location you may mess up player's in finding certain things.)
TextPrintString("Follow the X on the map to go to the location!",4,1)
Wait(3000)
MissionObjective2()
end

MissionObjective2 = function()
  local x,y = X,Y
  local r1 = x + 3.5
  local r2 = y + 3.5
  local r3 = x - 3.5
  local r4 = y - 3.5
  repeat
    Wait(0)
  until PedInRectangle(gPlayer,r1,r2,r3,r4)

BlipRemove(TestBlip)
TestWeaponBlip = BlipAddXYZ(X,Y,Z,BLIP FLOAT, BLIP TYPE)
PickupCreateXYZ(WEAPONID, X,Y,Z, "WEAPONNAME")
TextPrintString("Pickup the weapon!",4,1)
Wait(3000)
gTestBossBlip = AddBlipForChar(TestBossPed, 2, 26, 4)

PedSetPedToTypeAttitude(TestBossPed, 13, 0) (Makes the Ped aggressive with the Player and will attack on sight)

PedAttackPlayer(TestBossPed,gPlayer,3) (Makes the attack on-sight but the ped won't be able to fight the Player if you have 100% with that clique.
CertainInstance = false
end

TestBossFight1 = function()
if CertainInstance == false and PedIsValid(Gplayer) and PedHasWeapon(Gplayer,WEAPONID) then
BlipRemove(TestWeaponBlip)
SoundPlayInteractiveStreamLocked("MUSIX.rsm", MUSIC_DEFAULT_VOLUME) (I'll add a list of musix when I am on P.C. with my files on it.)
TextPrintString("Use your weapon to combat the TestBoss!",4,1)
Wait(3000)
PedSetInvulnerable(TestBossPed,true)true/false
PedShowHealthBar(TestBossPed, true, "TestBossPed", true)
bHealthBarShown = true
CertainInstance = true
CertainInstance2 = false
end
if PedHasWeapon(gPlayer,WEAPONID) and CertainInstance2 == false then
PedSetWeapon(gPlayer,WEAPONID)
PedSetInvulnerable(TestBossPed,false)true/false
PedSetPedToTypeAttitude(TestBossPed, FACTION, HATRED)--(This is your peds agression, Table your agression also)
PedAttackPlayer(TestBossPed,ATTACKNUBMER)--(Makes the peds attack from a distance.)(Table Also)
TextPrintString("TestBossPed: Come on hurt me you prick!",4,1)
Wait(4000)
CertainInstance2 = true
CertainInstance3 = false
end
if PedGetHealth(TestBossPed,HEALTH) and CertainInstance3 == false and PedIsValid(TestBossPed) then
PedSetInvulnerable(TestBossPed,true)true/false
PedStop(TestBossPed)
PedClearObjectives(TestBossPed)
PedAddPedToIgnoreList(TestBossPed, gPlayer)(Ped Goes here who their facing of course.)
PedIgnoreAttacks(TestBossPed, true)(true/false vice verse)
PedMoveToXYZ(TestBossPed,SPEED,X,Y,Z)
TextPrintString("TestBossPed : You will never catch me dorkwad hahaha!",4,1)
CertainInstance3 = true
CertainInstance4 = false
end
end


TestBossFight2 = function()
if PedIsValid(TestBossPed) and CertainInstance4 = false then
PlayerSetControl(0)(0/1)(0 is no control/1 is control.)
CameraSetFOV(40)(Random Number,40 is close and 60 is far away camera angles.)
CameraSetWidescreen(true)true/false
CameraFollowPed(TestBossPed)
TextPrintString("TestBossPed : You're gonna get wrecked prepare to bully edition!",3,2)
Wait(4000)
PedStop(TestBossPed)
PedClearObjectives(TestBossPed)
PedAddPedToIgnoreList(TestBossPed, gPlayer)(Ped Goes here who their facing of course.)
PedIgnoreAttacks(TestBossPed, true)(true/false vice verse)
Wait(4000)
CameraSetWidescreen(false)true/false
PedRemovePedFromIgnoreList(TestBossPed, gPlayer)
PedIgnoreAttacks(TestBossPed, false)
PedSetInvulnerable(TestBossPed,false)true/false
PedSetPedToTypeAttitude(TestBossPed, 13, 0)--(This is your peds agression, Table your agression also)
PedAttackPlayer(TestBossPed,3)--(Makes the peds attack from a distance.)(Table Also)
PedSetHealth(TestBossPed, 850)
PedFaceObjectNow(TestBossPed, gPlayer, 3)
SoundPlayScriptedSpeechEvent(TestBossPed, "FIGHT_INITIATE", 0, "large")
TextPrintString("Defeat TestBossPed!", 4, 1)
PedShowHealthBar(TestBossPed, true, "TestBossPed", true)
bHealthBarShown = true
end
end

BossDefeated = function()
if PedIsDead(TestBossPed) then

TextPrintString("You've the boss PERFECT :D!",4,1)
Wait(3000)

SoundPlayMissionEndMusic(true, 8)
MissionSucceed(true, false, false)
CameraSetWidescreen(true) 
Wait(4000)
CameraFade(500, 0)
AreaTransitionXYZ(14, -501.4, 316.11, 31.5)
Wait(500)
CameraAllowChange(true)
SoundSetAudioFocusPlayer()
CameraReturnToPlayer()
CameraReset()
CameraSetWidescreen(false)
PlayerSetControl(1)
end
end

F_PlayerFail = function()
if PedIsDead(gPlayer) then
SoundPlayMissionEndMusic(true, 6)
MissionFail(true, false, false)
Wait(4000)
CameraSetWidescreen(true)
CameraFade(700, 0)
AreaTransitionXYZ(14, -501.4, 316.11, 31.5)
Wait(500)
CameraAllowChange(true)
SoundSetAudioFocusPlayer()
CameraReturnToPlayer()
CameraReset()
CameraSetWidescreen(false)
PlayerSetControl(1)
end

F_LoadAnim = function()
  LoadAnimationGroup("Cheer_Cool2")
  LoadAnimationGroup("NPC_Adult")
  LoadAnimationGroup("TSGate")
  LoadAnimationGroup("SCgrdoor")
  LoadAnimationGroup("Sbarels1")
  LoadAnimationGroup("Area_School")
  LoadAnimationGroup("Px_Rail")
  LoadAnimationGroup("DO_Grap")
  LoadAnimationGroup("1_07_SaveBucky")
  LoadAnimationGroup("TSGate")
  LoadAnimationGroup("F_Nerds")
  LoadAnimationGroup("Hang_Jock")
  LoadAnimationGroup("NPC_AggroTaunt")
  LoadAnimationGroup("Hang_Talking")
  LoadAnimationGroup("1_07_Sk8Board")
  Load("Act/Conv/1_07.act")
  LoadActionTree("Act/Props/SBarels1.act")
  LoadActionTree("Act/Props/barrelLad.act")
  LoadActionTree("Act/Conv/1_03.act")
  LoadActionTree("Act/Anim/1_03_Davis.act")
end

F_CleanUpAnim = function() (Not necessary to use the mission will work either way.)
  UnLoadAnimationGroup("Cheer_Cool2")
  UnLoadAnimationGroup("NPC_Adult")
  UnLoadAnimationGroup("TSGate")
  UnLoadAnimationGroup("SCgrdoor")
  UnLoadAnimationGroup("Sbarels1")
  UnLoadAnimationGroup("Area_School")
  UnLoadAnimationGroup("Px_Rail")
  UnLoadAnimationGroup("DO_Grap")
  UnLoadAnimationGroup("1_07_SaveBucky")
  UnLoadAnimationGroup("TSGate")
  UnLoadAnimationGroup("F_Nerds")
  UnLoadAnimationGroup("Hang_Jock")
  UnLoadAnimationGroup("NPC_AggroTaunt")
  UnLoadAnimationGroup("Hang_Talking")
  UnLoadAnimationGroup("1_07_Sk8Board")
  collectgarbage()
end

main = function()
F_LoadAnim()
TestBossFight1()
TestBossFight2()
BossDefeated()
F_PlayerFail()
repeat
Wait(0)
until not Alive

Okay so that is the end of it how you make a boss in your mission script by setting different things for the ped to do as a boss it will give the player different objectives and certain things to do like following or picking up certain weapons.

Next is making a full mission either doing different objectives or a Boss Mission they're completely different from one another. Just like in the original game Boss Missions and Normal Missions were separate from each other we would usually fight a boss at the end of the chapter for the most part. So here is my step by step on how to script a full mission.

Code: [Select]
MissionSetup = function()
-- (0) is the area code for the main map, all area codes are placed here.
AreaTransitionXYZ(0, X, Y, Z)

PedSetUniqueModelStatus(2, -1)

SoundPlayInteractiveStream("MS_BikeFunLow.rsm", 0.5)
SoundSetMidIntensityStream("MS_BikeFunMid.rsm", 0.60000002384186)
SoundSetHighIntensityStream("MS_BikeFunHigh.rsm", 0.60000002384186)

TestPed = PedCreateXYZ(PedID,X,Y,Z)

PedSetAmbiet(TestPed,true)

MissionObjective()

end

MissionObjective = function()
  local x,y = X,Y (Created by Daboss, can be used to make a certain instance.)
  local r1 = x + 3.5
  local r2 = y + 3.5
  local r3 = x - 3.5
  local r4 = y - 3.5
  repeat
    Wait(0)
  until PedInRectangle(gPlayer,r1,r2,r3,r4)

TextPrintString("You're playing hide and seek find the Ped!",4,1)
Wait(3000)
TestBlip = BlipAddXYZ(X,Y,Z,0) (0 is the small Yellow X appearing on the map) (The blip's location should always be the same as the objective location not any wear else. If you script the blip in another location you may mess up player's in finding certain things.)
TextPrintString("Follow the X on the map to go to the location!",4,1)
Wait(3000)
MissionObjectiveFinal()
end

MissionObjectiveFinal = function()
  local x,y = X,Y
  local r1 = x + 3.5
  local r2 = y + 3.5
  local r3 = x - 3.5
  local r4 = y - 3.5
  repeat
    Wait(0)
  until PedInRectangle(gPlayer,r1,r2,r3,r4)

BlipRemove(TestBlip)

TextPrintString("Great you've completed the test mission!",4,1)
Wait(3000)

SoundPlayMissionEndMusic(true, 8)
MissionSucceed(true, false, false)
CameraSetWidescreen(true) 
Wait(4000)
CameraFade(500, 0)
AreaTransitionXYZ(14, -501.4, 316.11, 31.5)
Wait(500)
CameraAllowChange(true)
SoundSetAudioFocusPlayer()
CameraReturnToPlayer()
CameraReset()
CameraSetWidescreen(false)
PlayerSetControl(1)

end

F_PlayerFail = function()
if PedIsDead(gPlayer) then
SoundPlayMissionEndMusic(true, 6)
MissionFail(true, false, false)
Wait(4000)
CameraSetWidescreen(true)
CameraFade(700, 0)
AreaTransitionXYZ(14, -501.4, 316.11, 31.5)
Wait(500)
CameraAllowChange(true)
SoundSetAudioFocusPlayer()
CameraReturnToPlayer()
CameraReset()
CameraSetWidescreen(false)
PlayerSetControl(1)
end

F_LoadAnim = function()
  LoadAnimationGroup("Cheer_Cool2")
  LoadAnimationGroup("NPC_Adult")
  LoadAnimationGroup("TSGate")
  LoadAnimationGroup("SCgrdoor")
  LoadAnimationGroup("Sbarels1")
  LoadAnimationGroup("Area_School")
  LoadAnimationGroup("Px_Rail")
  LoadAnimationGroup("DO_Grap")
  LoadAnimationGroup("1_07_SaveBucky")
  LoadAnimationGroup("TSGate")
  LoadAnimationGroup("F_Nerds")
  LoadAnimationGroup("Hang_Jock")
  LoadAnimationGroup("NPC_AggroTaunt")
  LoadAnimationGroup("Hang_Talking")
  LoadAnimationGroup("1_07_Sk8Board")
  Load("Act/Conv/1_07.act")
  LoadActionTree("Act/Props/SBarels1.act")
  LoadActionTree("Act/Props/barrelLad.act")
  LoadActionTree("Act/Conv/1_03.act")
  LoadActionTree("Act/Anim/1_03_Davis.act")
end

F_CleanUpAnim = function() (Not necessary to use the mission will work either way.)
  UnLoadAnimationGroup("Cheer_Cool2")
  UnLoadAnimationGroup("NPC_Adult")
  UnLoadAnimationGroup("TSGate")
  UnLoadAnimationGroup("SCgrdoor")
  UnLoadAnimationGroup("Sbarels1")
  UnLoadAnimationGroup("Area_School")
  UnLoadAnimationGroup("Px_Rail")
  UnLoadAnimationGroup("DO_Grap")
  UnLoadAnimationGroup("1_07_SaveBucky")
  UnLoadAnimationGroup("TSGate")
  UnLoadAnimationGroup("F_Nerds")
  UnLoadAnimationGroup("Hang_Jock")
  UnLoadAnimationGroup("NPC_AggroTaunt")
  UnLoadAnimationGroup("Hang_Talking")
  UnLoadAnimationGroup("1_07_Sk8Board")
  collectgarbage()
end

main = function()
F_LoadAnim()
F_PlayerFail()
repeat
Wait(0)
until not Alive

Okay so this is a basic setup for a test mission, as you can see I created objectives and set the player to find and do certain things. Their were no enemies introduced in this mission because this is just a test mission in finding and returning a ped.

Next is setting up enemies for the player as an objective it is similar to the very first test mission but Rock-Star separated these test missions so I will be doing the same. I will also show how to make your very own cut scene I am not that good at CamerSetXYZ though but I will update it soon enough with the function.

Code: [Select]
MissionSetup = function()
-- (0) is the area code for the main map, all area codes are placed here.
AreaTransitionXYZ(0, X, Y, Z)

TestPed = PedCreateXYZ(PedID,X,Y,Z)
TestPed2 = PedCreateXYZ(PedID,X,Y,Z)
TestPed3 = PedCreateXYZ(PedID,X,Y,Z)
CameraSetWideScreen(true)(Always use this to set the cut-scene to widescreen like in normal missions.)
SoundDisableSpeech_ActionTree()(Use this so your ped's wont ramble during your cut-scenes.)
PedMoveToXYZ(TestPed,SPEED,X,Y,Z)
PedMoveToXYZ(TestPed2,SPEED,X,Y,Z)
  local x,y = X,Y
  local r1 = x + 3.5
  local r2 = y + 3.5
  local r3 = x - 3.5
  local r4 = y - 3.5
  repeat
    Wait(0)
  until PedInRectangle(TestPed,r1,r2,r3,r4)
PedStop(TestPed)
PedStop(TestPed2)

CameraSetFOV(60)

TextPrintString("TestPed : So looking forward to that brick huh dude?",4,1)
Wait(4000)
TextPrintString("TestPed2 : Sure enough I just hope those smug cops don't show up!",4,1)
Wait(4000)
PedFaceObjectNow(TestPed,TestPed3, 3,Only number I know I am laughing out loud at your hysterical statement! .)
PedFaceObjectNow(TestPed2,TestPed3, 3,Only number I know I am laughing out loud at your hysterical statement! .)
PedMoveToXYZ(TestPed3,SPEED,X,Y,Z)
  local x,y = X,Y
  local r1 = x + 3.5
  local r2 = y + 3.5
  local r3 = x - 3.5
  local r4 = y - 3.5
  repeat
    Wait(0)
  until PedInRectangle(TestPed3,r1,r2,r3,r4)
PedStop(TestPed3)

CameraFollowPed(TestPed3)

TextPrintString("TestPed : Their he is, hopefully he has the stuff!",4,1)
Wait(4000)
TextPrintString("TestPed2 : Cool, this is awesome where gonna make so much money!",4,1)
Wait(4000)
TextPrintString("TestPed3 : I got the stuff so where's the money!",4,1)
Wait(4000)
TextPrintString("TestPed2 : Right here nice doin business with you chump!",4,1)
Wait(2000)
CameraSetWidescreen(false)
CameraFollowPed(TestPed)
PlayerSetControl(1)
CameraReset()
CameraReturnToPlayer()
TextPrintString("Take the drugs to your drug lord without getting busted by cops.",4,1)
Wait(4000)
TestBlip = BlipAddXYZ(X,Y,Z, BLIP TYPE)
CopIsAround = false
MissionObjective()
end

TurnAnyCopToBuster = function()
if PedIsValid(TestPed) and CopIsAround == false then
PedFindAmbientPedOfModelID(MODELID)
PedFindAmbientPedOfModelID(MODELID)
PedFindAmbientPedOfModelID(MODELID)
PedFindAmbientPedOfModelID(MODELID)
PedFindAmbientPedOfModelID(MODELID)
PedFindAmbientPedOfModelID(MODELID)
Disablepunishmentsystem = false
PedSetPunishmentPoints(400)
PedSetPedToTypeAttitude(COP1, 13, 0) (Makes the Ped aggressive with the Player and will attack on sight)
PedSetPedToTypeAttitude(COP2, 13, 0)
PedSetPedToTypeAttitude(COP3, 13, 0)
PedSetPedToTypeAttitude(COP4, 13, 0)
PedSetPedToTypeAttitude(COP5, 13, 0)
PedSetPedToTypeAttitude(COP6, 13, 0)
CopIsAround = true
end
end

MissionObjective = function()
  local x,y = X,Y (Created by Daboss, can be used to make a certain instance.)
  local r1 = x + 3.5
  local r2 = y + 3.5
  local r3 = x - 3.5
  local r4 = y - 3.5
  repeat
    Wait(0)
  until PedInRectangle(gPlayer,r1,r2,r3,r4)

BlipRemove(TestBlip)


TestPed5 = PedCreateXYZ(PedID,X,Y,Z)
TestPed6 = PedCreateXYZ(PedID,X,Y,Z)
TestPed7 = PedCreateXYZ(PedID,X,Y,Z)
TestPed8 = PedCreateXYZ(PedID,X,Y,Z)

CameraSetWidescreen(true)
CameraFollowPed(TestPed5)

TextPrintString("TestPed5 : What the hell do you think you're doing sellin on are turf get those bastard's!",4,1)
Wait(5000)
gTestBlip2 = AddBlipForChar(TestPed6, 2, 26, 4)
gTestBlip3 = AddBlipForChar(TestPed7, 2, 26, 4)
gTestBlip4 = AddBlipForChar(TestPed8, 2, 26, 4)

PedSetPedToTypeAttitude(TestPed6, 13, 0) (Makes the Ped aggressive with the Player and will attack on sight)
PedSetPedToTypeAttitude(TestPed7, 13, 0)
PedSetPedToTypeAttitude(TestPed8, 13, 0)

PedAttackPlayer(TestPed6,gPlayer,3) (Makes the attack on-sight but the ped won't be able to fight the Player if you have 100% with that clique.
PedAttackPlayer(TestPed7, gPlayer,3)
PedAttackPlayer(TestPed8, gPlayer,3)
Wait(3000)
TextPrintString("Defeat the drug dealers before they steal your drugs!",4,1)
Wait(4000)
PedMoveToXYZ(TestPed5,SPEED,X,Y,Z)
end

F_DrugDealersRekt = function()
if PedIsDead(TestPed6) and PedIsDead(TestPed7) and PedIsDead(TestPed8) then
TextPrintString("Follow the last drug dealer to his turf!",4,1)
Wait(4000)
TestBlip = BlipAddXYZ(BLIP,X,Y,Z)
TestPed9 = PedCreateXYZ(PedID,X,Y,Z)
TestPed10 = PedCreateXYZ(PedID,X,Y,Z)
TestPed11 = PedCreateXYZ(PedID,X,Y,Z)
TestPed12 = PedCreateXYZ(PedID,X,Y,Z)

gTestBlip2 = AddBlipForChar(TestPed9, 2, 26, 4)
gTestBlip3 = AddBlipForChar(TestPed10, 2, 26, 4)
gTestBlip4 = AddBlipForChar(TestPed11, 2, 26, 4)
gTestBlip4 = AddBlipForChar(TestPed12, 2, 26, 4)

PedSetPedToTypeAttitude(TestPed9, 13, 0) (Makes the Ped aggressive with the Player and will attack on sight)
PedSetPedToTypeAttitude(TestPed10, 13, 0)
PedSetPedToTypeAttitude(TestPed11, 13, 0)
PedSetPedToTypeAttitude(TestPed12, 13, 0)


PedAttackPlayer(TestPed9,gPlayer,3) (Makes the attack on-sight but the ped won't be able to fight the Player if you have 100% with that clique.
PedAttackPlayer(TestPed10, gPlayer,3)
PedAttackPlayer(TestPed11, gPlayer,3)
PedAttackPlayer(TestPed12, gPlayer,3)

TextPrintString("TestPed5 : Boy's take care of those two pricks and defeat them!",4,1)
MissionObjective2()
end
end



MissionObjective2 = function()

  local x,y = X,Y
  local r1 = x + 3.5
  local r2 = y + 3.5
  local r3 = x - 3.5
  local r4 = y - 3.5
  repeat
    Wait(0)
  until PedInRectangle(gPlayer,r1,r2,r3,r4)

BlipRemove(TestBlip)
TextPrintString("Take'em out you damn slacker's what the fuck do I pay you for!",4,1)
Wait(4000)
VehicleCreateXYZ(VEHICLEID,X,Y,Z)
VehicleCreateXYZ(VEHICLEID2,X,Y,Z)
end

F_EnemiesDefeated = function()
if PedIsDead(TestPed9) and PedIsDead(TestPed10) and PedIsDead(TestPed11) and PedIsDead(TestPed12) then
TextPrintString("TestPed5 : Guess I gotta do the shit myself, prepare to get wasted you pricks!",4,1)
Wait(5000)
CertainInstance = false
end
if CertainInstance == false and PedIsValid(TestPed5) and PedHasWeapon(TestPed5,WEAPONID) then
TextPrintString("TestPed5 : Can't do shit against my Super Spud Gun prepare to get rekt!",4,1)
Wait(4000)
TextPrintString("Use the drug dealers car's as a barrier to protect yourselves!",4,1)
CertainInstance = true
CertainInstance2 = false
end
if CertainInstance2 == false and PedIsValid(TestPed5) then
TextPrintString("TestPed5 : Using the car as a barrier huh? Fuck you assholes hahaha!",4,1)
Wait(4000)
PedSetActionNode(ACTIONNODE)
CertainInstance2 = true
CertainInstance3 = false
end
if CertainInstance3 == false and PedIsValid(TestPed2) and PedHasWeapon(TestPed2,WEAPONID) then
TextPrintString("TestPed2 : Eat this you dumb fuck, didn't see it coming huh?!",4,1)
Wait(3000)
PedMoveToXYZ(TestPed2,SPEED,X,Y,Z)
Wait(1500)
PedSetActionNode(ACTIONNODE)
Wait(1000)
PedSetHealth(TestPed5,0)

TestBlip = BlipAddXYZ(Blip,X,Y,Z)
TextPrintString("Go to your drug lord he's waiting for you!",4,1)
Wait(3000)
DrugLord = PedCreateXYZ(PedID,X,Y,Z)
MissionObjective3()
end
end

MissionObjective3 = function()
  local x,y = X,Y
  local r1 = x + 3.5
  local r2 = y + 3.5
  local r3 = x - 3.5
  local r4 = y - 3.5
  repeat
    Wait(0)
  until PedInRectangle(gPlayer,r1,r2,r3,r4)

BlipRemove(TestBlip)

CameraSetWideScreen(true)(Always use this to set the cut-scene to widescreen like in normal missions.)
SoundDisableSpeech_ActionTree()(Use this so your ped's wont ramble during your cut-scenes.)
PedMoveToXYZ(TestPed,SPEED,X,Y,Z)
PedMoveToXYZ(TestPed2,SPEED,X,Y,Z)
  local x,y = X,Y
  local r1 = x + 3.5
  local r2 = y + 3.5
  local r3 = x - 3.5
  local r4 = y - 3.5
  repeat
    Wait(0)
  until PedInRectangle(TestPed,r1,r2,r3,r4)
PedStop(TestPed)
PedStop(TestPed2)

CameraSetFOV(60)

TextPrintString("DrugLord : Alright you got the shit, thanks here's your cut!",4,1)
Wait(3000)
TextPrintString("DrugLord: Next time be on time or I'll take your life and the drugs!",4,1)
Wait(10000)
SoundPlayMissionEndMusic(true, 8)
MissionSucceed(true, false, false)
CameraSetWidescreen(true) 
Wait(4000)
CameraFade(500, 0)
AreaTransitionXYZ(14, -501.4, 316.11, 31.5)
Wait(500)
CameraAllowChange(true)
SoundSetAudioFocusPlayer()
CameraReturnToPlayer()
CameraReset()
CameraSetWidescreen(false)
PlayerSetControl(1)
end

F_PlayerFail = function()
if PedIsDead(gPlayer) then
SoundPlayMissionEndMusic(true, 6)
MissionFail(true, false, false)
Wait(4000)
CameraSetWidescreen(true)
CameraFade(700, 0)
AreaTransitionXYZ(14, -501.4, 316.11, 31.5)
Wait(500)
CameraAllowChange(true)
SoundSetAudioFocusPlayer()
CameraReturnToPlayer()
CameraReset()
CameraSetWidescreen(false)
PlayerSetControl(1)
end
end

F_LoadAnim = function()
  LoadAnimationGroup("Cheer_Cool2")
  LoadAnimationGroup("NPC_Adult")
  LoadAnimationGroup("TSGate")
  LoadAnimationGroup("SCgrdoor")
  LoadAnimationGroup("Sbarels1")
  LoadAnimationGroup("Area_School")
  LoadAnimationGroup("Px_Rail")
  LoadAnimationGroup("DO_Grap")
  LoadAnimationGroup("1_07_SaveBucky")
  LoadAnimationGroup("TSGate")
  LoadAnimationGroup("F_Nerds")
  LoadAnimationGroup("Hang_Jock")
  LoadAnimationGroup("NPC_AggroTaunt")
  LoadAnimationGroup("Hang_Talking")
  LoadAnimationGroup("1_07_Sk8Board")
  Load("Act/Conv/1_07.act")
  LoadActionTree("Act/Props/SBarels1.act")
  LoadActionTree("Act/Props/barrelLad.act")
  LoadActionTree("Act/Conv/1_03.act")
  LoadActionTree("Act/Anim/1_03_Davis.act")
end

F_CleanUpAnim = function() (Not necessary to use the mission will work either way.)
  UnLoadAnimationGroup("Cheer_Cool2")
  UnLoadAnimationGroup("NPC_Adult")
  UnLoadAnimationGroup("TSGate")
  UnLoadAnimationGroup("SCgrdoor")
  UnLoadAnimationGroup("Sbarels1")
  UnLoadAnimationGroup("Area_School")
  UnLoadAnimationGroup("Px_Rail")
  UnLoadAnimationGroup("DO_Grap")
  UnLoadAnimationGroup("1_07_SaveBucky")
  UnLoadAnimationGroup("TSGate")
  UnLoadAnimationGroup("F_Nerds")
  UnLoadAnimationGroup("Hang_Jock")
  UnLoadAnimationGroup("NPC_AggroTaunt")
  UnLoadAnimationGroup("Hang_Talking")
  UnLoadAnimationGroup("1_07_Sk8Board")
  collectgarbage()
end

main = function()
F_LoadAnim()
TurnAnyCopToBuster()
F_DrugDealersRekt()
F_EnemiesDefeated()
F_PlayerFail()
repeat
Wait(0)
until not Alive

Okay so that was a complete mission I would want someone to script this one I am laughing out loud at your hysterical statement!  seems awesome! Okay next we will focus on creating a full boss mission that is a little harder in scripting that but you can do this just pay attention and follow every step on where everything goes and how everything works.
Updated 7/29/2015  8) ( ͡° ͜ʖ ͡°)( ͡° ͜ʖ ͡°)( ͡° ͜ʖ ͡°)( ͡° ͜ʖ ͡°)
--AlphaTech

27
Community Stories / Bully 2 : Story Plot
« on: July 27, 2015, 04:00:26 PM »
Well I always thought of an in depth story to the game to bring out new features and gameplay further more Rock-Star's bicth-asses need to make a new game or where gonna riot in dat bitch

Story
Well since Jimmy was 15 years old in the original game I thought of adding a different story to the plot. Jimmy is now 35 years old and of course got married to Zoe. They both ended up having a daughter named Zoe after Zoe I am laughing out loud at your hysterical statement! . So Zoe is just enrolling in Bullworth Academy and since Jimmy had such a good social standing she is always greeted and treated fairly by everyone.

So here is where the trouble start's, Gary ends up dating a female from the asylum and they end up having a daughter also. They change Bullworth into two head quarters one for the boy's and one for the girl's the reason for separation should be known I am laughing out loud at your hysterical statement! , cuz duh sex duh I am laughing out loud at your hysterical statement! .

Gary's daughter knows all about what happened in the original game and decides to use this to her advantage. All new cliques are assembled since the split adding more males and females to bullworth making the  clique hierarchy even more stronger. Zoe isn't part of any clique, her social standing is 100% during the first part of gameplay. Gary's daughter then plan's her move, since Gary is quite wealthy now she is in the popular crowd of girl's. Since the Popular crowd basically is the top clique in the whole school, money, fame, fortune. Like a much more powerful all girl Preppy clique.

She decides to take matter's in her own hands in starting trouble with Tiny Tabby which of course is we all know Russell's child I am laughing out loud at your hysterical statement! . Tabby is tough and run's the new bully gang with an iron first. Gary's daughter decides to make rumors about Zoe flirting with Tabby's boyfriend and this sparks the feud in Chapter 1. Tabby isn't slow like Russell but she is a bit clumsy, she is actually top in her class in math. Tabby's crew then initiates the first intimidation tactic. They greet Zoe then ask her about the rumors, she of course denies all of it but one of Tabby's crew members decides to test Zoe.

Zoe is then blind sided by a windmill to the face and this starts the first fight ingame. Zoe isn't the best of fighters and has at least two months experience in MMA. The other girl of course knows brawling or street fighting just like the normal bullies but with a little grappling. Zoe nearly wins the fight and Tabby's crew decides to endlessly come after the nerds and her also. The first Chapter is all about protecting the nerds and yourself just like Bully but with a little more in depth gameplay and story.

The new nerds are a group of talented female students they are bullied mercilessly because of their smarts and achievements. Zoe decides to protect them from the threat's as their is more than one clique bullying them in Chapter 1.

Decided to go with a whole different  new type of game either way. I was thinking of something along the lines of changing the world of bully instead of having it mostly boy's reverse the effect of the game. Deal with mostly girly crap and stuff joking of course but I guess I was thinking of a female character because of Avatar Korra. Would be awesome to have a Boy and Girl School thought guess what I am thinking? Of course with two school's means two main characters now the James Jr. James Jr is the son of Jimmy Hopkins and goes to the west school Bullworth Academy Boy's, East is Bullworth Academy Girl's. The school's are completely separated and operate on two ends of the town. This gives the player new places to go to and a completely larger map.

James Jr is seen entering the all boy's school of course he is greeted with favoritism because of his late father. James is also liked by all the girl's and has a big standing but we all know where that put's him. Jealousy erupts from Derby's son Darby who is leader of the new preppies they start the first type of trouble in Chapter 1 for James Jr. More will be added soon but you get the idea.

Also you can create your very own character to go to either school you build their clique standing and you can also create your own clique and gameplay something new but is an addition to the DLC for Bull 2 only. So it wont interrupt the normal story. So basically you get to add your own custom story by interacting with ped's ingame kind of like Karma it get's a certain clique after you then start's its own missions.

Adding more stay tuned!




28
Script Modding / Working Props
« on: July 27, 2015, 10:43:38 AM »
I am finally doing some sort of topic on this since I am on a P.C with all the decompiled scripts on it. I didn't decompile them myself but got them from a source so just bear with me as everything is not 100 percent. Most props work a certain way and are meant to run during certain missions. Different from any other thing ingame they have their own animations and Action Node's


So the very first I will get into are the Autoshop gate's they run by setting them open or closed. Here are some codes to how they work read them closely you also need the Action Tree's loaded and Animation Groups.
 
 
Code: [Select]
Load("Act/Conv/1_07.act")
  LoadActionTree("Act/Props/SBarels1.act")
  LoadActionTree("Act/Props/barrelLad.act")
  LoadActionTree("Act/Conv/1_03.act")
  LoadActionTree("Act/Anim/1_03_Davis.act")


  DATLoad("1_03.DAT", 2)
  DATLoad("1_07.DAT", 2)
  DATLoad("tschool_garagedoors.DAT", 2)
  DATLoad("tbarrels.DAT", 2)
  DATInit()
 
  PAnimCreate(TRIGGER._TSCHOOL_AUTOSHOPFGATE) This is the first gate when running toward it in The Setup.
  PAnimCloseDoor(TRIGGER._TSCHOOL_AUTOSHOPFGATE)
  AreaSetDoorLockedToPeds(TRIGGER._TSCHOOL_AUTOSHOPFGATE, false)
  AreaSetDoorPathableToPeds(TRIGGER._TSCHOOL_AUTOSHOPFGATE, true)
 
  PAnimCreate(TRIGGER._SCGRDOOR) This is the silver door that Trent is standing near.
  PAnimCloseDoor(TRIGGER._SCGRDOOR)
  AreaSetDoorLockedToPeds(TRIGGER._SCGRDOOR, false)
  AreaSetDoorPathableToPeds(TRIGGER._SCGRDOOR, true)
 
  PAnimCreate(TRIGGER._1_07_GATE_T) This is the door all the way at the end used on Defend Bucky got them both working correctly heh.
  PAnimSetActionNode(TRIGGER._1_07_GATE_T, "/Global/1_07/CloseGate/PropClosed", "Act/Conv/1_07.act")
  AreaSetDoorPathableToPeds(TRIGGER._1_07_GATE_T, true)
  AreaSetDoorLockedToPeds(TRIGGER._1_07_GATE_T, false)




  PAnimCreate(TRIGGER._SCGRDOOR01) This is the silver door that Ethan runs out of.
  PAnimCloseDoor(TRIGGER._SCGRDOOR01)
  AreaSetDoorLockedToPeds(TRIGGER._SCGRDOOR01, false)
  AreaSetDoorPathableToPeds(TRIGGER._SCGRDOOR01, true)




  PAnimCreate(TRIGGER._SCGRDOOR02) This is the silver door where Wade and Tom runs out of.
  PAnimCloseDoor(TRIGGER._SCGRDOOR02)
  AreaSetDoorLockedToPeds(TRIGGER._SCGRDOOR02, false)
  AreaSetDoorPathableToPeds(TRIGGER._SCGRDOOR02, true)

To create the door that you go threw at the chem plant just add this,

  SoundEnableInteractiveMusic(false)
  SoundDisableSpeech_ActionTree()
  LoadAnimationGroup("DO_STRIKECOMBO")
  LoadAnimationGroup("BOXING")
  LoadAnimationGroup("C_Wrestling")
  DisablePunishmentSystem(true)
  LoadActionTree("Act/Anim/DO_Edgar.act")
  LoadActionTree("Act/AI/AI_EDGAR_5_B.act")
  LoadActionTree("Act/Conv/5_B.act")
  LoadModels("Act/Conv/5_B.act", 387)
  AreaSetDoorLocked("5_B_CHEM_DOOR", true)
  AreaSetDoorLocked("5_B_CHEM_DOOR_2", true)
  AreaSetDoorLocked("DT_ChemPlant_DoorL", true)
  PedSaveWeaponInventorySnapshot(gPlayer)


  PAnimCreate(TRIGGER._5_B_SECDOOR1)
  PAnimCreate(TRIGGER._5_B_SECDOOR2)
  AreaSetDoorLocked(TRIGGER._5_B_SECDOOR1, true)
  AreaSetDoorLocked(TRIGGER._5_B_SECDOOR2, true)


  l_0_21 =
  l_0_20 = PAnimGetPoolIndex("CH_ElevDoorC", -761.78997802734, 91.76490020752, 7.6157898902893, 5)
  l_0_23 =
  l_0_22 = PAnimGetPoolIndex("CH_ElevDoorD", -760.94097900391, 91.76490020752, 7.6157999038696, 5)
  PAnimFollowPath(l_0_20, l_0_21, PATH._5_B_ELEVATOR_C, false)
  PAnimSetPathFollowSpeed(l_0_20, l_0_21, 0.5)
  PAnimFollowPath(l_0_22, l_0_23, PATH._5_B_ELEVATOR_D, false)
  PAnimSetPathFollowSpeed(l_0_22, l_0_23, 0.5)

  l_0_21 =
  l_0_20 = PAnimGetPoolIndex("CH_ElevDoorC", -761.78997802734, 91.76490020752, 7.6157898902893, 5)
  l_0_23 =
  l_0_22 = PAnimGetPoolIndex("CH_ElevDoorD", -760.94097900391, 91.76490020752, 7.6157999038696, 5)
  PAnimFollowPath(l_0_20, l_0_21, PATH._5_B_EC_CLOSE, false)
  PAnimSetPathFollowSpeed(l_0_20, l_0_21, 0.5)
  PAnimFollowPath(l_0_22, l_0_23, PATH._5_B_ED_CLOSE, false)
  PAnimSetPathFollowSpeed(l_0_22, l_0_23, 0.5)

  gDoorEnded = false
  if gClosingDoor then
    gClosingDoor = false
    SoundLoopPlay2D("ChemDoorClose", false)
  end
  gOpeningDoor = true
  SoundLoopPlay2D("ChemDoorOpen", true)
  PAnimSetPathFollowSpeed(TRIGGER._5_B_SECDOOR1, 0.5)
  PAnimSetPathFollowSpeed(TRIGGER._5_B_SECDOOR2, 0.5)

  gDoorEnded = false
  if gOpeningDoor then
    gOpeningDoor = false
    SoundLoopPlay2D("ChemDoorOpen", false)
  end
  gClosingDoor = true
  if l_0_12 then
    SoundLoopPlay2D("ChemDoorClose", true)
  end
  PAnimSetPathFollowSpeed(TRIGGER._5_B_SECDOOR1, -0.5)
  PAnimSetPathFollowSpeed(TRIGGER._5_B_SECDOOR2, -0.5)

  PAnimFollowPath(TRIGGER._5_B_SECDOOR1, PATH._5_B_DOORA_OPEN, false, F_DoorsOpenClosed_Callback)
  PAnimFollowPath(TRIGGER._5_B_SECDOOR2, PATH._5_B_DOORB_OPEN, false, F_DoorsOpenClosed_Callback)
  PAnimSetPathFollowSpeed(TRIGGER._5_B_SECDOOR1, 0)
  PAnimSetPathFollowSpeed(TRIGGER._5_B_SECDOOR2, 0)
  gClosingDoor = false
  SoundLoopPlay2D("ChemDoorClose", false)
  gOpeningDoor = false
  SoundLoopPlay2D("ChemDoorOpen", false)

    if PlayerIsInTrigger(TRIGGER._5_B_LIFTUP) then
      if IsButtonPressed(9, 0) then
        PAnimFollowPath(l_0_18, l_0_19, PATH._5_B_ELEVATOR_DOWN, false)
        PAnimSetPathFollowSpeed(l_0_18, l_0_19, 1)
      end
    elseif PlayerIsInTrigger(TRIGGER._5_B_LIFTDOWN) and IsButtonPressed(9, 0) then
      PAnimFollowPath(l_0_18, l_0_19, PATH._5_B_ELEVATOR_UP, false)
      PAnimSetPathFollowSpeed(l_0_18, l_0_19, 1)

Don't know much about the elevator but this should close some of the doors in the chem plant and at The Autoshop.

29
Script Modding / Blips Tutorial
« on: July 25, 2015, 01:58:18 PM »
Well we all know about blips and how to add them right? They're an interesting entity to spawn and have lot's of functions many don't know about how blips work and which ones do certain things. Today I will discuss that, how blips work and exactly what blips do.

Well the first being the normal blip spawn's you add them by placing

Code: [Select]
Blip1 = BlipAddXYZ(477.5798, -107.3748, 16.6911, 0)
This adds a blip to the map, it's location is in bullworth town and it should show up as a yellow (X) I know Unknown has a topic like this but I am just updating how they work.

BLIPTYPE:

1. Blue cross
2. Prefect dot (only peds)
3. Big yellow cross
4. Dollar
5. Orange/Grey bell
6. Grey bell
7. -
8. Save book
9. Garage
10. Grocery store
11. Bike store
12. -
13. Haircut
14. Clothing store
15. Totem? (unused)
16. Parked bike
17. Yellow arrow
18. Sleep zzZZZ
19. Errand
20. Race
21. -
22. Tattoo
23. Hobo
24. Red star
25. Yellow star
26. Red cross
27. Ally dot (only peds)
28. Bus stop
29. Yellow cross
30. Blue cross
31. Big yellow cross
32. Yellow star
33. Red star
34. Red cross
35. Transitor
36. Rubberband
37. G&G Card
38. Gnome
39. -
40. -
41. Crash game
...

BLIPRADAR+ARROWCOMBINATION: (Color depends on blip type)

1. Radar blip only
2. Color arrow only
3. Radar blip only
4. Radar blip and color arrow
5. Radar blip and color arrow

Here is a list of blips, the blipaddxyz is how you add them now let's get to spawning an Enemy blip or floating blip. The floating blips are blips that are used during enemy fights or during missions where they want you to pay attention and use an object. Like in Show Down At The Plant the floating yellow blips appear over the shields and many are wandering how blips float? How does a blip float over an enemy? I know Unknown covered this but I found more about them.

Code: [Select]
Enemy = AddBlipForChar(Enemy, Blip, Float, Map Float)
The third numder in adding blips is adding the Float for the blip inside gameplay.
                                         X                Y                Z               BLIP FLOAT      MAP BLIP
Code: [Select]
Blip1 = BlipAddXYZ(544.2261, -158.2819, 16.3520,            0,                       2)
PickupCreateXYZ(301, 544.2261, -158.2819, 16.3520, "CherryBomb")

If you need the player to find an object and doesn't exactly know where it is you use the Blip Float. Here is the thing, AddBlipForChar is only used for character's and BlipAddXYZ can be used for anything, Prefects are created using AddBlipForChar and following path's.

Prefects have a completely different blip though, they are added as stealth ped's I can't get in depth into that right now because I don't have the stealth ped lua file but I will soon.

So using this information you can also create stealth ped's and enemies that follow a certain path or placement. Adding the circle blips is another thing they can be added by just using BlipAddXYZ(Blip,Blip Float,Map Blip). The way this is used ingame is by setting the XYZ then using the blip's float which is the circle on the ground. Then the Map blip usually show's up as a Circle can be any color I think. If this need's to be moved thank's I am seriously confused about where tutorial's need to be lol. Since this is the script modding section IDK.  :cool:

30
Modding Questions/Help Archives / Some Questions
« on: July 24, 2015, 05:45:01 PM »
I have some questions about somethings, preferebly adding custom styles to ped's but not random.

Changing the color of the custom text, I have a thought on what does this but I haven't a clue how to work it ingame.

How to interact with normal AI type ped's and make triggered ped's respond to your script I need this for my Zombie Mod.

How do I make patrol path's I did a custom type path but it is kind of glitchy.

How do I make ped table, I read the tutorial's but I aint gettin it. I understand all types of other scripting but not tables.

@Daboss Lol told you I wouldn't get it I still need help. I'm a Newbie in table's I need help.

I need table's for Map's,Weapon's,Ped's,Car's,Gate Functions,Ped Functions,Ally Table,Enemy Table, and a lot more.

Hopefully I didn't warn out your patience but I need help and want this Zombie Mod to be created.

Pages: 1 [2] 3 4