Bully-Board
Bully Modding Section => Script Modding => Topic started by: MadmaN on December 26, 2012, 02:35:10 PM
-
I decided to go ahead and release my sources for the multi-bodyguard mod since I plan to take a different direction with this mod.
This source works quite well but is a bit cumbersome since I wrote this when I was experimenting with different ways to have multiple bodyguards as well as assign different fighting styles to them.
There are some bugs with this script which is also another reason why I am releasing it since this is being released so people can learn a more advanced way to code a custom mod for Bully.
The bugs are: only 2 health bars show for the bodyguards at any given time ....I never figured out how to fix that part since I can't force more to show nor can I stop them from showing up. The other bug is only one bodyguard will attack if you get attacked but they all will follow you everywhere you go.
I can fix the other bugs but like I said, I will be going another direction with this mod and using different code and I have commented this code very heavily to give people a easier time understanding what everything says and is for.
All of the bodyguard code except for one section for the peds...one section for hte fighting styles and so forth can be un-commented at any given time. Do not try to use everything uncommented because it will simply crash the game.
The bodyguards are all there....this is setup as a entire clique bodyguard mod. The preps clique including the dog is there...the dog also has the prep boxing style assigned to him/it/her and it walks around on two legs like the other peds and will box....all the jocks are there..and so on.
Please have fun with this mod and if you intend to release a modified version of this please release both the compiled mod and the sources so others can learn how to do this based on your additions. Also please do not take my name from the credits since I worked extremely hard on creating this mod and it is the first of its kind so if you modify anything and release it...make sure to add a line at the top area with the rest of the credits that says -- Modified by: your name here.
Here is the source:
Multi Bodyguard Mod v1 by: |XF|-MadmaN [AR]
UPDATE - edited the script to match the fixed one posted by Red Blaster a few posts down so that anyone using this one will have the proper script.
[noae]-- Multi-Bodyguard Mod V1 BETA
-- By: |XF|-MadmaN [AR]
-- Please do not modify the above author name and if you wish to release a modified version of this
-- then just add a line that says: -- Modified by:
GlobalImportScript("SObjTest.lua") -- Globally loads the Debug Menu for BULLY
ImportScript("Library/LibTable.lua") -- Imports the libtable Library Script
ImportScript("SZone.lua") -- Imports the SZone Debug System Script
--l_0_0 = 60
MissionSetup = function()
DATLoad("6_02GDORM.DAT", 2)
DATInit()
-- local l_1_0 = 270 -- X Coordinates
-- local l_1_1 = -110 -- Y Coordinates
-- local l_1_2 = 6.4000000953674 -- Z Coordinates
AreaTransitionPoint(0, POINTLIST._6_02G_SPAWNPLAYER)
-- AreaTransitionXYZ(0, l_1_0, l_1_1, l_1_2) -- Areacode (0) with the XYZ Coordinates Locals as Defined above. Locals are always defined first for every function
AreaSetDoorPathableToPeds(TRIGGER._BUSDOORS, true)
VehicleBikeGeneratorToggle(true)
TextPrintString("Bully: Scholarship Edition Multi-Bodyguard Mod v1 BETA.", 4, 1) -- Mod Title Screen
Wait(5000) -- Waits 5 Seconds
TextPrintString("By: |XF|-MadmaN [AR] ", 4, 1) -- Author name(s) goes here
Wait(5000) -- Waits 5 Seconds
gMonitorAllies = true
-- Unique Model Status Code Start (freeroam) -1: not in freeroam 1: in freeroam (this number can be changed to a higher number to spawn multiple copies of the same ped)
PedSetUniqueModelStatus(2, 1) -- Zoe
PedSetUniqueModelStatus(3, 1) -- Beatrice
PedSetUniqueModelStatus(4, 1) -- Algernon
PedSetUniqueModelStatus(5, 1) -- Fatty
PedSetUniqueModelStatus(6, 1) -- Melvin
PedSetUniqueModelStatus(7, 1) -- Thad
PedSetUniqueModelStatus(8, 1) -- Bucky
PedSetUniqueModelStatus(9, 1) -- Cornelius
PedSetUniqueModelStatus(10, 1) -- Earnest
PedSetUniqueModelStatus(11, 1) -- Donald
PedSetUniqueModelStatus(12, 1) -- Damon
PedSetUniqueModelStatus(13, 1) -- Kirby
PedSetUniqueModelStatus(14, 1) -- Mandy
PedSetUniqueModelStatus(15, 1) -- Dan
PedSetUniqueModelStatus(16, 1) -- Luis
PedSetUniqueModelStatus(17, 1) -- Casey
PedSetUniqueModelStatus(18, 1) -- Bo
PedSetUniqueModelStatus(19, 1) -- Ted
PedSetUniqueModelStatus(20, 1) -- Juri
PedSetUniqueModelStatus(21, 1) -- Peanut (greasers)
PedSetUniqueModelStatus(22, 1) -- Hal (greasers)
PedSetUniqueModelStatus(23, 1) -- Johnny (greasers)
PedSetUniqueModelStatus(24, 1) -- Lefty (greasers)
PedSetUniqueModelStatus(25, 1) -- Lola (greasers)
PedSetUniqueModelStatus(26, 1) -- Lucky (greasers)
PedSetUniqueModelStatus(27, 1) -- Vance (greasers)
PedSetUniqueModelStatus(28, 1) -- Ricky (greasers)
PedSetUniqueModelStatus(29, 1) -- Norton (greasers)
PedSetUniqueModelStatus(30, 1) -- Gord
PedSetUniqueModelStatus(31, 1) -- Tad
PedSetUniqueModelStatus(32, 1) -- Chad
PedSetUniqueModelStatus(33, 1) -- Bif
PedSetUniqueModelStatus(34, 1) -- Justin
PedSetUniqueModelStatus(35, 1) -- Bryce
PedSetUniqueModelStatus(36, 1) -- Bryce (boxing)
PedSetUniqueModelStatus(37, 1) -- Darby
PedSetUniqueModelStatus(38, 1) -- Pinky
PedSetUniqueModelStatus(39, 1) -- Angie
PedSetUniqueModelStatus(40, 1) -- Parker
PedSetUniqueModelStatus(41, 1) -- Jerry
PedSetUniqueModelStatus(42, 1) -- Otto
PedSetUniqueModelStatus(43, 1) -- Leon
PedSetUniqueModelStatus(44, 1) -- Duncan
PedSetUniqueModelStatus(45, 1) -- Henry
PedSetUniqueModelStatus(46, 1) -- Gurney
PedSetUniqueModelStatus(47, 1) -- Omar
PedSetUniqueModelStatus(48, 1) -- Zoe (alternate outfit?)
PedSetUniqueModelStatus(49, 1) -- Max (prefect)
PedSetUniqueModelStatus(50, 1) -- Seth (prefect)
PedSetUniqueModelStatus(51, 1) -- Edward (prefect)
PedSetUniqueModelStatus(52, 1) -- Karl (prefect leader)
PedSetUniqueModelStatus(53, 1) -- Theo (Orderly)
PedSetUniqueModelStatus(54, 1) -- Miss Peabody (HallMonitor)
PedSetUniqueModelStatus(55, 1) -- Mr Burton (Gym Teacher)
PedSetUniqueModelStatus(56, 1) -- Mr Luntz (Janitor)
PedSetUniqueModelStatus(57, 1) -- Mr Galloway (English Teacher)
PedSetUniqueModelStatus(58, 1) -- Edna (Cafeteria Cook)
PedSetUniqueModelStatus(59, 1) -- Miss Winston (Secretary)
PedSetUniqueModelStatus(60, 1) -- Mrs McRae (Nurse)
PedSetUniqueModelStatus(61, 1) -- Mr Hattrick (Math Teacher)
PedSetUniqueModelStatus(62, 1) -- Mrs Carvin (Librarian)
PedSetUniqueModelStatus(63, 1) -- Ms Phillips (Art Teacher)
PedSetUniqueModelStatus(64, 1) -- Mr Slawter (Biology Teacher)
PedSetUniqueModelStatus(65, 1) -- Dr Crabblesnitch (Principal)
PedSetUniqueModelStatus(66, 1) -- Sheldon (student) (Little kid)
PedSetUniqueModelStatus(67, 1) -- Christy (student)
PedSetUniqueModelStatus(68, 1) -- Gloria (student) (Little kid)
PedSetUniqueModelStatus(69, 1) -- Pedro (student) (Little kid)
PedSetUniqueModelStatus(70, 1) -- Constantinos (student)
PedSetUniqueModelStatus(71, 1) -- Ray (Student) (fat kid)
PedSetUniqueModelStatus(72, 1) -- Ivan (student)
PedSetUniqueModelStatus(73, 1) -- Trevor (student)
PedSetUniqueModelStatus(74, 1) -- Eunice (student) (fat girl)
PedSetUniqueModelStatus(75, 1) -- Russell (Bully) (freeroam model)
PedSetUniqueModelStatus(76, 1) -- Dr Bambillo (shop owner) (TownsPerson)
PedSetUniqueModelStatus(77, 1) -- Mr Sullivan (shop owner) (TownsPerson)
PedSetUniqueModelStatus(78, 1) -- Ms Kopke (shop owner) (TownsPerson)
PedSetUniqueModelStatus(79, 1) -- Ms Rushinski (shop owner) (TownsPerson)
PedSetUniqueModelStatus(80, 1) -- Ms Isaacs (TownsPerson)
PedSetUniqueModelStatus(81, 1) -- Bethany Jones (TownsPerson)
PedSetUniqueModelStatus(82, 1) -- ORourke (fireman) (TownsPerson)
PedSetUniqueModelStatus(83, 1) -- Officer Monson (Cop) (TownsPerson)
PedSetUniqueModelStatus(84, 1) -- Zack Owens (Comic Store Owner) (TownsPerson)
PedSetUniqueModelStatus(85, 1) -- Trent (Bully)
PedSetUniqueModelStatus(86, 1) -- Tobias Mason (Bike Shop Owner) (TownsPerson)
PedSetUniqueModelStatus(87, 1) -- Mr Grant (Hobo)
PedSetUniqueModelStatus(88, 1) -- Mascot (Jocks)
PedSetUniqueModelStatus(89, 1) -- Mr Oh (Grocery Store Owner) (TownsPerson)
PedSetUniqueModelStatus(90, 1) -- Christy (winter) (student)
PedSetUniqueModelStatus(91, 1) -- Edgar (Dropouts Leader)
PedSetUniqueModelStatus(92, 1) -- Luis (Wrestling) (Jocks)
PedSetUniqueModelStatus(93, 1) -- Mandy (winter) (Jocks)
PedSetUniqueModelStatus(94, 1) -- Pinky (winter) (Preppy)
PedSetUniqueModelStatus(95, 1) -- Beatrice (winter) (Nerds)
PedSetUniqueModelStatus(96, 1) -- Lola (winter) (Greasers)
PedSetUniqueModelStatus(97, 1) -- Officer Williams (Cop) (TownsPerson)
PedSetUniqueModelStatus(98, 1) -- Jimmy (Wrestling) (Player)
PedSetUniqueModelStatus(99, 1) -- Davis (Bully)
PedSetUniqueModelStatus(100, 1) -- Mr Breckindale (TownsPerson)
PedSetUniqueModelStatus(101, 1) -- Mr Doolin (TownsPerson)
PedSetUniqueModelStatus(102, 1) -- Troy (Bully)
PedSetUniqueModelStatus(103, 1) -- Nate (Fire Owner) (TownsPerson)
PedSetUniqueModelStatus(104, 1) -- Mr Carmichael (Shop Owner)
PedSetUniqueModelStatus(105, 1) -- Nicky Charles (Shop Owner)
PedSetUniqueModelStatus(106, 1) -- Mr Watts (Chemistry Teacher)
PedSetUniqueModelStatus(107, 1) -- Miss Abby (Shop Owner)
PedSetUniqueModelStatus(108, 1) -- Mihailovich (Shop Owner)
PedSetUniqueModelStatus(109, 1) -- Kirby (Football Uniform)
PedSetUniqueModelStatus(110, 1) -- Ted (Football Uniform)
PedSetUniqueModelStatus(111, 1) -- Dan (Football Uniform)
PedSetUniqueModelStatus(112, 1) -- Damon (Football Uniform)
PedSetUniqueModelStatus(113, 1) -- Freeley (Carnival)
PedSetUniqueModelStatus(114, 1) -- Dorsey (Carnival)
PedSetUniqueModelStatus(115, 1) -- Hector (Carnival Midget) (DunkTank?)
PedSetUniqueModelStatus(116, 1) -- Osbourne (Shop Owner) (TownsPerson)
PedSetUniqueModelStatus(117, 1) -- Chad (Boxing) (Preppy)
PedSetUniqueModelStatus(118, 1) -- Justin (Boxing) (Preppy)
PedSetUniqueModelStatus(119, 1) -- Parker (Boxing) (Preppy)
PedSetUniqueModelStatus(120, 1) -- Maria Theresa (Barber) (Rich Area)
PedSetUniqueModelStatus(121, 1) -- Bob (Generic Wrestler) (Bully)
PedSetUniqueModelStatus(122, 1) -- Fatty (Wrestling) (Nerds)
PedSetUniqueModelStatus(123, 1) -- Chuck (Shop Owner) (TownsPerson)
PedSetUniqueModelStatus(124, 1) -- Ian (Shop Owner) (TownsPerson)
PedSetUniqueModelStatus(125, 1) -- Fenwick (Asylum Patient) (TownsPerson)
PedSetUniqueModelStatus(126, 1) -- Neil (Autoshop Teacher)
PedSetUniqueModelStatus(127, 1) -- Mr Svenson (Mailman)
PedSetUniqueModelStatus(128, 1) -- Denny (Tattooist)
PedSetUniqueModelStatus(129, 1) -- Mr Galloway (Asylum Model) (English Teacher)
PedSetUniqueModelStatus(130, 1) -- Gary (Final BOSS) (Student)
PedSetUniqueModelStatus(131, 1) -- Krakauer (Shop Owner) (TownsPerson)
PedSetUniqueModelStatus(132, 1) -- Mr Moratti (Barber) (Poor Area)
PedSetUniqueModelStatus(133, 1) -- Bif (Boxing) (Preppy)
PedSetUniqueModelStatus(134, 1) -- Petey (student)
PedSetUniqueModelStatus(135, 1) -- Mr Smith (TownsPerson)
PedSetUniqueModelStatus(136, 1) -- Rat
PedSetUniqueModelStatus(137, 1) -- Melody (Little Kid)
PedSetUniqueModelStatus(138, 1) -- Karen (Little Kid)
PedSetUniqueModelStatus(139, 1) -- Gordon (Student)
PedSetUniqueModelStatus(140, 1) -- Brandy (Midget)
PedSetUniqueModelStatus(141, 1) -- Pitbull 1
PedSetUniqueModelStatus(142, 1) -- Lance (Student)
PedSetUniqueModelStatus(143, 1) -- Crystal (Carnival Worker)
PedSetUniqueModelStatus(144, 1) -- Mr Martin (TownsPerson)
PedSetUniqueModelStatus(145, 1) -- Ethan (Bully)
PedSetUniqueModelStatus(146, 1) -- Wade (Bully)
PedSetUniqueModelStatus(147, 1) -- Tom (Bully)
PedSetUniqueModelStatus(148, 1) -- Mr Ramirez (TownsPerson)
PedSetUniqueModelStatus(149, 1) -- Mr Huntingdon (TownsPerson)
PedSetUniqueModelStatus(150, 1) -- Otto (Asylum) (Dropouts)
PedSetUniqueModelStatus(151, 1) -- Mr Wiggins (History Teacher)
PedSetUniqueModelStatus(152, 1) -- Floyd (TownsPerson)
PedSetUniqueModelStatus(153, 1) -- Leon (Asylum) (Dropouts)
PedSetUniqueModelStatus(154, 1) -- Henry (Asylum) (Dropouts)
PedSetUniqueModelStatus(155, 1) -- Fatty (Chocolate) (Nerds)
PedSetUniqueModelStatus(156, 1) -- Stan (Grocery Store Clerk) (TownsPerson)
PedSetUniqueModelStatus(157, 1) -- Handy (Shop Owner) (TownsPerson)
PedSetUniqueModelStatus(158, 1) -- Gregory (Orderly)
PedSetUniqueModelStatus(159, 1) -- Pedro (Halloween) (Little Kid)
PedSetUniqueModelStatus(160, 1) -- Gary (Halloween)
PedSetUniqueModelStatus(161, 1) -- Lucky (Halloween) (Greasers)
PedSetUniqueModelStatus(162, 1) -- Donald (Halloween) (Nerds)
PedSetUniqueModelStatus(163, 1) -- Parker (Halloween) (Preppy)
PedSetUniqueModelStatus(164, 1) -- Casey (Halloween) (Jocks)
PedSetUniqueModelStatus(165, 1) -- Petey (Halloween) (Student)
PedSetUniqueModelStatus(166, 1) -- Angie (Halloween) (Student)
PedSetUniqueModelStatus(167, 1) -- Pinky (Halloween) (Preppy)
PedSetUniqueModelStatus(168, 1) -- Damon (Halloween) (Jocks)
PedSetUniqueModelStatus(169, 1) -- Gordon (Halloween) (Student)
PedSetUniqueModelStatus(170, 1) -- Ivan (Halloween) (Bully)
PedSetUniqueModelStatus(171, 1) -- Trevor (Halloween) (Student)
PedSetUniqueModelStatus(172, 1) -- Bif (Boxing) (Beat up?) (Preppy)
PedSetUniqueModelStatus(173, 1) -- Vance (Halloween) (Greasers)
PedSetUniqueModelStatus(174, 1) -- Thad (Halloween) (Nerds)
PedSetUniqueModelStatus(175, 1) -- Pinky (Winter) (Preppy)
PedSetUniqueModelStatus(176, 1) -- Russell (Beat up) (Bully)
PedSetUniqueModelStatus(177, 1) -- Tad (Winter) (Preppy)
PedSetUniqueModelStatus(178, 1) -- Bryce (Winter) (Preppy)
PedSetUniqueModelStatus(179, 1) -- Justin (Winter) (Preppy)
PedSetUniqueModelStatus(480, 1) -- Angie (Cheerleader) (Student)
PedSetUniqueModelStatus(181, 1) -- Christy (Cheerleader) (Student)
PedSetUniqueModelStatus(182, 1) -- Pinky (Cheerleader) (Preppy)
PedSetUniqueModelStatus(183, 1) -- Mr Buba (TownsPerson)
PedSetUniqueModelStatus(184, 1) -- Mr Gordon (TownsPerson)
PedSetUniqueModelStatus(185, 1) -- Mrs Lisburn (TownsPerson)
PedSetUniqueModelStatus(186, 1) -- Fatty (Dungeon Master?) (Nerds)
PedSetUniqueModelStatus(187, 1) -- Betty (Punk Barber) (TownsPerson)
PedSetUniqueModelStatus(188, 1) -- Lightning (Fighting Midget) (Freakshow)
PedSetUniqueModelStatus(189, 1) -- Zeke (Fighting Midget) (Freakshow)
PedSetUniqueModelStatus(190, 1) -- Alfred (Skeleton Man) (Freakshow)
PedSetUniqueModelStatus(191, 1) -- Paris (Bearded Fat Lady) (Freakshow)
PedSetUniqueModelStatus(192, 1) -- Courtney (Mermaid) (Freakshow)
PedSetUniqueModelStatus(193, 1) -- Delilah (Siamese Twin #2) (Freakshow)
PedSetUniqueModelStatus(194, 1) -- Drew (Painted Man) (Freakshow)
PedSetUniqueModelStatus(195, 1) -- Castillo (Worker) (TownsPerson)
PedSetUniqueModelStatus(196, 1) -- Edgar (Gym) (Dropouts)
PedSetUniqueModelStatus(197, 1) -- Gurney (Gym) (Dropouts)
PedSetUniqueModelStatus(198, 1) -- Jerry (Gym) (Dropouts)
PedSetUniqueModelStatus(199, 1) -- Leon (Gym) (Dropouts)
PedSetUniqueModelStatus(200, 1) -- Hal (Gym) (Greasers)
PedSetUniqueModelStatus(201, 1) -- Norton (Gym) (Greasers)
PedSetUniqueModelStatus(202, 1) -- Peanut (Gym) (Greasers)
PedSetUniqueModelStatus(203, 1) -- Vance (Gym) (Greasers)
PedSetUniqueModelStatus(204, 1) -- Bo (Gym) (Jocks)
PedSetUniqueModelStatus(205, 1) -- Damon (Gym) (Jocks)
PedSetUniqueModelStatus(206, 1) -- Juri (Gym) (Jocks)
PedSetUniqueModelStatus(207, 1) -- Kirby (Gym) (Jocks)
PedSetUniqueModelStatus(208, 1) -- Algernon (Gym) (Nerds)
PedSetUniqueModelStatus(209, 1) -- Bucky (Gym) (Nerds)
PedSetUniqueModelStatus(210, 1) -- Thad (Gym) (Nerds)
PedSetUniqueModelStatus(211, 1) -- Parker (Gym) (Preppy)
PedSetUniqueModelStatus(212, 1) -- Justin (Gym) (Preppy)
PedSetUniqueModelStatus(213, 1) -- Tad (Gym) (Preppy)
PedSetUniqueModelStatus(214, 1) -- Gord (Gym) (Preppy)
PedSetUniqueModelStatus(215, 1) -- Earnest (Not sure) (Nerds)
PedSetUniqueModelStatus(216, 1) -- Ted (Not sure) (Jocks)
PedSetUniqueModelStatus(217, 1) -- Johnny (Not sure) (Greasers)
PedSetUniqueModelStatus(218, 1) -- Darby (Not sure) (Preppy)
PedSetUniqueModelStatus(219, 1) -- Pitbull 2
PedSetUniqueModelStatus(220, 1) -- Pitbull 3
PedSetUniqueModelStatus(221, 1) -- Edna (Makeup) (Cafeteria Cook)
PedSetUniqueModelStatus(222, 1) -- McInnis (Mill Worker)
PedSetUniqueModelStatus(223, 1) -- Johnson (Dock Worker)
PedSetUniqueModelStatus(224, 1) -- Thad (Pajamas) (Nerds)
PedSetUniqueModelStatus(225, 1) -- Sheldon (Pajamas) (Student)
PedSetUniqueModelStatus(226, 1) -- Pedro (Pajamas) (Student)
PedSetUniqueModelStatus(227, 1) -- Ivan (Pajamas) (Student)
PedSetUniqueModelStatus(228, 1) -- Trevor (Pajamas) (Student)
PedSetUniqueModelStatus(229, 1) -- Mr Burton (Disguised) (Gym Teacher)
PedSetUniqueModelStatus(230, 1) -- Mandy (Towel) (Jocks)
PedSetUniqueModelStatus(231, 1) -- Bo (Football) (Jocks)
PedSetUniqueModelStatus(232, 1) -- Casey (Football) (Jocks)
PedSetUniqueModelStatus(233, -1) -- Punching bag
PedSetUniqueModelStatus(234, 1) -- Officer Monson (Cop)
PedSetUniqueModelStatus(235, 1) -- Constantinos (Winter) (Student)
PedSetUniqueModelStatus(236, 1) -- McInnis (Construction Worker)
PedSetUniqueModelStatus(237, 1) -- McInnis (Construction Worker) (Alternate?)
PedSetUniqueModelStatus(238, 1) -- Officer Williams (Cop)
PedSetUniqueModelStatus(239, 1) -- Bryce (Boxing) (Beat up 1) (Preppy)
PedSetUniqueModelStatus(240, 1) -- Bryce (Boxing) (Beat up 2) (Preppy)
PedSetUniqueModelStatus(241, 1) -- Chad (Boxing) (Beat up 1) (Preppy)
PedSetUniqueModelStatus(242, 1) -- Chad (Boxing) (Beat up 2) (Preppy)
PedSetUniqueModelStatus(243, 1) -- Bif (Boxing) (Beat up 2) (Preppy)
PedSetUniqueModelStatus(244, 1) -- Justin (Boxing) (Beat up 1) (Preppy)
PedSetUniqueModelStatus(245, 1) -- Justin (Boxing) (Beat up 2) (Preppy)
PedSetUniqueModelStatus(246, 1) -- Parker (Boxing) (Beat up 1) (Preppy)
PedSetUniqueModelStatus(247, 1) -- Parker (Boxing) (Beat up 2) (Preppy)
PedSetUniqueModelStatus(248, 1) -- UNKNOWN NAME (Geography Teacher)
PedSetUniqueModelStatus(249, 1) -- UNKNOWN NAME (Music Teacher)
PedSetUniqueModelStatus(250, 1) -- UNKNOWN NAME (X-mas Elf 1) (Fake Santa Mission)
PedSetUniqueModelStatus(251, 1) -- UNKNOWN NAME (X-mas Elf 2) (Fake Santa Mission)
PedSetUniqueModelStatus(252, 1) -- Hobo Santa (X-mas) (Rudy)
PedSetUniqueModelStatus(253, 1) -- UNKNOWN NAME (Fake Santa)
PedSetUniqueModelStatus(254, 1) -- UNKNOWN NAME (Fake Santa) (Alternate Model?)
PedSetUniqueModelStatus(255, 1) -- Petey (NutCracker Costume) (Student)
PedSetUniqueModelStatus(256, 1) -- Eunice (Halloween) (Student)
PedSetUniqueModelStatus(257, 1) -- Melody (Flower Costume) (Little Kid)
PedSetUniqueModelStatus(258, 1) -- Pedro (Flower Costume) (Little Kid)
-- Ped Creation Code Start
-- NOTE: The below sections are all commented out except for one and ONLY one may be active at any given time. More then one
-- will result in a script crash.
-- Make sure that whichever section is enabled....you also edit the lower ActionTree section to match the section here.
-- Do the same with the other areas like for the healthbars and radar blips. For those sections the amount of lines have to be the same amount as the
-- ones in these sections and the local declarations must also match too or you will not see your peds in the radar. This allows you to keep an eye on them
-- and they also will follow you wherever you go in the map except for areas that ban either sex from entering an interior....
-- Jocks Clique
-- l_0_3 = PedCreatePoint(12, POINTLIST._BEGGINING, 1) -- Damon
-- l_0_4 = PedCreatePoint(13, POINTLIST._BEGGINING, 2) -- Kirby
-- l_0_5 = PedCreatePoint(14, POINTLIST._BEGGINING, 3) -- Mandy
-- l_0_6 = PedCreatePoint(15, POINTLIST._BEGGINING, 4) -- Dan
-- l_0_7 = PedCreatePoint(16, POINTLIST._BEGGINING, 5) -- Luis
-- l_0_8 = PedCreatePoint(17, POINTLIST._BEGGINING, 6) -- Casey
-- l_0_9 = PedCreatePoint(18, POINTLIST._BEGGINING, 7) -- Bo
-- l_1_0 = PedCreatePoint(19, POINTLIST._BEGGINING, 8) -- Ted
-- l_1_1 = PedCreatePoint(20, POINTLIST._BEGGINING, 9) -- Juri
-- l_1_2 = PedCreatePoint(88, POINTLIST._BEGGINING, 9) -- Mascot
-- Preps Clique
-- l_0_3 = PedCreatePoint(30, POINTLIST._BEGGINING, 1) -- Gord
-- l_0_4 = PedCreatePoint(31, POINTLIST._BEGGINING, 1) -- Tad
-- l_0_5 = PedCreatePoint(32, POINTLIST._BEGGINING, 1) -- Chad
-- l_0_6 = PedCreatePoint(33, POINTLIST._BEGGINING, 1) -- Bif
-- l_0_7 = PedCreatePoint(34, POINTLIST._BEGGINING, 1) -- Justin
-- l_0_8 = PedCreatePoint(35, POINTLIST._BEGGINING, 1) -- Bryce
-- l_0_9 = PedCreatePoint(220, POINTLIST._BEGGINING, 1) -- Dog
-- l_1_0 = PedCreatePoint(37, POINTLIST._BEGGINING, 1) -- Darby BOSS
-- l_1_1 = PedCreatePoint(38, POINTLIST._BEGGINING, 1) -- Pinky
-- l_1_2 = PedCreatePoint(40, POINTLIST._BEGGINING, 1) -- Parker
-- Greasers Clique
-- l_0_3 = PedCreatePoint(21, POINTLIST._BEGGINING, 1) -- Peanut
-- l_0_4 = PedCreatePoint(22, POINTLIST._BEGGINING, 1) -- Hal
-- l_0_5 = PedCreatePoint(23, POINTLIST._BEGGINING, 1) -- Johnny (BOSS)
-- l_0_6 = PedCreatePoint(24, POINTLIST._BEGGINING, 1) -- Lefty
-- l_0_7 = PedCreatePoint(25, POINTLIST._BEGGINING, 1) -- Lola
-- l_0_8 = PedCreatePoint(26, POINTLIST._BEGGINING, 1) -- Lucky
-- l_0_9 = PedCreatePoint(27, POINTLIST._BEGGINING, 1) -- Vance
-- l_1_0 = PedCreatePoint(28, POINTLIST._BEGGINING, 1) -- Ricky
-- l_1_1 = PedCreatePoint(29, POINTLIST._BEGGINING, 1) -- Norton
-- Nerds Clique
-- l_0_3 = PedCreatePoint(27, POINTLIST._BEGGINING, 1) -- Earnest (BOSS)
-- l_0_4 = PedCreatePoint(22, POINTLIST._BEGGINING, 1) -- Fatty
-- l_0_5 = PedCreatePoint(23, POINTLIST._BEGGINING, 1) -- Melvin
-- l_0_6 = PedCreatePoint(24, POINTLIST._BEGGINING, 1) -- Thad
-- l_0_7 = PedCreatePoint(25, POINTLIST._BEGGINING, 1) -- Bucky
-- l_0_8 = PedCreatePoint(26, POINTLIST._BEGGINING, 1) -- Cornelius
-- l_0_9 = PedCreatePoint(21, POINTLIST._BEGGINING, 1) -- Algernon
-- l_1_0 = PedCreatePoint(28, POINTLIST._BEGGINING, 1) -- Donald
-- l_1_1 = PedCreatePoint(29, POINTLIST._BEGGINING, 1) -- Beatrice
-- Bullies Clique
-- l_0_3 = PedCreatePoint(75, POINTLIST._BEGGINING, 1) -- Russell (BOSS)
-- l_0_4 = PedCreatePoint(102, POINTLIST._BEGGINING, 1) -- Troy
-- l_0_5 = PedCreatePoint(99, POINTLIST._BEGGINING, 1) -- Davis
-- l_0_6 = PedCreatePoint(85, POINTLIST._BEGGINING, 1) -- Trent
-- l_0_7 = PedCreatePoint(145, POINTLIST._BEGGINING, 1) -- Ethan
-- l_0_8 = PedCreatePoint(146, POINTLIST._BEGGINING, 1) -- Wade
-- l_0_9 = PedCreatePoint(147, POINTLIST._BEGGINING, 1) -- Tom
-- Students (non clique)
-- l_0_3 = PedCreatePoint(67, POINTLIST._BEGGINING, 1) -- Christy
-- l_0_4 = PedCreatePoint(66, POINTLIST._BEGGINING, 1) -- Sheldon
-- l_0_5 = PedCreatePoint(68, POINTLIST._BEGGINING, 1) -- Gloria
-- l_0_6 = PedCreatePoint(69, POINTLIST._BEGGINING, 1) -- Pedro
-- l_0_7 = PedCreatePoint(70, POINTLIST._BEGGINING, 1) -- Constantinos
-- l_0_8 = PedCreatePoint(71, POINTLIST._BEGGINING, 1) -- Ray
-- l_0_9 = PedCreatePoint(72, POINTLIST._BEGGINING, 1) -- Ivan
-- l_1_0 = PedCreatePoint(73, POINTLIST._BEGGINING, 1) -- Trevor
-- l_1_1 = PedCreatePoint(74, POINTLIST._BEGGINING, 1) -- Eunice
-- Girls!
l_0_3 = PedCreatePoint(67, POINTLIST._BEGGINING, 1) -- Christy
l_0_4 = PedCreatePoint(2, POINTLIST._BEGGINING, 1) -- Zoe
l_0_5 = PedCreatePoint(3, POINTLIST._BEGGINING, 1) -- Beatrice
l_0_6 = PedCreatePoint(14, POINTLIST._BEGGINING, 1) -- Mandy
l_0_7 = PedCreatePoint(25, POINTLIST._BEGGINING, 1) -- Lola
l_0_8 = PedCreatePoint(38, POINTLIST._BEGGINING, 1) -- Pinky
l_0_9 = PedCreatePoint(39, POINTLIST._BEGGINING, 1) -- Angie
l_1_0 = PedCreatePoint(68, POINTLIST._BEGGINING, 1) -- Gloria
l_1_1 = PedCreatePoint(74, POINTLIST._BEGGINING, 1) -- Eunice
l_1_2 = PedCreatePoint(137, POINTLIST._BEGGINING, 1) -- Melody
l_1_3 = PedCreatePoint(138, POINTLIST._BEGGINING, 1) -- Karen
l_1_4 = PedCreatePoint(187, POINTLIST._BEGGINING, 1) -- Betty
-- Teachers & Staff (Authority)
-- l_0_3 = PedCreatePoint(54, POINTLIST._BEGGINING, 1) -- Miss Peabody
-- l_0_4 = PedCreatePoint(55, POINTLIST._BEGGINING, 1) -- Mr Burton
-- l_0_5 = PedCreatePoint(56, POINTLIST._BEGGINING, 1) -- Mr Luntz
-- l_0_6 = PedCreatePoint(57, POINTLIST._BEGGINING, 1) -- Mr Galloway
-- l_0_7 = PedCreatePoint(58, POINTLIST._BEGGINING, 1) -- Edna
-- l_0_8 = PedCreatePoint(59, POINTLIST._BEGGINING, 1) -- Miss Winston
-- l_0_9 = PedCreatePoint(60, POINTLIST._BEGGINING, 1) -- Mrs McRae
-- l_1_0 = PedCreatePoint(61, POINTLIST._BEGGINING, 1) -- Mr Hattrick
-- l_1_1 = PedCreatePoint(62, POINTLIST._BEGGINING, 1) -- Mrs Carvin
-- l_1_2 = PedCreatePoint(63, POINTLIST._BEGGINING, 1) -- Ms Phillips
-- l_1_3 = PedCreatePoint(64, POINTLIST._BEGGINING, 1) -- Mr Slawter
-- l_1_4 = PedCreatePoint(65, POINTLIST._BEGGINING, 1) -- Dr Crabblesnitch
-- Dogs!
-- l_0_3 = PedCreatePoint(49, POINTLIST._BEGGINING, 1) -- Dog
-- l_0_4 = PedCreatePoint(50, POINTLIST._BEGGINING, 2) -- Dog
-- l_0_5 = PedCreatePoint(51, POINTLIST._BEGGINING, 3) -- Dog
-- l_0_6 = PedCreatePoint(52, POINTLIST._BEGGINING, 4) -- Dog
-- l_0_7 = PedCreatePoint(53, POINTLIST._BEGGINING, 5) -- Dog
-- l_0_8 = PedCreatePoint(54, POINTLIST._BEGGINING, 9) -- Dog
-- l_0_9 = PedCreatePoint(55, POINTLIST._BEGGINING, 6) -- Dog
-- l_1_0 = PedCreatePoint(56, POINTLIST._BEGGINING, 7) -- Dog
-- l_1_1 = PedCreatePoint(57, POINTLIST._BEGGINING, 8) -- Dog
-- l_1_2 = PedCreatePoint(58, POINTLIST._BEGGINING, 9) -- Dog
-- l_1_3 = PedCreatePoint(59, POINTLIST._BEGGINING, 10) -- Dog
-- Bodyguard ActionTree Code Start
-- Preps
-- PedSetActionTree(l_0_3, "/Global/P_Striker_A", "Act/Anim/P_Striker_A.act") -- Gord
-- PedSetActionTree(l_0_4, "/Global/P_Striker_A", "Act/Anim/P_Striker_A.act") -- Tad
-- PedSetActionTree(l_0_5, "/Global/P_Grappler_A", "Act/Anim/P_Grappler_A.act") -- Chad
-- PedSetActionTree(l_0_6, "/Global/P_Striker_A", "Act/Anim/P_Striker_A.act") -- Bif
-- PedSetActionTree(l_0_7, "/Global/P_Striker_B", "Act/Anim/P_Striker_B.act") -- Justin
-- PedSetActionTree(l_0_8, "/Global/P_Grappler_A", "Act/Anim/P_Grappler_A.act") -- Bryce
-- PedSetActionTree(l_0_9, "/Global/P_Striker_A", "Act/Anim/P_Striker_A.act") -- Dog
-- PedSetActionTree(l_1_0, "/Global/BOSS_Darby", "Act/Anim/BOSS_Darby.act") -- Darby BOSS
-- PedSetActionTree(l_1_1, "/Global/GS_Female_A", "Act/Anim/GS_Female_A.act") -- Pinky
-- PedSetActionTree(l_1_2, "/Global/P_Striker_B", "Act/Anim/P_Striker_B.act") -- Parker
--Greasers
-- PedSetActionTree(l_0_3, "/Global/G_Striker_A", "Act/Anim/G_Striker_A.act") -- Peanut
-- PedSetActionTree(l_0_4, "/Global/G_Grappler_A", "Act/Anim/G_Grappler_A.act") -- Hal
-- PedSetActionTree(l_0_5, "/Global/G_Johnny", "Act/Anim/G_Johnny.act") -- Johnny (BOSS)
-- PedSetActionTree(l_0_6, "/Global/G_Melee_A", "Act/Anim/G_Melee_A.act") -- Lefty
-- PedSetActionTree(l_0_7, "/Global/GS_Female_A", "Act/Anim/GS_Female_A.act") -- Lola
-- PedSetActionTree(l_0_8, "/Global/G_Striker_A", "Act/Anim/G_Striker_A.act") -- Lucky
-- PedSetActionTree(l_0_9, "/Global/G_Melee_A", "Act/Anim/G_Melee_A.act") -- Vance
-- PedSetActionTree(l_1_0, "/Global/G_Striker_A", "Act/Anim/G_Striker_A.act") -- Ricky
-- PedSetActionTree(l_1_1, "/Global/G_Grappler_A", "Act/Anim/G_Grappler_A.act") -- Norton
-- Nerds
-- PedSetActionTree(l_0_3, "/Global/N_Ranged_A", "Act/Anim/N_Ranged_A.act") -- Earnest (BOSS)
-- PedSetActionTree(l_0_4, "/Global/N_Striker_A", "Act/Anim/N_Striker_A.act") -- Fatty
-- PedSetActionTree(l_0_5, "/Global/N_Striker_A", "Act/Anim/N_Striker_A.act") -- Melvin
-- PedSetActionTree(l_0_6, "/Global/N_Ranged_A", "Act/Anim/N_Ranged_A.act") -- Thad
-- PedSetActionTree(l_0_7, "/Global/N_Ranged_A", "Act/Anim/N_Ranged_A.act") -- Bucky
-- PedSetActionTree(l_0_8, "/Global/N_Ranged_A", "Act/Anim/N_Ranged_A.act") -- Cornelius
-- PedSetActionTree(l_0_9, "/Global/N_Striker_B", "Act/Anim/N_Striker_B.act") -- Algernon
-- PedSetActionTree(l_1_0, "/Global/N_Ranged_A", "Act/Anim/N_Ranged_A.act") -- Donald
-- PedSetActionTree(l_1_1, "/Global/GS_Female_A", "Act/Anim/GS_Female_A.act") -- Beatrice
-- Bullies Clique
-- PedSetActionTree(l_0_3, "/Global/BOSS_Russell", "Act/Anim/Boss_Russell.act") -- Russell (BOSS)
-- PedSetActionTree(l_0_4, "/Global/GS_Male_A", "Act/Anim/GS_Male_A.act") -- Troy
-- PedSetActionTree(l_0_5, "/Global/GS_Female_A", "Act/Anim/GS_Female_A.act") -- Davis
-- PedSetActionTree(l_0_6, "/Global/GS_Male_A", "Act/Anim/GS_Male_A.act") -- Trent
-- PedSetActionTree(l_0_7, "/Global/GS_Male_A", "Act/Anim/GS_Male_A.act") -- Ethan
-- PedSetActionTree(l_0_8, "/Global/GS_Fat_A", "Act/Anim/GS_Fat_A.act") -- Wade
-- PedSetActionTree(l_0_9, "/Global/GS_Male_A", "Act/Anim/GS_Male_A.act") -- Tom
-- Students (Non Clique)
-- PedSetActionTree(l_0_3, "/Global/GS_Female_A", "Act/Anim/GS_Female_A.act") -- Christy
-- PedSetActionTree(l_0_4, "/Global/GS_Male_A", "Act/Anim/GS_Male_A.act") -- Sheldon
-- PedSetActionTree(l_0_5, "/Global/GS_Female_A", "Act/Anim/GS_Female_A.act") -- Gloria
-- PedSetActionTree(l_0_6, "/Global/GS_Male_A", "Act/Anim/GS_Male_A.act") -- Pedro
-- PedSetActionTree(l_0_7, "/Global/GS_Male_A", "Act/Anim/GS_Male_A.act") -- Constantinos
-- PedSetActionTree(l_0_8, "/Global/GS_Fat_A", "Act/Anim/GS_Fat_A.act") -- Ray
-- PedSetActionTree(l_0_9, "/Global/GS_Male_A", "Act/Anim/GS_Male_A.act") -- Ivan
-- PedSetActionTree(l_1_0, "/Global/GS_Male_A", "Act/Anim/GS_Male_A.act") -- Trevor
-- PedSetActionTree(l_1_1, "/Global/GS_Fat_A", "Act/Anim/GS_Fat_A.act") -- Eunice
-- Girls!
PedSetActionTree(l_0_3, "/Global/J_Grappler_A", "Act/Anim/J_Grappler_A.act") -- Christy
PedSetActionTree(l_0_4, "/Global/DO_Striker_A", "Act/Anim/DO_Striker_A.act") -- Zoe
PedSetActionTree(l_0_5, "/Global/N_Striker_A", "Act/Anim/N_Striker_A.act") -- Beatrice
PedSetActionTree(l_0_6, "/Global/J_Striker_A", "Act/Anim/J_Striker_A.act") -- Mandy
PedSetActionTree(l_0_7, "/Global/G_Striker_A", "Act/Anim/G_Striker_A.act") -- Lola
PedSetActionTree(l_0_8, "/Global/P_Striker_A", "Act/Anim/P_Striker_A.act") -- Pinky
PedSetActionTree(l_0_9, "/Global/P_Striker_B", "Act/Anim/P_Striker_B.act") -- Angie
PedSetActionTree(l_1_0, "/Global/J_Mascot", "Act/Anim/J_Mascot.act") -- Gloria
PedSetActionTree(l_1_1, "/Global/BOSS_Russell", "Act/Anim/BOSS_Russell.act") -- Eunice
PedSetActionTree(l_1_2, "/Global/G_Melee_A", "Act/Anim/G_Melee_A.act") -- Melody
PedSetActionTree(l_1_3, "/Global/G_Melee_A", "Act/Anim/G_Melee_A.act") -- Karen
PedSetActionTree(l_1_4, "/Global/G_Grappler_A", "Act/Anim/G_Grappler_A.act") -- Betty
-- Teachers & Staff (Authority)
-- PedSetActionTree(l_0_3, "/Global/TE_Female_A", "Act/Anim/TE_Female_A.act") -- Miss Peabody
-- PedSetActionTree(l_0_4, "/Global/Authority", "Act/Anim/Authority.act") -- Mr Burton
-- PedSetActionTree(l_0_5, "/Global/CV_Male_A", "Act/Anim/CV_Male_A.act") -- Mr Luntz
-- PedSetActionTree(l_0_6, "/Global/Authority", "Act/Anim/Authority.act") -- Mr Galloway
-- PedSetActionTree(l_0_7, "/Global/Authority", "Act/Anim/Authority.act") -- Edna
-- PedSetActionTree(l_0_8, "/Global/TE_Female_A", "Act/Anim/TE_Female_A") -- Miss Winston
-- PedSetActionTree(l_0_9, "/Global/TE_Female_A", "Act/Anim/TE_Female_A") -- Mrs McRae
-- PedSetActionTree(l_1_0, "/Global/Authority", "Act/Anim/Authority.act") -- Mr Hattrick
-- PedSetActionTree(l_1_1, "/Global/TE_Female_A", "Act/Anim/TE_Female_A") -- Mrs Carvin
-- PedSetActionTree(l_1_2, "/Global/TE_Female_A", "Act/Anim/TE_Female_A") -- Ms Phillips
-- PedSetActionTree(l_1_3, "/Global/Authority", "Act/Anim/Authority.act") -- Mr Slawter
-- PedSetActionTree(l_1_4, "/Global/Authority", "Act/Anim/Authority.act") -- Dr Crabblesnitch
--Bodyguard ActionNode Code Start
--
-- PedSetActionNode(l_1_0, "/Global/2_B/Empty", "Act/Conv/2_B.act")
-- PedSetActionNode(l_1_0, "/Global/BOSS_Russell/Default_KEY/RisingAttacks/HeavyAttacks/RisingAttacks", "Act/Anim/Boss_Russell.act") PlayerAI
-- PedSetTaskNode(l_1_0, "/Global/AI", "Act/AI/AI_DARBY_2_B.act")
-- PedSetTaskNode(gPlayer, "/Global/PlayerAI", "Act/PlayerAI.act")
ClothingGivePlayerOutfit("Panda")
-- test code start
-- PedSetAITree(gPlayer, "/Global/DarbyAI", "Act/AI/AI_DARBY_2_B.act")
-- PedSetActionTree(gPlayer, "/Global/BOSS_Darby", "Act/Anim/BOSS_Darby.act")
--PedSetMaxHealth(idDarby, 500)
--PedSetHealth(idDarby, 500)
-- PedOverrideStat(gPlayer, 38, 70)
-- PedOverrideStat(gPlayer, 39, 70)
-- PedSetInfiniteSprint(gPlayer, true)
-- test code end
--
-- Player ActionNode Code Start
--
-- Ally Blip Code Start
--
l_2_7 = AddBlipForChar(l_0_3, 6, 2, 2)
l_2_8 = AddBlipForChar(l_0_4, 6, 2, 2)
l_2_9 = AddBlipForChar(l_0_5, 6, 2, 2)
l_3_0 = AddBlipForChar(l_0_6, 6, 2, 2)
l_3_1 = AddBlipForChar(l_0_7, 6, 2, 2)
l_3_2 = AddBlipForChar(l_0_8, 6, 2, 2)
l_3_3 = AddBlipForChar(l_0_9, 6, 2, 2)
l_3_4 = AddBlipForChar(l_1_0, 6, 2, 2)
l_3_5 = AddBlipForChar(l_1_1, 6, 2, 2)
l_3_6 = AddBlipForChar(l_1_2, 6, 2, 2)
l_3_7 = AddBlipForChar(l_1_3, 6, 2, 2)
l_3_8 = AddBlipForChar(l_1_4, 6, 2, 2)
--
-- Infinite Sprint Code Start for Allies
--
PedSetInfiniteSprint(l_0_3, true)
PedSetInfiniteSprint(l_0_4, true)
PedSetInfiniteSprint(l_0_5, true)
PedSetInfiniteSprint(l_0_6, true)
PedSetInfiniteSprint(l_0_7, true)
PedSetInfiniteSprint(l_0_8, true)
PedSetInfiniteSprint(l_0_9, true)
PedSetInfiniteSprint(l_1_0, true)
PedSetInfiniteSprint(l_1_1, true)
PedSetInfiniteSprint(l_1_2, true)
PedSetInfiniteSprint(l_1_3, true)
PedSetInfiniteSprint(l_1_4, true)
--
-- Ped Recruit Code Start
--
-- This section defines the bodyguards. Instead of the model ids..the locals for each bodyguard are instead used.
-- it goes like this: for the first line gplayer (jimmy) is linked to l_0_3 which is christy as defined up above.
-- then the next line has l_0_3 linked to Zoe. This is the only way to have multiple bodyguards in bully and the only issue is that
-- the one linked to jimmy will attack first if jimmy is attacked....and if they are attacked then the one linked to them will
-- attack..and so on down the list. Think of this as a domino effect or chain reaction.
PedRecruitAlly(gPlayer, l_0_3)
PedRecruitAlly(l_0_3, l_0_4)
PedRecruitAlly(l_0_4, l_0_5)
PedRecruitAlly(l_0_5, l_0_6)
PedRecruitAlly(l_0_6, l_0_7)
PedRecruitAlly(l_0_7, l_0_8)
PedRecruitAlly(l_0_8, l_0_9)
PedRecruitAlly(l_0_9, l_1_0)
PedRecruitAlly(l_1_0, l_1_1)
PedRecruitAlly(l_1_1, l_1_2)
PedRecruitAlly(l_1_2, l_1_3)
PedRecruitAlly(l_1_3, l_1_4)
--
-- This is the Ped Guard Ped code section
-- This Section allows all bodyguards to attack anyone attacking the player and this feature is beta for now
-- It is used like this: PedGuardPed(Ped ID, Ped ID) First ped id is the ped that does the guarding. Second ped id is the ped you want them to guard
-- Code start
PedGuardPed(l_0_3, gPlayer)
PedGuardPed(l_0_4, gPlayer)
PedGuardPed(l_0_5, gPlayer)
PedGuardPed(l_0_6, gPlayer)
PedGuardPed(l_0_7, gPlayer)
PedGuardPed(l_0_8, gPlayer)
PedGuardPed(l_0_9, gPlayer)
PedGuardPed(l_1_0, gPlayer)
PedGuardPed(l_1_1, gPlayer)
PedGuardPed(l_1_2, gPlayer)
PedGuardPed(l_1_3, gPlayer)
-- Code end
--
-- Ped Healthbar Code Start
--
-- This section is for the ped healthbars and is buggy. ATM only two can be shown on the screen at any time...and as of this
-- mod release...cannot be removed from the screen either. So I left this code intact and will update this mod when I figure it
-- out.PedSetTaskNode(l_0_8, "/Global/AI", "Act/AI/AI.act")
PedShowHealthBar(l_0_3, true, "N_Christy", false)
PedShowHealthBar(l_0_4, true, "N_Zoe", false)
PedShowHealthBar(l_0_5, true, "N_Beatrice", false)
PedShowHealthBar(l_0_6, true, "N_Mandy", false)
PedShowHealthBar(l_0_7, true, "N_Lola", false)
PedShowHealthBar(l_0_8, true, "N_Pinky", false)
PedShowHealthBar(l_0_9, true, "N_Angie", false)
PedShowHealthBar(l_1_0, true, "N_Gloria", false)
PedShowHealthBar(l_1_1, true, "N_Eunice", false)
PedShowHealthBar(l_1_2, true, "N_Melody", false)
PedShowHealthBar(l_1_3, true, "N_Karen", false)
PedShowHealthBar(l_1_4, true, "N_Betty", false)
PedSetAllyAutoEngage(l_0_3, true)
PedSetAllyAutoEngage(l_0_4, true)
PedSetAllyAutoEngage(l_0_5, true)
PedSetAllyAutoEngage(l_0_6, true)
PedSetAllyAutoEngage(l_0_7, true)
PedSetAllyAutoEngage(l_0_8, true)
PedSetAllyAutoEngage(l_0_9, true)
PedSetAllyAutoEngage(l_1_0, true)
PedSetAllyAutoEngage(l_1_1, true)
PedSetAllyAutoEngage(l_1_2, true)
PedSetAllyAutoEngage(l_1_3, true)
PedSetAllyAutoEngage(l_1_4, true)
PedSetHealthBarQuiet(true)
-- Vehicle Locals Start
-- l_2_0 = 202 -- Truck
-- l_2_1 = -10.12 -- Truck
-- l_2_2 = 5.6007623 -- Truck
-- l_2_3 = 195 -- domestic
-- l_2_4 = -10.12 -- domestic
-- l_2_5 = 5.6007623 -- domestic
-- l_2_6 = 179 -- policecar
-- l_2_7 = -10.12 -- policecar
-- l_2_8 = 5.6007623 -- policecar
-- -- vehicle spawns start
-- VehicleCreateXYZ(297, l_2_0, l_2_1, l_2_2)
-- VehicleCreateXYZ(296, l_2_3, l_2_4, l_2_5)
-- VehicleCreateXYZ(295, 179, -10.12, 5.6007623)
-- VehicleCreateXYZ(294, 174, -10.12, 5.6007623)
-- VehicleCreateXYZ(293, 192, 5.2368, 5.4483881)
-- VehicleCreateXYZ(292, 197, 5.2368, 5.4483881)
-- VehicleCreateXYZ(291, 201, 5.2368, 5.4483881)
-- VehicleCreateXYZ(290, 205, 5.2368, 5.4483881)
-- AddBlipForCar(297, 0, 4)
-- Vehicls spawns end
end
--
-- DO NOT EDIT the sections under this line unless you know what you are doing!
--
F_MissionSetup = function()
LoadAnimationGroup("Russell") -- Russell Animation Group
-- Fighting Style Animation Groups Start
LoadAnimationGroup("P_Striker") -- Preps P_Striker Animation Group
LoadAnimationGroup("Boxing") -- Boxing Animation Group
LoadAnimationGroup("Straf_Prep") -- Prep Straf Animation Group
LoadAnimationGroup("STRAF_WREST") -- Wrestling Straf Animation Group
LoadAnimationGroup("B_Striker") -- Bully Fighting Style Animation Group (B_Striker)
LoadAnimationGroup("TE_FEMALE") -- Female Fighting Style Animation Group (adults)
LoadAnimationGroup("DO_Striker") -- Dropouts Fighting Style Animation Group (striker)
LoadAnimationGroup("DO_StrikeCombo") -- Dropouts Fighting Style Animation Group (striker combo)
LoadAnimationGroup("F_Nerds") -- Nerds Fighting Style Animation Group (straf?)
LoadAnimationGroup("N_Striker_B") -- Nerds Fighting Style Animation Group (striker)
LoadAnimationGroup("NPC_Adult") -- Adult Fighting Style Animation Group
LoadAnimationGroup("G_Johnny") -- Johnny BOSS Style Animation Group
-- Straf Animation Groups Start
LoadAnimationGroup("F_Girls") -- Girls Straf Style Animation Group
LoadAnimationGroup("F_Douts") -- Dropouts Straf Style Animation Group
LoadAnimationGroup("F_Greas") -- Greasers Straf Animation Group
LoadAnimationGroup("LE_ORDERLY") -- Asylum Orderly Fighting Style Animation Group
LoadAnimationGroup("F_CRAZY") -- Asylum Crazy Fighting Style Animation Group
LoadAnimationGroup("F_JOCKS") -- Jocks Straf Animation Group
LoadAnimationGroup("SNERD_I") -- Nerd Animation Group (fighting?)
LoadAnimationGroup("SNERD_S") -- Nerd Animation Group (fighting?)
-- MISC Animation Groups Start
LoadAnimationGroup("Halloween") -- Animation Group for the Halloween Flags and props
LoadAnimationGroup("F_Adult") -- Adult Straf Animation Group
LoadAnimationGroup("LE_Orderly") -- Orderly Animation Group (authority)
LoadAnimationGroup("F_Preps") -- Preps Straf Animation Group
LoadAnimationGroup("G_Grappler") -- Greasers grappler Animation Group (fighting)
LoadAnimationGroup("NPC_Mascot") -- Mascot Straf Animation Group
LoadAnimationGroup("IDLE_JOCK_A") -- Jock Idle Animation Group
LoadAnimationGroup("Earnest") -- Earnest Fighting Style (straf?) Animation Group
LoadAnimationGroup("G_Grappler") -- Greasers Fighting Style Animation Group (straf) (grappler)
LoadAnimationGroup("G_Striker") -- Greasers Fighting Style Animation Group (straf) (striker)
LoadAnimationGroup("Nemesis") -- Gary BOSS Fighting Style Animation Group
LoadAnimationGroup("N_STRIKER_B") -- Nerds Fighting Style Animation Group (striker)
LoadAnimationGroup("Straf_Wrest") -- Wrestling Straf Animation Group
LoadAnimationGroup("J_Grappler") -- Jocks Fighting Style Animation Group (straf) (grappler)
LoadAnimationGroup("NPC_Principal") -- Principal Fighting Style? Straf? Animation Group
LoadAnimationGroup("Authority") -- Authority Fighting Style Straf Animation Group
LoadAnimationGroup("C_Wrestling") -- Wrestling Straf Animation Group
-- SetFactionRespect(1, 0)
-- SetFactionRespect(2, 0)
-- SetFactionRespect(3, 0)
-- SetFactionRespect(4, 0)
-- SetFactionRespect(5, 0)
-- SetFactionRespect(6, 0)
-- SetFactionRespect(7, 0)
-- SetFactionRespect(8, 0)
-- SetFactionRespect(9, 0)
-- SetFactionRespect(10, 0)
-- SetFactionRespect(11, 0)
-- PedSetTypeToTypeAttitude(1, 1, 0)
-- PedSetTypeToTypeAttitude(2, 2, 0)
-- PedSetTypeToTypeAttitude(3, 3, 0)
-- PedSetTypeToTypeAttitude(4, 4, 0)
-- PedSetTypeToTypeAttitude(5, 5, 0)
-- PedSetTypeToTypeAttitude(6, 6, 0)
-- PedSetTypeToTypeAttitude(7, 7, 0)
-- PedSetTypeToTypeAttitude(8, 8, 0)
-- PedSetTypeToTypeAttitude(9, 9, 0)
-- PedSetTypeToTypeAttitude(10, 10, 0)
-- PedSetTypeToTypeAttitude(11, 11, 0)
-- PedSetGlobalAttitude_Rumble(true)
-- Vehicle Owner Start
--VehicleSetOwner(297, gPlayer)
--VehicleSetOwner(296, gPlayer)
--VehicleSetOwner(295, gPlayer)
--VehicleSetOwner(294, gPlayer)
--VehicleSetOwner(293, gPlayer)
--VehicleSetOwner(292, gPlayer)
--VehicleSetOwner(291, gPlayer)
--VehicleSetOwner(290, gPlayer)
-- Vehicle Owner End
-- Animation Loading End --
--Stat
-- GameSetPedStat(gPlayer, 38, 30)
-- GameSetPedStat(gPlayer, 11, 80)
-- PedSetActionTree(gPlayer, "/Global/G_Johnny", "Act/Anim/G_Johnny.act")
-- PedSetAIButes("Boxing")
-- PedSetFaction(gPlayer, 3) -- Female Teachers
-- PedSetFaction(gPlayer, 8) -- Female Teachers
-- PedSetFaction(gPlayer, 9) -- Townsperson
-- PedSetFaction(gPlayer, 10) -- Townsperson
-- PedSetFaction(gPlayer, 11) -- Townsperson
-- PedSetFaction(gPlayer, 7) -- Townsperson
-- PedSetFlag(gPlayer, 113, true)
-- AI Atributes Load --
-- PedSetAIButes("Russell") -- This sets the AI Attributes to be used. Currently the only known ones are: Boxing, Default, 5_B, 3_B, Russell, 1_09
-- PedSetAIButes("Russell")
-- LoadActionTree("Act/Anim/J_Grappler_A.act")
-- LoadActionTree("Act/Anim/LE_Orderly_A.act") -- This loads a actiontree into active memory
PlayerSetControl(1)
CameraFollowPed(gPlayer)
ClockSet(9, 30)
ClockSetTickRate(0.0060000000521541)
LaunchScript("SObjTest.lua")
-- collectgarbage()
end
F_UpdateGlobalHatred = function()
--PedSetTypeToTypeAttitude(4, 1, 0)
--PedSetTypeToTypeAttitude(2, 1, 0)
--PedSetTypeToTypeAttitude(5, 1, 0)
--PedSetTypeToTypeAttitude(1, 13, 1)
--PedSetTypeToTypeAttitude(1, 4, 0)
--PedSetTypeToTypeAttitude(2, 4, 0)
--PedSetTypeToTypeAttitude(5, 4, 0)
--PedSetTypeToTypeAttitude(4, 13, 1)
--PedSetTypeToTypeAttitude(1, 2, 0)
--PedSetTypeToTypeAttitude(4, 2, 0)
--PedSetTypeToTypeAttitude(5, 2, 0)
--PedSetTypeToTypeAttitude(2, 13, 1)
--PedSetTypeToTypeAttitude(1, 5, 0)
--PedSetTypeToTypeAttitude(2, 5, 0)
--PedSetTypeToTypeAttitude(4, 5, 0)
--PedSetTypeToTypeAttitude(5, 13, 1)
-- extra stuff
PedSetTypeToTypeAttitude(1, 1, 0)
PedSetTypeToTypeAttitude(2, 1, 0)
PedSetTypeToTypeAttitude(3, 1, 0)
PedSetTypeToTypeAttitude(4, 1, 0)
PedSetTypeToTypeAttitude(5, 1, 0)
PedSetTypeToTypeAttitude(6, 1, 0)
PedSetTypeToTypeAttitude(7, 1, 0)
PedSetTypeToTypeAttitude(8, 1, 0)
PedSetTypeToTypeAttitude(9, 1, 0)
PedSetTypeToTypeAttitude(10, 1, 0)
PedSetTypeToTypeAttitude(11, 1, 0)
PedSetTypeToTypeAttitude(1, 2, 0)
PedSetTypeToTypeAttitude(2, 2, 0)
PedSetTypeToTypeAttitude(3, 2, 0)
PedSetTypeToTypeAttitude(4, 2, 0)
PedSetTypeToTypeAttitude(5, 2, 0)
PedSetTypeToTypeAttitude(6, 2, 0)
PedSetTypeToTypeAttitude(7, 2, 0)
PedSetTypeToTypeAttitude(8, 2, 0)
PedSetTypeToTypeAttitude(9, 2, 0)
PedSetTypeToTypeAttitude(10, 2, 0)
PedSetTypeToTypeAttitude(11, 2, 0)
PedSetTypeToTypeAttitude(1, 3, 0)
PedSetTypeToTypeAttitude(2, 3, 0)
PedSetTypeToTypeAttitude(3, 3, 0)
PedSetTypeToTypeAttitude(4, 3, 0)
PedSetTypeToTypeAttitude(5, 3, 0)
PedSetTypeToTypeAttitude(6, 3, 0)
PedSetTypeToTypeAttitude(7, 3, 0)
PedSetTypeToTypeAttitude(8, 3, 0)
PedSetTypeToTypeAttitude(9, 3, 0)
PedSetTypeToTypeAttitude(10, 3, 0)
PedSetTypeToTypeAttitude(11, 3, 0)
PedSetTypeToTypeAttitude(1, 4, 0)
PedSetTypeToTypeAttitude(2, 4, 0)
PedSetTypeToTypeAttitude(3, 4, 0)
PedSetTypeToTypeAttitude(4, 4, 0)
PedSetTypeToTypeAttitude(5, 4, 0)
PedSetTypeToTypeAttitude(6, 4, 0)
PedSetTypeToTypeAttitude(7, 4, 0)
PedSetTypeToTypeAttitude(8, 4, 0)
PedSetTypeToTypeAttitude(9, 4, 0)
PedSetTypeToTypeAttitude(10, 4, 0)
PedSetTypeToTypeAttitude(11, 4, 0)
PedSetTypeToTypeAttitude(1, 5, 0)
PedSetTypeToTypeAttitude(2, 5, 0)
PedSetTypeToTypeAttitude(3, 5, 0)
PedSetTypeToTypeAttitude(4, 5, 0)
PedSetTypeToTypeAttitude(5, 5, 0)
PedSetTypeToTypeAttitude(6, 5, 0)
PedSetTypeToTypeAttitude(7, 5, 0)
PedSetTypeToTypeAttitude(8, 5, 0)
PedSetTypeToTypeAttitude(9, 5, 0)
PedSetTypeToTypeAttitude(10, 5, 0)
PedSetTypeToTypeAttitude(11, 5, 0)
PedSetTypeToTypeAttitude(1, 6, 0)
PedSetTypeToTypeAttitude(2, 6, 0)
PedSetTypeToTypeAttitude(3, 6, 0)
PedSetTypeToTypeAttitude(4, 6, 0)
PedSetTypeToTypeAttitude(5, 6, 0)
PedSetTypeToTypeAttitude(6, 6, 0)
PedSetTypeToTypeAttitude(7, 6, 0)
PedSetTypeToTypeAttitude(8, 6, 0)
PedSetTypeToTypeAttitude(9, 6, 0)
PedSetTypeToTypeAttitude(10, 6, 0)
PedSetTypeToTypeAttitude(11, 6, 0)
PedSetTypeToTypeAttitude(1, 7, 0)
PedSetTypeToTypeAttitude(2, 7, 0)
PedSetTypeToTypeAttitude(3, 7, 0)
PedSetTypeToTypeAttitude(4, 7, 0)
PedSetTypeToTypeAttitude(5, 7, 0)
PedSetTypeToTypeAttitude(6, 7, 0)
PedSetTypeToTypeAttitude(7, 7, 0)
PedSetTypeToTypeAttitude(8, 7, 0)
PedSetTypeToTypeAttitude(9, 7, 0)
PedSetTypeToTypeAttitude(10, 7, 0)
PedSetTypeToTypeAttitude(11, 7, 0)
PedSetTypeToTypeAttitude(1, 8, 0)
PedSetTypeToTypeAttitude(2, 8, 0)
PedSetTypeToTypeAttitude(3, 8, 0)
PedSetTypeToTypeAttitude(4, 8, 0)
PedSetTypeToTypeAttitude(5, 8, 0)
PedSetTypeToTypeAttitude(6, 8, 0)
PedSetTypeToTypeAttitude(7, 8, 0)
PedSetTypeToTypeAttitude(8, 8, 0)
PedSetTypeToTypeAttitude(9, 8, 0)
PedSetTypeToTypeAttitude(10, 8, 0)
PedSetTypeToTypeAttitude(11, 8, 0)
PedSetTypeToTypeAttitude(1, 9, 0)
PedSetTypeToTypeAttitude(2, 9, 0)
PedSetTypeToTypeAttitude(3, 9, 0)
PedSetTypeToTypeAttitude(4, 9, 0)
PedSetTypeToTypeAttitude(5, 9, 0)
PedSetTypeToTypeAttitude(6, 9, 0)
PedSetTypeToTypeAttitude(7, 9, 0)
PedSetTypeToTypeAttitude(8, 9, 0)
PedSetTypeToTypeAttitude(9, 9, 0)
PedSetTypeToTypeAttitude(10, 9, 0)
PedSetTypeToTypeAttitude(11, 9, 0)
PedSetTypeToTypeAttitude(1, 10, 0)
PedSetTypeToTypeAttitude(2, 10, 0)
PedSetTypeToTypeAttitude(3, 10, 0)
PedSetTypeToTypeAttitude(4, 10, 0)
PedSetTypeToTypeAttitude(5, 10, 0)
PedSetTypeToTypeAttitude(6, 10, 0)
PedSetTypeToTypeAttitude(7, 10, 0)
PedSetTypeToTypeAttitude(8, 10, 0)
PedSetTypeToTypeAttitude(9, 10, 0)
PedSetTypeToTypeAttitude(10, 10, 0)
PedSetTypeToTypeAttitude(11, 10, 0)
PedSetTypeToTypeAttitude(1, 11, 0)
PedSetTypeToTypeAttitude(2, 11, 0)
PedSetTypeToTypeAttitude(3, 11, 0)
PedSetTypeToTypeAttitude(4, 11, 0)
PedSetTypeToTypeAttitude(5, 11, 0)
PedSetTypeToTypeAttitude(6, 11, 0)
PedSetTypeToTypeAttitude(7, 11, 0)
PedSetTypeToTypeAttitude(8, 11, 0)
PedSetTypeToTypeAttitude(9, 11, 0)
PedSetTypeToTypeAttitude(10, 11, 0)
PedSetTypeToTypeAttitude(11, 11, 0)
PedSetTypeToTypeAttitude(1, 12, 0)
PedSetTypeToTypeAttitude(2, 12, 0)
PedSetTypeToTypeAttitude(3, 12, 0)
PedSetTypeToTypeAttitude(4, 12, 0)
PedSetTypeToTypeAttitude(5, 12, 0)
PedSetTypeToTypeAttitude(6, 12, 0)
PedSetTypeToTypeAttitude(7, 12, 0)
PedSetTypeToTypeAttitude(8, 12, 0)
PedSetTypeToTypeAttitude(9, 12, 0)
PedSetTypeToTypeAttitude(10, 12, 0)
PedSetTypeToTypeAttitude(11, 12, 0)
PedSetTypeToTypeAttitude(1, 13, 0)
PedSetTypeToTypeAttitude(2, 13, 0)
PedSetTypeToTypeAttitude(3, 13, 0)
PedSetTypeToTypeAttitude(4, 13, 0)
PedSetTypeToTypeAttitude(5, 13, 0)
PedSetTypeToTypeAttitude(6, 13, 0)
PedSetTypeToTypeAttitude(7, 13, 0)
PedSetTypeToTypeAttitude(8, 13, 0)
PedSetTypeToTypeAttitude(9, 13, 0)
PedSetTypeToTypeAttitude(10, 13, 0)
PedSetTypeToTypeAttitude(11, 13, 0)
-- Faction respect code start
SetFactionRespect(1, 100)
SetFactionRespect(2, 100)
SetFactionRespect(3, 100)
SetFactionRespect(4, 100)
SetFactionRespect(5, 100)
SetFactionRespect(6, 100)
SetFactionRespect(7, 100)
SetFactionRespect(8, 100)
SetFactionRespect(9, 100)
SetFactionRespect(10, 100)
SetFactionRespect(11, 100)
-- DisablePOI(true, true)
AreaSetPopulationSexGeneration(true, true)
AreaOverridePopulation(96, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8)
--AreaClearAllPeds()
PedSetGlobalAttitude_Rumble(true)
end
-- Start Mission Cleanup --
MissionCleanup = function()
-- Unload Animation Group(s) --
UnLoadAnimationGroup("Russell") -- Russell Animation Group
-- Fighting Style Animation Groups Start
UnLoadAnimationGroup("P_Striker") -- Preps P_Striker Animation Group
UnLoadAnimationGroup("Boxing") -- Boxing Animation Group
UnLoadAnimationGroup("Straf_Prep") -- Prep Straf Animation Group
UnLoadAnimationGroup("STRAF_WREST") -- Wrestling Straf Animation Group
UnLoadAnimationGroup("B_Striker") -- Bully Fighting Style Animation Group (B_Striker)
UnLoadAnimationGroup("TE_FEMALE") -- Female Fighting Style Animation Group (adults)
UnLoadAnimationGroup("DO_Striker") -- Dropouts Fighting Style Animation Group (striker)
UnLoadAnimationGroup("DO_StrikeCombo") -- Dropouts Fighting Style Animation Group (striker combo)
UnLoadAnimationGroup("F_Nerds") -- Nerds Fighting Style Animation Group (straf?)
UnLoadAnimationGroup("N_Striker_B") -- Nerds Fighting Style Animation Group (striker)
UnLoadAnimationGroup("NPC_Adult") -- Adult Fighting Style Animation Group
UnLoadAnimationGroup("G_Johnny") -- Johnny BOSS Style Animation Group
-- Straf Animation Groups Start
UnLoadAnimationGroup("F_Girls") -- Girls Straf Style Animation Group
UnLoadAnimationGroup("F_Douts") -- Dropouts Straf Style Animation Group
UnLoadAnimationGroup("F_Greas") -- Greasers Straf Animation Group
UnLoadAnimationGroup("LE_ORDERLY") -- Asylum Orderly Fighting Style Animation Group
UnLoadAnimationGroup("F_CRAZY") -- Asylum Crazy Fighting Style Animation Group
UnLoadAnimationGroup("F_JOCKS") -- Jocks Straf Animation Group
UnLoadAnimationGroup("SNERD_I") -- Nerd Animation Group (fighting?)
UnLoadAnimationGroup("SNERD_S") -- Nerd Animation Group (fighting?)
-- MISC Animation Groups Start
UnLoadAnimationGroup("Halloween") -- Animation Group for the Halloween Flags and props
UnLoadAnimationGroup("F_Adult") -- Adult Straf Animation Group
UnLoadAnimationGroup("LE_Orderly") -- Orderly Animation Group (authority)
UnLoadAnimationGroup("F_Preps") -- Preps Straf Animation Group
UnLoadAnimationGroup("G_Grappler") -- Greasers grappler Animation Group (fighting)
UnLoadAnimationGroup("NPC_Mascot") -- Mascot Straf Animation Group
UnLoadAnimationGroup("IDLE_JOCK_A") -- Jock Idle Animation Group
UnLoadAnimationGroup("Earnest") -- Earnest Fighting Style (straf?) Animation Group
UnLoadAnimationGroup("G_Grappler") -- Greasers Fighting Style Animation Group (straf) (grappler)
UnLoadAnimationGroup("G_Striker") -- Greasers Fighting Style Animation Group (straf) (striker)
UnLoadAnimationGroup("Nemesis") -- Gary BOSS Fighting Style Animation Group
UnLoadAnimationGroup("N_STRIKER_B") -- Nerds Fighting Style Animation Group (striker)
UnLoadAnimationGroup("Straf_Wrest") -- Wrestling Straf Animation Group
UnLoadAnimationGroup("J_Grappler") -- Jocks Fighting Style Animation Group (straf) (grappler)
UnLoadAnimationGroup("NPC_Principal") -- Principal Fighting Style? Straf? Animation Group
UnLoadAnimationGroup("Authority") -- Authority Fighting Style Straf Animation Group
UnLoadAnimationGroup("C_Wrestling") -- Wrestling Straf Animation Group
-- Animation Loading End --
ClearTextQueue() -- Clears all queued text in active memory
EnablePOI() -- Enables the POI Interface
gMissionRunning = false -- Terminates Mission Script
shared.gMissionEventFunction = nil -- This is for shared events
WeatherRelease() -- Releases the Weather Settings
PlayerSetControl(1) -- Sets Controller to be used for player
PlayerSetPunishmentPoints(0) -- Sets Punishment Points.
end
main = function() -- Function Call
F_MissionSetup() -- Mission Setup Function
F_UpdateGlobalHatred() -- Sets everyone to hate eachother and fight.
gMissionRunning = true -- This tells the game that this mission is running.
while gMissionRunning do -- This instructs bully to execute further tasks while the mission is running.
UpdateTextQueue() -- Updates the state of text stored in active memory
Wait(0) --Waits
end -- End Statement
end
Modify message
Report to moderator Issue a warning because of this message 60.48.33.134 (?)
[/noae]
-
I tried it and it worked for like 5 seconds it shows no timer (which is cool) and it shows the intro with the Beta V.1 and your name MadmaN then the game crashes. What might be the problem?
-
I will test the code right now and see if the same happens to me.
-
Okay, it crashed with me too.
I'll go over the script and find the fault.
-
Okay, it crashed with me too.
I'll go over the script and find the fault.
Thanks red!
-
I've fixed it. The source of the problem was some left over code from Mad's testing, as well as a typo.
Now I just need to do one more test, and I'll post the code.
-
Cool can't wait to try it out.. Hey red i got a request I've been reading the magazine and im not to sure about the fighting style code.. can you post an example of one also? like P_Striker_B? :biggrin:
-
Here it is. Just go through the code: It'll answer a lot of your questions.
[noae]-- Multi-Bodyguard Mod V1 BETA
-- By: |XF|-MadmaN [AR]
-- Please do not modify the above author name and if you wish to release a modified version of this
-- then just add a line that says: -- Modified by:
GlobalImportScript("SObjTest.lua") -- Globally loads the Debug Menu for BULLY
ImportScript("Library/LibTable.lua") -- Imports the libtable Library Script
ImportScript("SZone.lua") -- Imports the SZone Debug System Script
--l_0_0 = 60
MissionSetup = function()
DATLoad("6_02GDORM.DAT", 2)
DATInit()
-- local l_1_0 = 270 -- X Coordinates
-- local l_1_1 = -110 -- Y Coordinates
-- local l_1_2 = 6.4000000953674 -- Z Coordinates
AreaTransitionPoint(0, POINTLIST._6_02G_SPAWNPLAYER)
-- AreaTransitionXYZ(0, l_1_0, l_1_1, l_1_2) -- Areacode (0) with the XYZ Coordinates Locals as Defined above. Locals are always defined first for every function
AreaSetDoorPathableToPeds(TRIGGER._BUSDOORS, true)
VehicleBikeGeneratorToggle(true)
TextPrintString("Bully: Scholarship Edition Multi-Bodyguard Mod v1 BETA.", 4, 1) -- Mod Title Screen
Wait(5000) -- Waits 5 Seconds
TextPrintString("By: |XF|-MadmaN [AR] ", 4, 1) -- Author name(s) goes here
Wait(5000) -- Waits 5 Seconds
gMonitorAllies = true
-- Unique Model Status Code Start (freeroam) -1: not in freeroam 1: in freeroam (this number can be changed to a higher number to spawn multiple copies of the same ped)
PedSetUniqueModelStatus(2, 1) -- Zoe
PedSetUniqueModelStatus(3, 1) -- Beatrice
PedSetUniqueModelStatus(4, 1) -- Algernon
PedSetUniqueModelStatus(5, 1) -- Fatty
PedSetUniqueModelStatus(6, 1) -- Melvin
PedSetUniqueModelStatus(7, 1) -- Thad
PedSetUniqueModelStatus(8, 1) -- Bucky
PedSetUniqueModelStatus(9, 1) -- Cornelius
PedSetUniqueModelStatus(10, 1) -- Earnest
PedSetUniqueModelStatus(11, 1) -- Donald
PedSetUniqueModelStatus(12, 1) -- Damon
PedSetUniqueModelStatus(13, 1) -- Kirby
PedSetUniqueModelStatus(14, 1) -- Mandy
PedSetUniqueModelStatus(15, 1) -- Dan
PedSetUniqueModelStatus(16, 1) -- Luis
PedSetUniqueModelStatus(17, 1) -- Casey
PedSetUniqueModelStatus(18, 1) -- Bo
PedSetUniqueModelStatus(19, 1) -- Ted
PedSetUniqueModelStatus(20, 1) -- Juri
PedSetUniqueModelStatus(21, 1) -- Peanut (greasers)
PedSetUniqueModelStatus(22, 1) -- Hal (greasers)
PedSetUniqueModelStatus(23, 1) -- Johnny (greasers)
PedSetUniqueModelStatus(24, 1) -- Lefty (greasers)
PedSetUniqueModelStatus(25, 1) -- Lola (greasers)
PedSetUniqueModelStatus(26, 1) -- Lucky (greasers)
PedSetUniqueModelStatus(27, 1) -- Vance (greasers)
PedSetUniqueModelStatus(28, 1) -- Ricky (greasers)
PedSetUniqueModelStatus(29, 1) -- Norton (greasers)
PedSetUniqueModelStatus(30, 1) -- Gord
PedSetUniqueModelStatus(31, 1) -- Tad
PedSetUniqueModelStatus(32, 1) -- Chad
PedSetUniqueModelStatus(33, 1) -- Bif
PedSetUniqueModelStatus(34, 1) -- Justin
PedSetUniqueModelStatus(35, 1) -- Bryce
PedSetUniqueModelStatus(36, 1) -- Bryce (boxing)
PedSetUniqueModelStatus(37, 1) -- Darby
PedSetUniqueModelStatus(38, 1) -- Pinky
PedSetUniqueModelStatus(39, 1) -- Angie
PedSetUniqueModelStatus(40, 1) -- Parker
PedSetUniqueModelStatus(41, 1) -- Jerry
PedSetUniqueModelStatus(42, 1) -- Otto
PedSetUniqueModelStatus(43, 1) -- Leon
PedSetUniqueModelStatus(44, 1) -- Duncan
PedSetUniqueModelStatus(45, 1) -- Henry
PedSetUniqueModelStatus(46, 1) -- Gurney
PedSetUniqueModelStatus(47, 1) -- Omar
PedSetUniqueModelStatus(48, 1) -- Zoe (alternate outfit?)
PedSetUniqueModelStatus(49, 1) -- Max (prefect)
PedSetUniqueModelStatus(50, 1) -- Seth (prefect)
PedSetUniqueModelStatus(51, 1) -- Edward (prefect)
PedSetUniqueModelStatus(52, 1) -- Karl (prefect leader)
PedSetUniqueModelStatus(53, 1) -- Theo (Orderly)
PedSetUniqueModelStatus(54, 1) -- Miss Peabody (HallMonitor)
PedSetUniqueModelStatus(55, 1) -- Mr Burton (Gym Teacher)
PedSetUniqueModelStatus(56, 1) -- Mr Luntz (Janitor)
PedSetUniqueModelStatus(57, 1) -- Mr Galloway (English Teacher)
PedSetUniqueModelStatus(58, 1) -- Edna (Cafeteria Cook)
PedSetUniqueModelStatus(59, 1) -- Miss Winston (Secretary)
PedSetUniqueModelStatus(60, 1) -- Mrs McRae (Nurse)
PedSetUniqueModelStatus(61, 1) -- Mr Hattrick (Math Teacher)
PedSetUniqueModelStatus(62, 1) -- Mrs Carvin (Librarian)
PedSetUniqueModelStatus(63, 1) -- Ms Phillips (Art Teacher)
PedSetUniqueModelStatus(64, 1) -- Mr Slawter (Biology Teacher)
PedSetUniqueModelStatus(65, 1) -- Dr Crabblesnitch (Principal)
PedSetUniqueModelStatus(66, 1) -- Sheldon (student) (Little kid)
PedSetUniqueModelStatus(67, 1) -- Christy (student)
PedSetUniqueModelStatus(68, 1) -- Gloria (student) (Little kid)
PedSetUniqueModelStatus(69, 1) -- Pedro (student) (Little kid)
PedSetUniqueModelStatus(70, 1) -- Constantinos (student)
PedSetUniqueModelStatus(71, 1) -- Ray (Student) (fat kid)
PedSetUniqueModelStatus(72, 1) -- Ivan (student)
PedSetUniqueModelStatus(73, 1) -- Trevor (student)
PedSetUniqueModelStatus(74, 1) -- Eunice (student) (fat girl)
PedSetUniqueModelStatus(75, 1) -- Russell (Bully) (freeroam model)
PedSetUniqueModelStatus(76, 1) -- Dr Bambillo (shop owner) (TownsPerson)
PedSetUniqueModelStatus(77, 1) -- Mr Sullivan (shop owner) (TownsPerson)
PedSetUniqueModelStatus(78, 1) -- Ms Kopke (shop owner) (TownsPerson)
PedSetUniqueModelStatus(79, 1) -- Ms Rushinski (shop owner) (TownsPerson)
PedSetUniqueModelStatus(80, 1) -- Ms Isaacs (TownsPerson)
PedSetUniqueModelStatus(81, 1) -- Bethany Jones (TownsPerson)
PedSetUniqueModelStatus(82, 1) -- ORourke (fireman) (TownsPerson)
PedSetUniqueModelStatus(83, 1) -- Officer Monson (Cop) (TownsPerson)
PedSetUniqueModelStatus(84, 1) -- Zack Owens (Comic Store Owner) (TownsPerson)
PedSetUniqueModelStatus(85, 1) -- Trent (Bully)
PedSetUniqueModelStatus(86, 1) -- Tobias Mason (Bike Shop Owner) (TownsPerson)
PedSetUniqueModelStatus(87, 1) -- Mr Grant (Hobo)
PedSetUniqueModelStatus(88, 1) -- Mascot (Jocks)
PedSetUniqueModelStatus(89, 1) -- Mr Oh (Grocery Store Owner) (TownsPerson)
PedSetUniqueModelStatus(90, 1) -- Christy (winter) (student)
PedSetUniqueModelStatus(91, 1) -- Edgar (Dropouts Leader)
PedSetUniqueModelStatus(92, 1) -- Luis (Wrestling) (Jocks)
PedSetUniqueModelStatus(93, 1) -- Mandy (winter) (Jocks)
PedSetUniqueModelStatus(94, 1) -- Pinky (winter) (Preppy)
PedSetUniqueModelStatus(95, 1) -- Beatrice (winter) (Nerds)
PedSetUniqueModelStatus(96, 1) -- Lola (winter) (Greasers)
PedSetUniqueModelStatus(97, 1) -- Officer Williams (Cop) (TownsPerson)
PedSetUniqueModelStatus(98, 1) -- Jimmy (Wrestling) (Player)
PedSetUniqueModelStatus(99, 1) -- Davis (Bully)
PedSetUniqueModelStatus(100, 1) -- Mr Breckindale (TownsPerson)
PedSetUniqueModelStatus(101, 1) -- Mr Doolin (TownsPerson)
PedSetUniqueModelStatus(102, 1) -- Troy (Bully)
PedSetUniqueModelStatus(103, 1) -- Nate (Fire Owner) (TownsPerson)
PedSetUniqueModelStatus(104, 1) -- Mr Carmichael (Shop Owner)
PedSetUniqueModelStatus(105, 1) -- Nicky Charles (Shop Owner)
PedSetUniqueModelStatus(106, 1) -- Mr Watts (Chemistry Teacher)
PedSetUniqueModelStatus(107, 1) -- Miss Abby (Shop Owner)
PedSetUniqueModelStatus(108, 1) -- Mihailovich (Shop Owner)
PedSetUniqueModelStatus(109, 1) -- Kirby (Football Uniform)
PedSetUniqueModelStatus(110, 1) -- Ted (Football Uniform)
PedSetUniqueModelStatus(111, 1) -- Dan (Football Uniform)
PedSetUniqueModelStatus(112, 1) -- Damon (Football Uniform)
PedSetUniqueModelStatus(113, 1) -- Freeley (Carnival)
PedSetUniqueModelStatus(114, 1) -- Dorsey (Carnival)
PedSetUniqueModelStatus(115, 1) -- Hector (Carnival Midget) (DunkTank?)
PedSetUniqueModelStatus(116, 1) -- Osbourne (Shop Owner) (TownsPerson)
PedSetUniqueModelStatus(117, 1) -- Chad (Boxing) (Preppy)
PedSetUniqueModelStatus(118, 1) -- Justin (Boxing) (Preppy)
PedSetUniqueModelStatus(119, 1) -- Parker (Boxing) (Preppy)
PedSetUniqueModelStatus(120, 1) -- Maria Theresa (Barber) (Rich Area)
PedSetUniqueModelStatus(121, 1) -- Bob (Generic Wrestler) (Bully)
PedSetUniqueModelStatus(122, 1) -- Fatty (Wrestling) (Nerds)
PedSetUniqueModelStatus(123, 1) -- Chuck (Shop Owner) (TownsPerson)
PedSetUniqueModelStatus(124, 1) -- Ian (Shop Owner) (TownsPerson)
PedSetUniqueModelStatus(125, 1) -- Fenwick (Asylum Patient) (TownsPerson)
PedSetUniqueModelStatus(126, 1) -- Neil (Autoshop Teacher)
PedSetUniqueModelStatus(127, 1) -- Mr Svenson (Mailman)
PedSetUniqueModelStatus(128, 1) -- Denny (Tattooist)
PedSetUniqueModelStatus(129, 1) -- Mr Galloway (Asylum Model) (English Teacher)
PedSetUniqueModelStatus(130, 1) -- Gary (Final BOSS) (Student)
PedSetUniqueModelStatus(131, 1) -- Krakauer (Shop Owner) (TownsPerson)
PedSetUniqueModelStatus(132, 1) -- Mr Moratti (Barber) (Poor Area)
PedSetUniqueModelStatus(133, 1) -- Bif (Boxing) (Preppy)
PedSetUniqueModelStatus(134, 1) -- Petey (student)
PedSetUniqueModelStatus(135, 1) -- Mr Smith (TownsPerson)
PedSetUniqueModelStatus(136, 1) -- Rat
PedSetUniqueModelStatus(137, 1) -- Melody (Little Kid)
PedSetUniqueModelStatus(138, 1) -- Karen (Little Kid)
PedSetUniqueModelStatus(139, 1) -- Gordon (Student)
PedSetUniqueModelStatus(140, 1) -- Brandy (Midget)
PedSetUniqueModelStatus(141, 1) -- Pitbull 1
PedSetUniqueModelStatus(142, 1) -- Lance (Student)
PedSetUniqueModelStatus(143, 1) -- Crystal (Carnival Worker)
PedSetUniqueModelStatus(144, 1) -- Mr Martin (TownsPerson)
PedSetUniqueModelStatus(145, 1) -- Ethan (Bully)
PedSetUniqueModelStatus(146, 1) -- Wade (Bully)
PedSetUniqueModelStatus(147, 1) -- Tom (Bully)
PedSetUniqueModelStatus(148, 1) -- Mr Ramirez (TownsPerson)
PedSetUniqueModelStatus(149, 1) -- Mr Huntingdon (TownsPerson)
PedSetUniqueModelStatus(150, 1) -- Otto (Asylum) (Dropouts)
PedSetUniqueModelStatus(151, 1) -- Mr Wiggins (History Teacher)
PedSetUniqueModelStatus(152, 1) -- Floyd (TownsPerson)
PedSetUniqueModelStatus(153, 1) -- Leon (Asylum) (Dropouts)
PedSetUniqueModelStatus(154, 1) -- Henry (Asylum) (Dropouts)
PedSetUniqueModelStatus(155, 1) -- Fatty (Chocolate) (Nerds)
PedSetUniqueModelStatus(156, 1) -- Stan (Grocery Store Clerk) (TownsPerson)
PedSetUniqueModelStatus(157, 1) -- Handy (Shop Owner) (TownsPerson)
PedSetUniqueModelStatus(158, 1) -- Gregory (Orderly)
PedSetUniqueModelStatus(159, 1) -- Pedro (Halloween) (Little Kid)
PedSetUniqueModelStatus(160, 1) -- Gary (Halloween)
PedSetUniqueModelStatus(161, 1) -- Lucky (Halloween) (Greasers)
PedSetUniqueModelStatus(162, 1) -- Donald (Halloween) (Nerds)
PedSetUniqueModelStatus(163, 1) -- Parker (Halloween) (Preppy)
PedSetUniqueModelStatus(164, 1) -- Casey (Halloween) (Jocks)
PedSetUniqueModelStatus(165, 1) -- Petey (Halloween) (Student)
PedSetUniqueModelStatus(166, 1) -- Angie (Halloween) (Student)
PedSetUniqueModelStatus(167, 1) -- Pinky (Halloween) (Preppy)
PedSetUniqueModelStatus(168, 1) -- Damon (Halloween) (Jocks)
PedSetUniqueModelStatus(169, 1) -- Gordon (Halloween) (Student)
PedSetUniqueModelStatus(170, 1) -- Ivan (Halloween) (Bully)
PedSetUniqueModelStatus(171, 1) -- Trevor (Halloween) (Student)
PedSetUniqueModelStatus(172, 1) -- Bif (Boxing) (Beat up?) (Preppy)
PedSetUniqueModelStatus(173, 1) -- Vance (Halloween) (Greasers)
PedSetUniqueModelStatus(174, 1) -- Thad (Halloween) (Nerds)
PedSetUniqueModelStatus(175, 1) -- Pinky (Winter) (Preppy)
PedSetUniqueModelStatus(176, 1) -- Russell (Beat up) (Bully)
PedSetUniqueModelStatus(177, 1) -- Tad (Winter) (Preppy)
PedSetUniqueModelStatus(178, 1) -- Bryce (Winter) (Preppy)
PedSetUniqueModelStatus(179, 1) -- Justin (Winter) (Preppy)
PedSetUniqueModelStatus(480, 1) -- Angie (Cheerleader) (Student)
PedSetUniqueModelStatus(181, 1) -- Christy (Cheerleader) (Student)
PedSetUniqueModelStatus(182, 1) -- Pinky (Cheerleader) (Preppy)
PedSetUniqueModelStatus(183, 1) -- Mr Buba (TownsPerson)
PedSetUniqueModelStatus(184, 1) -- Mr Gordon (TownsPerson)
PedSetUniqueModelStatus(185, 1) -- Mrs Lisburn (TownsPerson)
PedSetUniqueModelStatus(186, 1) -- Fatty (Dungeon Master?) (Nerds)
PedSetUniqueModelStatus(187, 1) -- Betty (Punk Barber) (TownsPerson)
PedSetUniqueModelStatus(188, 1) -- Lightning (Fighting Midget) (Freakshow)
PedSetUniqueModelStatus(189, 1) -- Zeke (Fighting Midget) (Freakshow)
PedSetUniqueModelStatus(190, 1) -- Alfred (Skeleton Man) (Freakshow)
PedSetUniqueModelStatus(191, 1) -- Paris (Bearded Fat Lady) (Freakshow)
PedSetUniqueModelStatus(192, 1) -- Courtney (Mermaid) (Freakshow)
PedSetUniqueModelStatus(193, 1) -- Delilah (Siamese Twin #2) (Freakshow)
PedSetUniqueModelStatus(194, 1) -- Drew (Painted Man) (Freakshow)
PedSetUniqueModelStatus(195, 1) -- Castillo (Worker) (TownsPerson)
PedSetUniqueModelStatus(196, 1) -- Edgar (Gym) (Dropouts)
PedSetUniqueModelStatus(197, 1) -- Gurney (Gym) (Dropouts)
PedSetUniqueModelStatus(198, 1) -- Jerry (Gym) (Dropouts)
PedSetUniqueModelStatus(199, 1) -- Leon (Gym) (Dropouts)
PedSetUniqueModelStatus(200, 1) -- Hal (Gym) (Greasers)
PedSetUniqueModelStatus(201, 1) -- Norton (Gym) (Greasers)
PedSetUniqueModelStatus(202, 1) -- Peanut (Gym) (Greasers)
PedSetUniqueModelStatus(203, 1) -- Vance (Gym) (Greasers)
PedSetUniqueModelStatus(204, 1) -- Bo (Gym) (Jocks)
PedSetUniqueModelStatus(205, 1) -- Damon (Gym) (Jocks)
PedSetUniqueModelStatus(206, 1) -- Juri (Gym) (Jocks)
PedSetUniqueModelStatus(207, 1) -- Kirby (Gym) (Jocks)
PedSetUniqueModelStatus(208, 1) -- Algernon (Gym) (Nerds)
PedSetUniqueModelStatus(209, 1) -- Bucky (Gym) (Nerds)
PedSetUniqueModelStatus(210, 1) -- Thad (Gym) (Nerds)
PedSetUniqueModelStatus(211, 1) -- Parker (Gym) (Preppy)
PedSetUniqueModelStatus(212, 1) -- Justin (Gym) (Preppy)
PedSetUniqueModelStatus(213, 1) -- Tad (Gym) (Preppy)
PedSetUniqueModelStatus(214, 1) -- Gord (Gym) (Preppy)
PedSetUniqueModelStatus(215, 1) -- Earnest (Not sure) (Nerds)
PedSetUniqueModelStatus(216, 1) -- Ted (Not sure) (Jocks)
PedSetUniqueModelStatus(217, 1) -- Johnny (Not sure) (Greasers)
PedSetUniqueModelStatus(218, 1) -- Darby (Not sure) (Preppy)
PedSetUniqueModelStatus(219, 1) -- Pitbull 2
PedSetUniqueModelStatus(220, 1) -- Pitbull 3
PedSetUniqueModelStatus(221, 1) -- Edna (Makeup) (Cafeteria Cook)
PedSetUniqueModelStatus(222, 1) -- McInnis (Mill Worker)
PedSetUniqueModelStatus(223, 1) -- Johnson (Dock Worker)
PedSetUniqueModelStatus(224, 1) -- Thad (Pajamas) (Nerds)
PedSetUniqueModelStatus(225, 1) -- Sheldon (Pajamas) (Student)
PedSetUniqueModelStatus(226, 1) -- Pedro (Pajamas) (Student)
PedSetUniqueModelStatus(227, 1) -- Ivan (Pajamas) (Student)
PedSetUniqueModelStatus(228, 1) -- Trevor (Pajamas) (Student)
PedSetUniqueModelStatus(229, 1) -- Mr Burton (Disguised) (Gym Teacher)
PedSetUniqueModelStatus(230, 1) -- Mandy (Towel) (Jocks)
PedSetUniqueModelStatus(231, 1) -- Bo (Football) (Jocks)
PedSetUniqueModelStatus(232, 1) -- Casey (Football) (Jocks)
PedSetUniqueModelStatus(233, -1) -- Punching bag
PedSetUniqueModelStatus(234, 1) -- Officer Monson (Cop)
PedSetUniqueModelStatus(235, 1) -- Constantinos (Winter) (Student)
PedSetUniqueModelStatus(236, 1) -- McInnis (Construction Worker)
PedSetUniqueModelStatus(237, 1) -- McInnis (Construction Worker) (Alternate?)
PedSetUniqueModelStatus(238, 1) -- Officer Williams (Cop)
PedSetUniqueModelStatus(239, 1) -- Bryce (Boxing) (Beat up 1) (Preppy)
PedSetUniqueModelStatus(240, 1) -- Bryce (Boxing) (Beat up 2) (Preppy)
PedSetUniqueModelStatus(241, 1) -- Chad (Boxing) (Beat up 1) (Preppy)
PedSetUniqueModelStatus(242, 1) -- Chad (Boxing) (Beat up 2) (Preppy)
PedSetUniqueModelStatus(243, 1) -- Bif (Boxing) (Beat up 2) (Preppy)
PedSetUniqueModelStatus(244, 1) -- Justin (Boxing) (Beat up 1) (Preppy)
PedSetUniqueModelStatus(245, 1) -- Justin (Boxing) (Beat up 2) (Preppy)
PedSetUniqueModelStatus(246, 1) -- Parker (Boxing) (Beat up 1) (Preppy)
PedSetUniqueModelStatus(247, 1) -- Parker (Boxing) (Beat up 2) (Preppy)
PedSetUniqueModelStatus(248, 1) -- UNKNOWN NAME (Geography Teacher)
PedSetUniqueModelStatus(249, 1) -- UNKNOWN NAME (Music Teacher)
PedSetUniqueModelStatus(250, 1) -- UNKNOWN NAME (X-mas Elf 1) (Fake Santa Mission)
PedSetUniqueModelStatus(251, 1) -- UNKNOWN NAME (X-mas Elf 2) (Fake Santa Mission)
PedSetUniqueModelStatus(252, 1) -- Hobo Santa (X-mas) (Rudy)
PedSetUniqueModelStatus(253, 1) -- UNKNOWN NAME (Fake Santa)
PedSetUniqueModelStatus(254, 1) -- UNKNOWN NAME (Fake Santa) (Alternate Model?)
PedSetUniqueModelStatus(255, 1) -- Petey (NutCracker Costume) (Student)
PedSetUniqueModelStatus(256, 1) -- Eunice (Halloween) (Student)
PedSetUniqueModelStatus(257, 1) -- Melody (Flower Costume) (Little Kid)
PedSetUniqueModelStatus(258, 1) -- Pedro (Flower Costume) (Little Kid)
-- Ped Creation Code Start
-- NOTE: The below sections are all commented out except for one and ONLY one may be active at any given time. More then one
-- will result in a script crash.
-- Make sure that whichever section is enabled....you also edit the lower ActionTree section to match the section here.
-- Do the same with the other areas like for the healthbars and radar blips. For those sections the amount of lines have to be the same amount as the
-- ones in these sections and the local declarations must also match too or you will not see your peds in the radar. This allows you to keep an eye on them
-- and they also will follow you wherever you go in the map except for areas that ban either sex from entering an interior....
-- Jocks Clique
-- l_0_3 = PedCreatePoint(12, POINTLIST._BEGGINING, 1) -- Damon
-- l_0_4 = PedCreatePoint(13, POINTLIST._BEGGINING, 2) -- Kirby
-- l_0_5 = PedCreatePoint(14, POINTLIST._BEGGINING, 3) -- Mandy
-- l_0_6 = PedCreatePoint(15, POINTLIST._BEGGINING, 4) -- Dan
-- l_0_7 = PedCreatePoint(16, POINTLIST._BEGGINING, 5) -- Luis
-- l_0_8 = PedCreatePoint(17, POINTLIST._BEGGINING, 6) -- Casey
-- l_0_9 = PedCreatePoint(18, POINTLIST._BEGGINING, 7) -- Bo
-- l_1_0 = PedCreatePoint(19, POINTLIST._BEGGINING, 8) -- Ted
-- l_1_1 = PedCreatePoint(20, POINTLIST._BEGGINING, 9) -- Juri
-- l_1_2 = PedCreatePoint(88, POINTLIST._BEGGINING, 9) -- Mascot
-- Preps Clique
-- l_0_3 = PedCreatePoint(30, POINTLIST._BEGGINING, 1) -- Gord
-- l_0_4 = PedCreatePoint(31, POINTLIST._BEGGINING, 1) -- Tad
-- l_0_5 = PedCreatePoint(32, POINTLIST._BEGGINING, 1) -- Chad
-- l_0_6 = PedCreatePoint(33, POINTLIST._BEGGINING, 1) -- Bif
-- l_0_7 = PedCreatePoint(34, POINTLIST._BEGGINING, 1) -- Justin
-- l_0_8 = PedCreatePoint(35, POINTLIST._BEGGINING, 1) -- Bryce
-- l_0_9 = PedCreatePoint(220, POINTLIST._BEGGINING, 1) -- Dog
-- l_1_0 = PedCreatePoint(37, POINTLIST._BEGGINING, 1) -- Darby BOSS
-- l_1_1 = PedCreatePoint(38, POINTLIST._BEGGINING, 1) -- Pinky
-- l_1_2 = PedCreatePoint(40, POINTLIST._BEGGINING, 1) -- Parker
-- Greasers Clique
-- l_0_3 = PedCreatePoint(21, POINTLIST._BEGGINING, 1) -- Peanut
-- l_0_4 = PedCreatePoint(22, POINTLIST._BEGGINING, 1) -- Hal
-- l_0_5 = PedCreatePoint(23, POINTLIST._BEGGINING, 1) -- Johnny (BOSS)
-- l_0_6 = PedCreatePoint(24, POINTLIST._BEGGINING, 1) -- Lefty
-- l_0_7 = PedCreatePoint(25, POINTLIST._BEGGINING, 1) -- Lola
-- l_0_8 = PedCreatePoint(26, POINTLIST._BEGGINING, 1) -- Lucky
-- l_0_9 = PedCreatePoint(27, POINTLIST._BEGGINING, 1) -- Vance
-- l_1_0 = PedCreatePoint(28, POINTLIST._BEGGINING, 1) -- Ricky
-- l_1_1 = PedCreatePoint(29, POINTLIST._BEGGINING, 1) -- Norton
-- Nerds Clique
-- l_0_3 = PedCreatePoint(27, POINTLIST._BEGGINING, 1) -- Earnest (BOSS)
-- l_0_4 = PedCreatePoint(22, POINTLIST._BEGGINING, 1) -- Fatty
-- l_0_5 = PedCreatePoint(23, POINTLIST._BEGGINING, 1) -- Melvin
-- l_0_6 = PedCreatePoint(24, POINTLIST._BEGGINING, 1) -- Thad
-- l_0_7 = PedCreatePoint(25, POINTLIST._BEGGINING, 1) -- Bucky
-- l_0_8 = PedCreatePoint(26, POINTLIST._BEGGINING, 1) -- Cornelius
-- l_0_9 = PedCreatePoint(21, POINTLIST._BEGGINING, 1) -- Algernon
-- l_1_0 = PedCreatePoint(28, POINTLIST._BEGGINING, 1) -- Donald
-- l_1_1 = PedCreatePoint(29, POINTLIST._BEGGINING, 1) -- Beatrice
-- Bullies Clique
-- l_0_3 = PedCreatePoint(75, POINTLIST._BEGGINING, 1) -- Russell (BOSS)
-- l_0_4 = PedCreatePoint(102, POINTLIST._BEGGINING, 1) -- Troy
-- l_0_5 = PedCreatePoint(99, POINTLIST._BEGGINING, 1) -- Davis
-- l_0_6 = PedCreatePoint(85, POINTLIST._BEGGINING, 1) -- Trent
-- l_0_7 = PedCreatePoint(145, POINTLIST._BEGGINING, 1) -- Ethan
-- l_0_8 = PedCreatePoint(146, POINTLIST._BEGGINING, 1) -- Wade
-- l_0_9 = PedCreatePoint(147, POINTLIST._BEGGINING, 1) -- Tom
-- Students (non clique)
-- l_0_3 = PedCreatePoint(67, POINTLIST._BEGGINING, 1) -- Christy
-- l_0_4 = PedCreatePoint(66, POINTLIST._BEGGINING, 1) -- Sheldon
-- l_0_5 = PedCreatePoint(68, POINTLIST._BEGGINING, 1) -- Gloria
-- l_0_6 = PedCreatePoint(69, POINTLIST._BEGGINING, 1) -- Pedro
-- l_0_7 = PedCreatePoint(70, POINTLIST._BEGGINING, 1) -- Constantinos
-- l_0_8 = PedCreatePoint(71, POINTLIST._BEGGINING, 1) -- Ray
-- l_0_9 = PedCreatePoint(72, POINTLIST._BEGGINING, 1) -- Ivan
-- l_1_0 = PedCreatePoint(73, POINTLIST._BEGGINING, 1) -- Trevor
-- l_1_1 = PedCreatePoint(74, POINTLIST._BEGGINING, 1) -- Eunice
-- Girls!
l_0_3 = PedCreatePoint(67, POINTLIST._BEGGINING, 1) -- Christy
l_0_4 = PedCreatePoint(2, POINTLIST._BEGGINING, 1) -- Zoe
l_0_5 = PedCreatePoint(3, POINTLIST._BEGGINING, 1) -- Beatrice
l_0_6 = PedCreatePoint(14, POINTLIST._BEGGINING, 1) -- Mandy
l_0_7 = PedCreatePoint(25, POINTLIST._BEGGINING, 1) -- Lola
l_0_8 = PedCreatePoint(38, POINTLIST._BEGGINING, 1) -- Pinky
l_0_9 = PedCreatePoint(39, POINTLIST._BEGGINING, 1) -- Angie
l_1_0 = PedCreatePoint(68, POINTLIST._BEGGINING, 1) -- Gloria
l_1_1 = PedCreatePoint(74, POINTLIST._BEGGINING, 1) -- Eunice
l_1_2 = PedCreatePoint(137, POINTLIST._BEGGINING, 1) -- Melody
l_1_3 = PedCreatePoint(138, POINTLIST._BEGGINING, 1) -- Karen
l_1_4 = PedCreatePoint(187, POINTLIST._BEGGINING, 1) -- Betty
-- Teachers & Staff (Authority)
-- l_0_3 = PedCreatePoint(54, POINTLIST._BEGGINING, 1) -- Miss Peabody
-- l_0_4 = PedCreatePoint(55, POINTLIST._BEGGINING, 1) -- Mr Burton
-- l_0_5 = PedCreatePoint(56, POINTLIST._BEGGINING, 1) -- Mr Luntz
-- l_0_6 = PedCreatePoint(57, POINTLIST._BEGGINING, 1) -- Mr Galloway
-- l_0_7 = PedCreatePoint(58, POINTLIST._BEGGINING, 1) -- Edna
-- l_0_8 = PedCreatePoint(59, POINTLIST._BEGGINING, 1) -- Miss Winston
-- l_0_9 = PedCreatePoint(60, POINTLIST._BEGGINING, 1) -- Mrs McRae
-- l_1_0 = PedCreatePoint(61, POINTLIST._BEGGINING, 1) -- Mr Hattrick
-- l_1_1 = PedCreatePoint(62, POINTLIST._BEGGINING, 1) -- Mrs Carvin
-- l_1_2 = PedCreatePoint(63, POINTLIST._BEGGINING, 1) -- Ms Phillips
-- l_1_3 = PedCreatePoint(64, POINTLIST._BEGGINING, 1) -- Mr Slawter
-- l_1_4 = PedCreatePoint(65, POINTLIST._BEGGINING, 1) -- Dr Crabblesnitch
-- Dogs!
-- l_0_3 = PedCreatePoint(49, POINTLIST._BEGGINING, 1) -- Dog
-- l_0_4 = PedCreatePoint(50, POINTLIST._BEGGINING, 2) -- Dog
-- l_0_5 = PedCreatePoint(51, POINTLIST._BEGGINING, 3) -- Dog
-- l_0_6 = PedCreatePoint(52, POINTLIST._BEGGINING, 4) -- Dog
-- l_0_7 = PedCreatePoint(53, POINTLIST._BEGGINING, 5) -- Dog
-- l_0_8 = PedCreatePoint(54, POINTLIST._BEGGINING, 9) -- Dog
-- l_0_9 = PedCreatePoint(55, POINTLIST._BEGGINING, 6) -- Dog
-- l_1_0 = PedCreatePoint(56, POINTLIST._BEGGINING, 7) -- Dog
-- l_1_1 = PedCreatePoint(57, POINTLIST._BEGGINING, 8) -- Dog
-- l_1_2 = PedCreatePoint(58, POINTLIST._BEGGINING, 9) -- Dog
-- l_1_3 = PedCreatePoint(59, POINTLIST._BEGGINING, 10) -- Dog
-- Bodyguard ActionTree Code Start
-- Preps
-- PedSetActionTree(l_0_3, "/Global/P_Striker_A", "Act/Anim/P_Striker_A.act") -- Gord
-- PedSetActionTree(l_0_4, "/Global/P_Striker_A", "Act/Anim/P_Striker_A.act") -- Tad
-- PedSetActionTree(l_0_5, "/Global/P_Grappler_A", "Act/Anim/P_Grappler_A.act") -- Chad
-- PedSetActionTree(l_0_6, "/Global/P_Striker_A", "Act/Anim/P_Striker_A.act") -- Bif
-- PedSetActionTree(l_0_7, "/Global/P_Striker_B", "Act/Anim/P_Striker_B.act") -- Justin
-- PedSetActionTree(l_0_8, "/Global/P_Grappler_A", "Act/Anim/P_Grappler_A.act") -- Bryce
-- PedSetActionTree(l_0_9, "/Global/P_Striker_A", "Act/Anim/P_Striker_A.act") -- Dog
-- PedSetActionTree(l_1_0, "/Global/BOSS_Darby", "Act/Anim/BOSS_Darby.act") -- Darby BOSS
-- PedSetActionTree(l_1_1, "/Global/GS_Female_A", "Act/Anim/GS_Female_A.act") -- Pinky
-- PedSetActionTree(l_1_2, "/Global/P_Striker_B", "Act/Anim/P_Striker_B.act") -- Parker
--Greasers
-- PedSetActionTree(l_0_3, "/Global/G_Striker_A", "Act/Anim/G_Striker_A.act") -- Peanut
-- PedSetActionTree(l_0_4, "/Global/G_Grappler_A", "Act/Anim/G_Grappler_A.act") -- Hal
-- PedSetActionTree(l_0_5, "/Global/G_Johnny", "Act/Anim/G_Johnny.act") -- Johnny (BOSS)
-- PedSetActionTree(l_0_6, "/Global/G_Melee_A", "Act/Anim/G_Melee_A.act") -- Lefty
-- PedSetActionTree(l_0_7, "/Global/GS_Female_A", "Act/Anim/GS_Female_A.act") -- Lola
-- PedSetActionTree(l_0_8, "/Global/G_Striker_A", "Act/Anim/G_Striker_A.act") -- Lucky
-- PedSetActionTree(l_0_9, "/Global/G_Melee_A", "Act/Anim/G_Melee_A.act") -- Vance
-- PedSetActionTree(l_1_0, "/Global/G_Striker_A", "Act/Anim/G_Striker_A.act") -- Ricky
-- PedSetActionTree(l_1_1, "/Global/G_Grappler_A", "Act/Anim/G_Grappler_A.act") -- Norton
-- Nerds
-- PedSetActionTree(l_0_3, "/Global/N_Ranged_A", "Act/Anim/N_Ranged_A.act") -- Earnest (BOSS)
-- PedSetActionTree(l_0_4, "/Global/N_Striker_A", "Act/Anim/N_Striker_A.act") -- Fatty
-- PedSetActionTree(l_0_5, "/Global/N_Striker_A", "Act/Anim/N_Striker_A.act") -- Melvin
-- PedSetActionTree(l_0_6, "/Global/N_Ranged_A", "Act/Anim/N_Ranged_A.act") -- Thad
-- PedSetActionTree(l_0_7, "/Global/N_Ranged_A", "Act/Anim/N_Ranged_A.act") -- Bucky
-- PedSetActionTree(l_0_8, "/Global/N_Ranged_A", "Act/Anim/N_Ranged_A.act") -- Cornelius
-- PedSetActionTree(l_0_9, "/Global/N_Striker_B", "Act/Anim/N_Striker_B.act") -- Algernon
-- PedSetActionTree(l_1_0, "/Global/N_Ranged_A", "Act/Anim/N_Ranged_A.act") -- Donald
-- PedSetActionTree(l_1_1, "/Global/GS_Female_A", "Act/Anim/GS_Female_A.act") -- Beatrice
-- Bullies Clique
-- PedSetActionTree(l_0_3, "/Global/BOSS_Russell", "Act/Anim/Boss_Russell.act") -- Russell (BOSS)
-- PedSetActionTree(l_0_4, "/Global/GS_Male_A", "Act/Anim/GS_Male_A.act") -- Troy
-- PedSetActionTree(l_0_5, "/Global/GS_Female_A", "Act/Anim/GS_Female_A.act") -- Davis
-- PedSetActionTree(l_0_6, "/Global/GS_Male_A", "Act/Anim/GS_Male_A.act") -- Trent
-- PedSetActionTree(l_0_7, "/Global/GS_Male_A", "Act/Anim/GS_Male_A.act") -- Ethan
-- PedSetActionTree(l_0_8, "/Global/GS_Fat_A", "Act/Anim/GS_Fat_A.act") -- Wade
-- PedSetActionTree(l_0_9, "/Global/GS_Male_A", "Act/Anim/GS_Male_A.act") -- Tom
-- Students (Non Clique)
-- PedSetActionTree(l_0_3, "/Global/GS_Female_A", "Act/Anim/GS_Female_A.act") -- Christy
-- PedSetActionTree(l_0_4, "/Global/GS_Male_A", "Act/Anim/GS_Male_A.act") -- Sheldon
-- PedSetActionTree(l_0_5, "/Global/GS_Female_A", "Act/Anim/GS_Female_A.act") -- Gloria
-- PedSetActionTree(l_0_6, "/Global/GS_Male_A", "Act/Anim/GS_Male_A.act") -- Pedro
-- PedSetActionTree(l_0_7, "/Global/GS_Male_A", "Act/Anim/GS_Male_A.act") -- Constantinos
-- PedSetActionTree(l_0_8, "/Global/GS_Fat_A", "Act/Anim/GS_Fat_A.act") -- Ray
-- PedSetActionTree(l_0_9, "/Global/GS_Male_A", "Act/Anim/GS_Male_A.act") -- Ivan
-- PedSetActionTree(l_1_0, "/Global/GS_Male_A", "Act/Anim/GS_Male_A.act") -- Trevor
-- PedSetActionTree(l_1_1, "/Global/GS_Fat_A", "Act/Anim/GS_Fat_A.act") -- Eunice
-- Girls!
PedSetActionTree(l_0_3, "/Global/J_Grappler_A", "Act/Anim/J_Grappler_A.act") -- Christy
PedSetActionTree(l_0_4, "/Global/DO_Striker_A", "Act/Anim/DO_Striker_A.act") -- Zoe
PedSetActionTree(l_0_5, "/Global/N_Striker_A", "Act/Anim/N_Striker_A.act") -- Beatrice
PedSetActionTree(l_0_6, "/Global/J_Striker_A", "Act/Anim/J_Striker_A.act") -- Mandy
PedSetActionTree(l_0_7, "/Global/G_Striker_A", "Act/Anim/G_Striker_A.act") -- Lola
PedSetActionTree(l_0_8, "/Global/P_Striker_A", "Act/Anim/P_Striker_A.act") -- Pinky
PedSetActionTree(l_0_9, "/Global/P_Striker_B", "Act/Anim/P_Striker_B.act") -- Angie
PedSetActionTree(l_1_0, "/Global/J_Mascot", "Act/Anim/J_Mascot.act") -- Gloria
PedSetActionTree(l_1_1, "/Global/BOSS_Russell", "Act/Anim/BOSS_Russell.act") -- Eunice
PedSetActionTree(l_1_2, "/Global/G_Melee_A", "Act/Anim/G_Melee_A.act") -- Melody
PedSetActionTree(l_1_3, "/Global/G_Melee_A", "Act/Anim/G_Melee_A.act") -- Karen
PedSetActionTree(l_1_4, "/Global/G_Grappler_A", "Act/Anim/G_Grappler_A.act") -- Betty
-- Teachers & Staff (Authority)
-- PedSetActionTree(l_0_3, "/Global/TE_Female_A", "Act/Anim/TE_Female_A.act") -- Miss Peabody
-- PedSetActionTree(l_0_4, "/Global/Authority", "Act/Anim/Authority.act") -- Mr Burton
-- PedSetActionTree(l_0_5, "/Global/CV_Male_A", "Act/Anim/CV_Male_A.act") -- Mr Luntz
-- PedSetActionTree(l_0_6, "/Global/Authority", "Act/Anim/Authority.act") -- Mr Galloway
-- PedSetActionTree(l_0_7, "/Global/Authority", "Act/Anim/Authority.act") -- Edna
-- PedSetActionTree(l_0_8, "/Global/TE_Female_A", "Act/Anim/TE_Female_A") -- Miss Winston
-- PedSetActionTree(l_0_9, "/Global/TE_Female_A", "Act/Anim/TE_Female_A") -- Mrs McRae
-- PedSetActionTree(l_1_0, "/Global/Authority", "Act/Anim/Authority.act") -- Mr Hattrick
-- PedSetActionTree(l_1_1, "/Global/TE_Female_A", "Act/Anim/TE_Female_A") -- Mrs Carvin
-- PedSetActionTree(l_1_2, "/Global/TE_Female_A", "Act/Anim/TE_Female_A") -- Ms Phillips
-- PedSetActionTree(l_1_3, "/Global/Authority", "Act/Anim/Authority.act") -- Mr Slawter
-- PedSetActionTree(l_1_4, "/Global/Authority", "Act/Anim/Authority.act") -- Dr Crabblesnitch
--Bodyguard ActionNode Code Start
--
-- PedSetActionNode(l_1_0, "/Global/2_B/Empty", "Act/Conv/2_B.act")
-- PedSetActionNode(l_1_0, "/Global/BOSS_Russell/Default_KEY/RisingAttacks/HeavyAttacks/RisingAttacks", "Act/Anim/Boss_Russell.act") PlayerAI
-- PedSetTaskNode(l_1_0, "/Global/AI", "Act/AI/AI_DARBY_2_B.act")
-- PedSetTaskNode(gPlayer, "/Global/PlayerAI", "Act/PlayerAI.act")
ClothingGivePlayerOutfit("Panda")
-- test code start
-- PedSetAITree(gPlayer, "/Global/DarbyAI", "Act/AI/AI_DARBY_2_B.act")
-- PedSetActionTree(gPlayer, "/Global/BOSS_Darby", "Act/Anim/BOSS_Darby.act")
--PedSetMaxHealth(idDarby, 500)
--PedSetHealth(idDarby, 500)
-- PedOverrideStat(gPlayer, 38, 70)
-- PedOverrideStat(gPlayer, 39, 70)
-- PedSetInfiniteSprint(gPlayer, true)
-- test code end
--
-- Player ActionNode Code Start
--
-- Ally Blip Code Start
--
l_2_7 = AddBlipForChar(l_0_3, 6, 2, 2)
l_2_8 = AddBlipForChar(l_0_4, 6, 2, 2)
l_2_9 = AddBlipForChar(l_0_5, 6, 2, 2)
l_3_0 = AddBlipForChar(l_0_6, 6, 2, 2)
l_3_1 = AddBlipForChar(l_0_7, 6, 2, 2)
l_3_2 = AddBlipForChar(l_0_8, 6, 2, 2)
l_3_3 = AddBlipForChar(l_0_9, 6, 2, 2)
l_3_4 = AddBlipForChar(l_1_0, 6, 2, 2)
l_3_5 = AddBlipForChar(l_1_1, 6, 2, 2)
l_3_6 = AddBlipForChar(l_1_2, 6, 2, 2)
l_3_7 = AddBlipForChar(l_1_3, 6, 2, 2)
l_3_8 = AddBlipForChar(l_1_4, 6, 2, 2)
--
-- Infinite Sprint Code Start for Allies
--
PedSetInfiniteSprint(l_0_3, true)
PedSetInfiniteSprint(l_0_4, true)
PedSetInfiniteSprint(l_0_5, true)
PedSetInfiniteSprint(l_0_6, true)
PedSetInfiniteSprint(l_0_7, true)
PedSetInfiniteSprint(l_0_8, true)
PedSetInfiniteSprint(l_0_9, true)
PedSetInfiniteSprint(l_1_0, true)
PedSetInfiniteSprint(l_1_1, true)
PedSetInfiniteSprint(l_1_2, true)
PedSetInfiniteSprint(l_1_3, true)
PedSetInfiniteSprint(l_1_4, true)
--
-- Ped Recruit Code Start
--
-- This section defines the bodyguards. Instead of the model ids..the locals for each bodyguard are instead used.
-- it goes like this: for the first line gplayer (jimmy) is linked to l_0_3 which is christy as defined up above.
-- then the next line has l_0_3 linked to Zoe. This is the only way to have multiple bodyguards in bully and the only issue is that
-- the one linked to jimmy will attack first if jimmy is attacked....and if they are attacked then the one linked to them will
-- attack..and so on down the list. Think of this as a domino effect or chain reaction.
PedRecruitAlly(gPlayer, l_0_3)
PedRecruitAlly(l_0_3, l_0_4)
PedRecruitAlly(l_0_4, l_0_5)
PedRecruitAlly(l_0_5, l_0_6)
PedRecruitAlly(l_0_6, l_0_7)
PedRecruitAlly(l_0_7, l_0_8)
PedRecruitAlly(l_0_8, l_0_9)
PedRecruitAlly(l_0_9, l_1_0)
PedRecruitAlly(l_1_0, l_1_1)
PedRecruitAlly(l_1_1, l_1_2)
PedRecruitAlly(l_1_2, l_1_3)
PedRecruitAlly(l_1_3, l_1_4)
--
-- This is the Ped Guard Ped code section
-- This Section allows all bodyguards to attack anyone attacking the player and this feature is beta for now
-- It is used like this: PedGuardPed(Ped ID, Ped ID) First ped id is the ped that does the guarding. Second ped id is the ped you want them to guard
-- Code start
PedGuardPed(l_0_3, gPlayer)
PedGuardPed(l_0_4, gPlayer)
PedGuardPed(l_0_5, gPlayer)
PedGuardPed(l_0_6, gPlayer)
PedGuardPed(l_0_7, gPlayer)
PedGuardPed(l_0_8, gPlayer)
PedGuardPed(l_0_9, gPlayer)
PedGuardPed(l_1_0, gPlayer)
PedGuardPed(l_1_1, gPlayer)
PedGuardPed(l_1_2, gPlayer)
PedGuardPed(l_1_3, gPlayer)
-- Code end
--
-- Ped Healthbar Code Start
--
-- This section is for the ped healthbars and is buggy. ATM only two can be shown on the screen at any time...and as of this
-- mod release...cannot be removed from the screen either. So I left this code intact and will update this mod when I figure it
-- out.PedSetTaskNode(l_0_8, "/Global/AI", "Act/AI/AI.act")
PedShowHealthBar(l_0_3, true, "N_Christy", false)
PedShowHealthBar(l_0_4, true, "N_Zoe", false)
PedShowHealthBar(l_0_5, true, "N_Beatrice", false)
PedShowHealthBar(l_0_6, true, "N_Mandy", false)
PedShowHealthBar(l_0_7, true, "N_Lola", false)
PedShowHealthBar(l_0_8, true, "N_Pinky", false)
PedShowHealthBar(l_0_9, true, "N_Angie", false)
PedShowHealthBar(l_1_0, true, "N_Gloria", false)
PedShowHealthBar(l_1_1, true, "N_Eunice", false)
PedShowHealthBar(l_1_2, true, "N_Melody", false)
PedShowHealthBar(l_1_3, true, "N_Karen", false)
PedShowHealthBar(l_1_4, true, "N_Betty", false)
PedSetAllyAutoEngage(l_0_3, true)
PedSetAllyAutoEngage(l_0_4, true)
PedSetAllyAutoEngage(l_0_5, true)
PedSetAllyAutoEngage(l_0_6, true)
PedSetAllyAutoEngage(l_0_7, true)
PedSetAllyAutoEngage(l_0_8, true)
PedSetAllyAutoEngage(l_0_9, true)
PedSetAllyAutoEngage(l_1_0, true)
PedSetAllyAutoEngage(l_1_1, true)
PedSetAllyAutoEngage(l_1_2, true)
PedSetAllyAutoEngage(l_1_3, true)
PedSetAllyAutoEngage(l_1_4, true)
PedSetHealthBarQuiet(true)
-- Vehicle Locals Start
-- l_2_0 = 202 -- Truck
-- l_2_1 = -10.12 -- Truck
-- l_2_2 = 5.6007623 -- Truck
-- l_2_3 = 195 -- domestic
-- l_2_4 = -10.12 -- domestic
-- l_2_5 = 5.6007623 -- domestic
-- l_2_6 = 179 -- policecar
-- l_2_7 = -10.12 -- policecar
-- l_2_8 = 5.6007623 -- policecar
-- -- vehicle spawns start
-- VehicleCreateXYZ(297, l_2_0, l_2_1, l_2_2)
-- VehicleCreateXYZ(296, l_2_3, l_2_4, l_2_5)
-- VehicleCreateXYZ(295, 179, -10.12, 5.6007623)
-- VehicleCreateXYZ(294, 174, -10.12, 5.6007623)
-- VehicleCreateXYZ(293, 192, 5.2368, 5.4483881)
-- VehicleCreateXYZ(292, 197, 5.2368, 5.4483881)
-- VehicleCreateXYZ(291, 201, 5.2368, 5.4483881)
-- VehicleCreateXYZ(290, 205, 5.2368, 5.4483881)
-- AddBlipForCar(297, 0, 4)
-- Vehicls spawns end
end
--
-- DO NOT EDIT the sections under this line unless you know what you are doing!
--
F_MissionSetup = function()
LoadAnimationGroup("Russell") -- Russell Animation Group
-- Fighting Style Animation Groups Start
LoadAnimationGroup("P_Striker") -- Preps P_Striker Animation Group
LoadAnimationGroup("Boxing") -- Boxing Animation Group
LoadAnimationGroup("Straf_Prep") -- Prep Straf Animation Group
LoadAnimationGroup("STRAF_WREST") -- Wrestling Straf Animation Group
LoadAnimationGroup("B_Striker") -- Bully Fighting Style Animation Group (B_Striker)
LoadAnimationGroup("TE_FEMALE") -- Female Fighting Style Animation Group (adults)
LoadAnimationGroup("DO_Striker") -- Dropouts Fighting Style Animation Group (striker)
LoadAnimationGroup("DO_StrikeCombo") -- Dropouts Fighting Style Animation Group (striker combo)
LoadAnimationGroup("F_Nerds") -- Nerds Fighting Style Animation Group (straf?)
LoadAnimationGroup("N_Striker_B") -- Nerds Fighting Style Animation Group (striker)
LoadAnimationGroup("NPC_Adult") -- Adult Fighting Style Animation Group
LoadAnimationGroup("G_Johnny") -- Johnny BOSS Style Animation Group
-- Straf Animation Groups Start
LoadAnimationGroup("F_Girls") -- Girls Straf Style Animation Group
LoadAnimationGroup("F_Douts") -- Dropouts Straf Style Animation Group
LoadAnimationGroup("F_Greas") -- Greasers Straf Animation Group
LoadAnimationGroup("LE_ORDERLY") -- Asylum Orderly Fighting Style Animation Group
LoadAnimationGroup("F_CRAZY") -- Asylum Crazy Fighting Style Animation Group
LoadAnimationGroup("F_JOCKS") -- Jocks Straf Animation Group
LoadAnimationGroup("SNERD_I") -- Nerd Animation Group (fighting?)
LoadAnimationGroup("SNERD_S") -- Nerd Animation Group (fighting?)
-- MISC Animation Groups Start
LoadAnimationGroup("Halloween") -- Animation Group for the Halloween Flags and props
LoadAnimationGroup("F_Adult") -- Adult Straf Animation Group
LoadAnimationGroup("LE_Orderly") -- Orderly Animation Group (authority)
LoadAnimationGroup("F_Preps") -- Preps Straf Animation Group
LoadAnimationGroup("G_Grappler") -- Greasers grappler Animation Group (fighting)
LoadAnimationGroup("NPC_Mascot") -- Mascot Straf Animation Group
LoadAnimationGroup("IDLE_JOCK_A") -- Jock Idle Animation Group
LoadAnimationGroup("Earnest") -- Earnest Fighting Style (straf?) Animation Group
LoadAnimationGroup("G_Grappler") -- Greasers Fighting Style Animation Group (straf) (grappler)
LoadAnimationGroup("G_Striker") -- Greasers Fighting Style Animation Group (straf) (striker)
LoadAnimationGroup("Nemesis") -- Gary BOSS Fighting Style Animation Group
LoadAnimationGroup("N_STRIKER_B") -- Nerds Fighting Style Animation Group (striker)
LoadAnimationGroup("Straf_Wrest") -- Wrestling Straf Animation Group
LoadAnimationGroup("J_Grappler") -- Jocks Fighting Style Animation Group (straf) (grappler)
LoadAnimationGroup("NPC_Principal") -- Principal Fighting Style? Straf? Animation Group
LoadAnimationGroup("Authority") -- Authority Fighting Style Straf Animation Group
LoadAnimationGroup("C_Wrestling") -- Wrestling Straf Animation Group
-- SetFactionRespect(1, 0)
-- SetFactionRespect(2, 0)
-- SetFactionRespect(3, 0)
-- SetFactionRespect(4, 0)
-- SetFactionRespect(5, 0)
-- SetFactionRespect(6, 0)
-- SetFactionRespect(7, 0)
-- SetFactionRespect(8, 0)
-- SetFactionRespect(9, 0)
-- SetFactionRespect(10, 0)
-- SetFactionRespect(11, 0)
-- PedSetTypeToTypeAttitude(1, 1, 0)
-- PedSetTypeToTypeAttitude(2, 2, 0)
-- PedSetTypeToTypeAttitude(3, 3, 0)
-- PedSetTypeToTypeAttitude(4, 4, 0)
-- PedSetTypeToTypeAttitude(5, 5, 0)
-- PedSetTypeToTypeAttitude(6, 6, 0)
-- PedSetTypeToTypeAttitude(7, 7, 0)
-- PedSetTypeToTypeAttitude(8, 8, 0)
-- PedSetTypeToTypeAttitude(9, 9, 0)
-- PedSetTypeToTypeAttitude(10, 10, 0)
-- PedSetTypeToTypeAttitude(11, 11, 0)
-- PedSetGlobalAttitude_Rumble(true)
-- Vehicle Owner Start
--VehicleSetOwner(297, gPlayer)
--VehicleSetOwner(296, gPlayer)
--VehicleSetOwner(295, gPlayer)
--VehicleSetOwner(294, gPlayer)
--VehicleSetOwner(293, gPlayer)
--VehicleSetOwner(292, gPlayer)
--VehicleSetOwner(291, gPlayer)
--VehicleSetOwner(290, gPlayer)
-- Vehicle Owner End
-- Animation Loading End --
--Stat
-- GameSetPedStat(gPlayer, 38, 30)
-- GameSetPedStat(gPlayer, 11, 80)
-- PedSetActionTree(gPlayer, "/Global/G_Johnny", "Act/Anim/G_Johnny.act")
-- PedSetAIButes("Boxing")
-- PedSetFaction(gPlayer, 3) -- Female Teachers
-- PedSetFaction(gPlayer, 8) -- Female Teachers
-- PedSetFaction(gPlayer, 9) -- Townsperson
-- PedSetFaction(gPlayer, 10) -- Townsperson
-- PedSetFaction(gPlayer, 11) -- Townsperson
-- PedSetFaction(gPlayer, 7) -- Townsperson
-- PedSetFlag(gPlayer, 113, true)
-- AI Atributes Load --
-- PedSetAIButes("Russell") -- This sets the AI Attributes to be used. Currently the only known ones are: Boxing, Default, 5_B, 3_B, Russell, 1_09
-- PedSetAIButes("Russell")
-- LoadActionTree("Act/Anim/J_Grappler_A.act")
-- LoadActionTree("Act/Anim/LE_Orderly_A.act") -- This loads a actiontree into active memory
PlayerSetControl(1)
CameraFollowPed(gPlayer)
ClockSet(9, 30)
ClockSetTickRate(0.0060000000521541)
LaunchScript("SObjTest.lua")
-- collectgarbage()
end
F_UpdateGlobalHatred = function()
--PedSetTypeToTypeAttitude(4, 1, 0)
--PedSetTypeToTypeAttitude(2, 1, 0)
--PedSetTypeToTypeAttitude(5, 1, 0)
--PedSetTypeToTypeAttitude(1, 13, 1)
--PedSetTypeToTypeAttitude(1, 4, 0)
--PedSetTypeToTypeAttitude(2, 4, 0)
--PedSetTypeToTypeAttitude(5, 4, 0)
--PedSetTypeToTypeAttitude(4, 13, 1)
--PedSetTypeToTypeAttitude(1, 2, 0)
--PedSetTypeToTypeAttitude(4, 2, 0)
--PedSetTypeToTypeAttitude(5, 2, 0)
--PedSetTypeToTypeAttitude(2, 13, 1)
--PedSetTypeToTypeAttitude(1, 5, 0)
--PedSetTypeToTypeAttitude(2, 5, 0)
--PedSetTypeToTypeAttitude(4, 5, 0)
--PedSetTypeToTypeAttitude(5, 13, 1)
-- extra stuff
PedSetTypeToTypeAttitude(1, 1, 0)
PedSetTypeToTypeAttitude(2, 1, 0)
PedSetTypeToTypeAttitude(3, 1, 0)
PedSetTypeToTypeAttitude(4, 1, 0)
PedSetTypeToTypeAttitude(5, 1, 0)
PedSetTypeToTypeAttitude(6, 1, 0)
PedSetTypeToTypeAttitude(7, 1, 0)
PedSetTypeToTypeAttitude(8, 1, 0)
PedSetTypeToTypeAttitude(9, 1, 0)
PedSetTypeToTypeAttitude(10, 1, 0)
PedSetTypeToTypeAttitude(11, 1, 0)
PedSetTypeToTypeAttitude(1, 2, 0)
PedSetTypeToTypeAttitude(2, 2, 0)
PedSetTypeToTypeAttitude(3, 2, 0)
PedSetTypeToTypeAttitude(4, 2, 0)
PedSetTypeToTypeAttitude(5, 2, 0)
PedSetTypeToTypeAttitude(6, 2, 0)
PedSetTypeToTypeAttitude(7, 2, 0)
PedSetTypeToTypeAttitude(8, 2, 0)
PedSetTypeToTypeAttitude(9, 2, 0)
PedSetTypeToTypeAttitude(10, 2, 0)
PedSetTypeToTypeAttitude(11, 2, 0)
PedSetTypeToTypeAttitude(1, 3, 0)
PedSetTypeToTypeAttitude(2, 3, 0)
PedSetTypeToTypeAttitude(3, 3, 0)
PedSetTypeToTypeAttitude(4, 3, 0)
PedSetTypeToTypeAttitude(5, 3, 0)
PedSetTypeToTypeAttitude(6, 3, 0)
PedSetTypeToTypeAttitude(7, 3, 0)
PedSetTypeToTypeAttitude(8, 3, 0)
PedSetTypeToTypeAttitude(9, 3, 0)
PedSetTypeToTypeAttitude(10, 3, 0)
PedSetTypeToTypeAttitude(11, 3, 0)
PedSetTypeToTypeAttitude(1, 4, 0)
PedSetTypeToTypeAttitude(2, 4, 0)
PedSetTypeToTypeAttitude(3, 4, 0)
PedSetTypeToTypeAttitude(4, 4, 0)
PedSetTypeToTypeAttitude(5, 4, 0)
PedSetTypeToTypeAttitude(6, 4, 0)
PedSetTypeToTypeAttitude(7, 4, 0)
PedSetTypeToTypeAttitude(8, 4, 0)
PedSetTypeToTypeAttitude(9, 4, 0)
PedSetTypeToTypeAttitude(10, 4, 0)
PedSetTypeToTypeAttitude(11, 4, 0)
PedSetTypeToTypeAttitude(1, 5, 0)
PedSetTypeToTypeAttitude(2, 5, 0)
PedSetTypeToTypeAttitude(3, 5, 0)
PedSetTypeToTypeAttitude(4, 5, 0)
PedSetTypeToTypeAttitude(5, 5, 0)
PedSetTypeToTypeAttitude(6, 5, 0)
PedSetTypeToTypeAttitude(7, 5, 0)
PedSetTypeToTypeAttitude(8, 5, 0)
PedSetTypeToTypeAttitude(9, 5, 0)
PedSetTypeToTypeAttitude(10, 5, 0)
PedSetTypeToTypeAttitude(11, 5, 0)
PedSetTypeToTypeAttitude(1, 6, 0)
PedSetTypeToTypeAttitude(2, 6, 0)
PedSetTypeToTypeAttitude(3, 6, 0)
PedSetTypeToTypeAttitude(4, 6, 0)
PedSetTypeToTypeAttitude(5, 6, 0)
PedSetTypeToTypeAttitude(6, 6, 0)
PedSetTypeToTypeAttitude(7, 6, 0)
PedSetTypeToTypeAttitude(8, 6, 0)
PedSetTypeToTypeAttitude(9, 6, 0)
PedSetTypeToTypeAttitude(10, 6, 0)
PedSetTypeToTypeAttitude(11, 6, 0)
PedSetTypeToTypeAttitude(1, 7, 0)
PedSetTypeToTypeAttitude(2, 7, 0)
PedSetTypeToTypeAttitude(3, 7, 0)
PedSetTypeToTypeAttitude(4, 7, 0)
PedSetTypeToTypeAttitude(5, 7, 0)
PedSetTypeToTypeAttitude(6, 7, 0)
PedSetTypeToTypeAttitude(7, 7, 0)
PedSetTypeToTypeAttitude(8, 7, 0)
PedSetTypeToTypeAttitude(9, 7, 0)
PedSetTypeToTypeAttitude(10, 7, 0)
PedSetTypeToTypeAttitude(11, 7, 0)
PedSetTypeToTypeAttitude(1, 8, 0)
PedSetTypeToTypeAttitude(2, 8, 0)
PedSetTypeToTypeAttitude(3, 8, 0)
PedSetTypeToTypeAttitude(4, 8, 0)
PedSetTypeToTypeAttitude(5, 8, 0)
PedSetTypeToTypeAttitude(6, 8, 0)
PedSetTypeToTypeAttitude(7, 8, 0)
PedSetTypeToTypeAttitude(8, 8, 0)
PedSetTypeToTypeAttitude(9, 8, 0)
PedSetTypeToTypeAttitude(10, 8, 0)
PedSetTypeToTypeAttitude(11, 8, 0)
PedSetTypeToTypeAttitude(1, 9, 0)
PedSetTypeToTypeAttitude(2, 9, 0)
PedSetTypeToTypeAttitude(3, 9, 0)
PedSetTypeToTypeAttitude(4, 9, 0)
PedSetTypeToTypeAttitude(5, 9, 0)
PedSetTypeToTypeAttitude(6, 9, 0)
PedSetTypeToTypeAttitude(7, 9, 0)
PedSetTypeToTypeAttitude(8, 9, 0)
PedSetTypeToTypeAttitude(9, 9, 0)
PedSetTypeToTypeAttitude(10, 9, 0)
PedSetTypeToTypeAttitude(11, 9, 0)
PedSetTypeToTypeAttitude(1, 10, 0)
PedSetTypeToTypeAttitude(2, 10, 0)
PedSetTypeToTypeAttitude(3, 10, 0)
PedSetTypeToTypeAttitude(4, 10, 0)
PedSetTypeToTypeAttitude(5, 10, 0)
PedSetTypeToTypeAttitude(6, 10, 0)
PedSetTypeToTypeAttitude(7, 10, 0)
PedSetTypeToTypeAttitude(8, 10, 0)
PedSetTypeToTypeAttitude(9, 10, 0)
PedSetTypeToTypeAttitude(10, 10, 0)
PedSetTypeToTypeAttitude(11, 10, 0)
PedSetTypeToTypeAttitude(1, 11, 0)
PedSetTypeToTypeAttitude(2, 11, 0)
PedSetTypeToTypeAttitude(3, 11, 0)
PedSetTypeToTypeAttitude(4, 11, 0)
PedSetTypeToTypeAttitude(5, 11, 0)
PedSetTypeToTypeAttitude(6, 11, 0)
PedSetTypeToTypeAttitude(7, 11, 0)
PedSetTypeToTypeAttitude(8, 11, 0)
PedSetTypeToTypeAttitude(9, 11, 0)
PedSetTypeToTypeAttitude(10, 11, 0)
PedSetTypeToTypeAttitude(11, 11, 0)
PedSetTypeToTypeAttitude(1, 12, 0)
PedSetTypeToTypeAttitude(2, 12, 0)
PedSetTypeToTypeAttitude(3, 12, 0)
PedSetTypeToTypeAttitude(4, 12, 0)
PedSetTypeToTypeAttitude(5, 12, 0)
PedSetTypeToTypeAttitude(6, 12, 0)
PedSetTypeToTypeAttitude(7, 12, 0)
PedSetTypeToTypeAttitude(8, 12, 0)
PedSetTypeToTypeAttitude(9, 12, 0)
PedSetTypeToTypeAttitude(10, 12, 0)
PedSetTypeToTypeAttitude(11, 12, 0)
PedSetTypeToTypeAttitude(1, 13, 0)
PedSetTypeToTypeAttitude(2, 13, 0)
PedSetTypeToTypeAttitude(3, 13, 0)
PedSetTypeToTypeAttitude(4, 13, 0)
PedSetTypeToTypeAttitude(5, 13, 0)
PedSetTypeToTypeAttitude(6, 13, 0)
PedSetTypeToTypeAttitude(7, 13, 0)
PedSetTypeToTypeAttitude(8, 13, 0)
PedSetTypeToTypeAttitude(9, 13, 0)
PedSetTypeToTypeAttitude(10, 13, 0)
PedSetTypeToTypeAttitude(11, 13, 0)
-- Faction respect code start
SetFactionRespect(1, 100)
SetFactionRespect(2, 100)
SetFactionRespect(3, 100)
SetFactionRespect(4, 100)
SetFactionRespect(5, 100)
SetFactionRespect(6, 100)
SetFactionRespect(7, 100)
SetFactionRespect(8, 100)
SetFactionRespect(9, 100)
SetFactionRespect(10, 100)
SetFactionRespect(11, 100)
-- DisablePOI(true, true)
AreaSetPopulationSexGeneration(true, true)
AreaOverridePopulation(96, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8)
--AreaClearAllPeds()
PedSetGlobalAttitude_Rumble(true)
end
-- Start Mission Cleanup --
MissionCleanup = function()
-- Unload Animation Group(s) --
UnLoadAnimationGroup("Russell") -- Russell Animation Group
-- Fighting Style Animation Groups Start
UnLoadAnimationGroup("P_Striker") -- Preps P_Striker Animation Group
UnLoadAnimationGroup("Boxing") -- Boxing Animation Group
UnLoadAnimationGroup("Straf_Prep") -- Prep Straf Animation Group
UnLoadAnimationGroup("STRAF_WREST") -- Wrestling Straf Animation Group
UnLoadAnimationGroup("B_Striker") -- Bully Fighting Style Animation Group (B_Striker)
UnLoadAnimationGroup("TE_FEMALE") -- Female Fighting Style Animation Group (adults)
UnLoadAnimationGroup("DO_Striker") -- Dropouts Fighting Style Animation Group (striker)
UnLoadAnimationGroup("DO_StrikeCombo") -- Dropouts Fighting Style Animation Group (striker combo)
UnLoadAnimationGroup("F_Nerds") -- Nerds Fighting Style Animation Group (straf?)
UnLoadAnimationGroup("N_Striker_B") -- Nerds Fighting Style Animation Group (striker)
UnLoadAnimationGroup("NPC_Adult") -- Adult Fighting Style Animation Group
UnLoadAnimationGroup("G_Johnny") -- Johnny BOSS Style Animation Group
-- Straf Animation Groups Start
UnLoadAnimationGroup("F_Girls") -- Girls Straf Style Animation Group
UnLoadAnimationGroup("F_Douts") -- Dropouts Straf Style Animation Group
UnLoadAnimationGroup("F_Greas") -- Greasers Straf Animation Group
UnLoadAnimationGroup("LE_ORDERLY") -- Asylum Orderly Fighting Style Animation Group
UnLoadAnimationGroup("F_CRAZY") -- Asylum Crazy Fighting Style Animation Group
UnLoadAnimationGroup("F_JOCKS") -- Jocks Straf Animation Group
UnLoadAnimationGroup("SNERD_I") -- Nerd Animation Group (fighting?)
UnLoadAnimationGroup("SNERD_S") -- Nerd Animation Group (fighting?)
-- MISC Animation Groups Start
UnLoadAnimationGroup("Halloween") -- Animation Group for the Halloween Flags and props
UnLoadAnimationGroup("F_Adult") -- Adult Straf Animation Group
UnLoadAnimationGroup("LE_Orderly") -- Orderly Animation Group (authority)
UnLoadAnimationGroup("F_Preps") -- Preps Straf Animation Group
UnLoadAnimationGroup("G_Grappler") -- Greasers grappler Animation Group (fighting)
UnLoadAnimationGroup("NPC_Mascot") -- Mascot Straf Animation Group
UnLoadAnimationGroup("IDLE_JOCK_A") -- Jock Idle Animation Group
UnLoadAnimationGroup("Earnest") -- Earnest Fighting Style (straf?) Animation Group
UnLoadAnimationGroup("G_Grappler") -- Greasers Fighting Style Animation Group (straf) (grappler)
UnLoadAnimationGroup("G_Striker") -- Greasers Fighting Style Animation Group (straf) (striker)
UnLoadAnimationGroup("Nemesis") -- Gary BOSS Fighting Style Animation Group
UnLoadAnimationGroup("N_STRIKER_B") -- Nerds Fighting Style Animation Group (striker)
UnLoadAnimationGroup("Straf_Wrest") -- Wrestling Straf Animation Group
UnLoadAnimationGroup("J_Grappler") -- Jocks Fighting Style Animation Group (straf) (grappler)
UnLoadAnimationGroup("NPC_Principal") -- Principal Fighting Style? Straf? Animation Group
UnLoadAnimationGroup("Authority") -- Authority Fighting Style Straf Animation Group
UnLoadAnimationGroup("C_Wrestling") -- Wrestling Straf Animation Group
-- Animation Loading End --
ClearTextQueue() -- Clears all queued text in active memory
EnablePOI() -- Enables the POI Interface
gMissionRunning = false -- Terminates Mission Script
shared.gMissionEventFunction = nil -- This is for shared events
WeatherRelease() -- Releases the Weather Settings
PlayerSetControl(1) -- Sets Controller to be used for player
PlayerSetPunishmentPoints(0) -- Sets Punishment Points.
end
main = function() -- Function Call
F_MissionSetup() -- Mission Setup Function
F_UpdateGlobalHatred() -- Sets everyone to hate eachother and fight.
gMissionRunning = true -- This tells the game that this mission is running.
while gMissionRunning do -- This instructs bully to execute further tasks while the mission is running.
UpdateTextQueue() -- Updates the state of text stored in active memory
Wait(0) --Waits
end -- End Statement
end
[/noae]
-
Thanks for posting the fixed version Red. I totally forgot about the leftover testing code and the typo....lol. Been some time since I last looked at this particular code.
I will go ahead and explain a couple things in the code so other can get a quick answer to a few questions.
You might notice this bit of code: PedSetUniqueModelStatus(2, 1)
This is actually used to put a ped into freeroam. This code works like this:
PedSetUniqueModelStatus(ped model id, integer) -- the last number has to be either a -1 or 1. -1 means not in freeroam and 1 means in freeroam.
The same basic rules for this apply that apply for the old hex editing method of adding peds to freeroam. If you change this number to 2 then 2
possible versions of that ped can spawn in the same area...and so on. I always keep it at 1 to prevent any possible problems and crashes but
feel free to experiment with it if you like.
Now. A fighting style example is easy. Changing fighting styles using LUA is the easiest thing you can learn for script modding but....BOSS styles are still something Red and I are working on and until we figure a few things out...we will not be explaining how to do BOSS styles via LUA until we have all the answers and can get all the styles working.
All of the normal styles do work and a couple BOSS styles do however work flawlessly...but there are still a handful of styles that have problems when applied to the player. Applying them to other peds however works fully.
Here is a example of assigning a style to a ped:
PedSetActionTree(3, "/Global/GS_Female_A", "Act/Anim/GS_Female_A.act")
This will give the Jocks fighting style to Beatrice who has a model id of 3.
You can open up default.ide and the model id numbers for everything in the game is listed on the left of the model itself.
the first part of the fighting style is called the Action Tree Root and the second part of the style is called the Action Tree File. Default.ide has all of the action trees except the BOSS ones and the BOSS ones are really not too hard to figure out. However as I said before...the BOSS styles still need more work before they can be flawlessly done in LUA and really should not be attempted unless you really really know what you are doing.
When you assign a fighting style to a ped or the player....you also need to load the animation group(s) needed for that style or else you will glitch up bad which is a known problem from the earlier method of style modding where the ped or player will stand still with arms to their sides when attempting to attack. That is caused by not loading the animation group(s) for that specific style and the character will continue to do that until the animation groups are loaded.
I am working on a way to override ide totally and get any style working fully and not have glitches like this but its going to take me a good while to do since its using a very advanced bit of LUA coding that I really cannot teach to anyone until everyone learns the basics first. This method will be using a very complex table structure that will be way over the heads of just about everyone here and Red still has to learn that bit of coding too.
Tables are hard for bully becasue you have to code them EXACTLY the way rockstar did theirs and there is still quite a lot of guessing involved in this and its been slow going getting things right.
-
Not so much guessing as much as it is that we don't have the full damn script sources...so while rewriting you're forced to guess. xD
-
I will be posting a lot more detailed reference material for bully lua scripting with things everyone should keep handy such as model ids for everything along with a far more detailed list of every function in the game (lua function) and its proper arguments as I figure them out. It will take a lot of time but I feel that if ALL of us here work together on this...we can shave a lot of extra time off of this massive undertaking and actually get more things figured out far faster then just with Red and myself doing all of the work. Plus it gives all the modders something new to sink their teeth into and have fun with since I will be totally honest on this....Red and I have only BARELY scratched the surface on what can be achieved thru modding on bully.
-
May I ask what PedSetTypeToTypeAttitude(#, #, #) does? It looks like it edits attitudes between peds.
-
It does.
Basicly the first number is which ped type...its the faction basicly...nerds...greasers...prefects...teachers...cops...etc and the second number is the other ped type that you want the first ped type to behave however to. The third number is the attitude which the number for that that I use is attack on sight....and in this case...the attacks do damage if you say...set two cliques thats the same to attack one another on sight. Like if you want a laugh...nerds against nerds....etc and so on.
This is the code thats mainly used for the rumble at the latter part of the game where everyone at the school is fighting...etc.
-
What's the complete list of Faction IDs? It'd be pretty fun to mess around with those 8)
-
What's the complete list of Faction IDs? It'd be pretty fun to mess around with those 8)
I don't know if this is correct but there is a faction list in pedpop.dat:
# 1 Total population
# 2 Prefects
# 3 Nerds
# 4 Jocks
# 5 Dropouts
# 6 Greasers
# 7 Preppies
# 8 Students
# 9 Cops
# 10 Teachers
# 11 Townpeople
# 12 Shopkeep
# 13 Bully
-
It is not correct.
Reason why I know this is becasue Player is faction number 13 which Red can confirm. We need to get together and get some of those little details jotted down for everyone for reference since I noticed right off that the numbers are wierd in the game scripting vs the configuration files.
-
When I use the Bodyguard script, i did everything exactly right except that when i try to start the script in the Arcade in the Boys Dorm its just takes me to a Endless Loading. Any help?
-
Copy my code and compile that.
-
I am using your code.
-
That is awkward. Didn't happen with me.
I will test again tomorrow and see what happens.
-
i dont understand how i install this mod
-
i dont understand
Please don't double post.
-
DOUBLE POST
DOUBLE POST
-
DOUBLE POST
You're just asking for a spanking there! >:(
-
Lol
Saying don't do it is like asking for it :3
-
Lol
Saying don't do it is like asking for it :3
Wouldn't you know? :rolleyes:
-
Lol
Saying don't do it is like asking for it :3
Not unless I can do something about it. ;)
-
Lol
Saying don't do it is like asking for it :3
Not unless I can do something about it. ;)
Oh... hey Red...
We were just talking about you..
-
heh
How many bodyguards can you spawn anyways
Or did I forget to read something?
(I don't use bodyguards anyways Mandy is my only Bodyguard)
-
I read "spanking" and you got my atention. :p
-
"Guess he's not to blame. He's lucky too, cos it's spankin season and I've got a hankering for some spankerin"
Homer Simpson. :P
OT: Does this give you loads of body guards?
-
spank season
DAT ASS!
Lol kinda going offtopic now
-
SMACK DAT ASS!!! >:D
-
(http://www.s2ki.com/s2000/uploads/gallery/1164770285/gallery_44577_16400_28494623345725e32dd794.gif)
-
Sorry but i dont know when its really posted
-
Can someone help me how to do this i'm really nooby and i've been waiting for this bodyguard mod since 2011.
-
^But you joined November 2012?
-
Who says that he couldn't of watched the progression of this mod when he was a guest?
-
But why just look at the website for a year, join later and wait another year?
-
I have to say im here since 2010 Lol xD
-
Me too but I decided to register early to share my
useless modding ideas.
-
xDDD
-
Lol
-
Why?
The first thing I did when I saw the modding section was to register..
-
^ Here is a cookie.
i dont have them but you get my point
I didn't take long to register after first seeing the site, but everyone has different things to do. Besides, they all disappear after registering anyways.
-
Lol true.
-
I didn't know a lot about this yet and when I saw this site I only looked forward to this mod and it wasn't taking shape yet so I didn't register.
-
So can someone help me with this!!??
-
^What exactly do you need help with?!?!?!?!?!?!
-
Hahaha you are so funny. I wish I could record this and put it on Rakion. :happy:
-
Hahaha you are so funny. I wish I could record this and put it on Rakion. :happy:
Rakion is a game and it doesn't make sence at all.
And why you can't record this?
Instead of saying pointless things just explain what's the problem so we can help you with lua.
-
^True, in order words: Make your sentances more... civil (without the !??!?!?!), tell us what exactly you need help with before demanding that we give you a hand.
-
I'm so cool!?!?!?!?
seriously we cannot read those....
Please add full sentences before using a made up language...
-
Maybe you both should go back a page and read what's going on?
-
And if you want to correct someone: It's sentences not sentances. :laugh:
-
Where to put these codes ? I really need that ! :(
-
In the Lua script.
-
And if you want to correct someone: It's sentences not sentances. :laugh:
Doesn't matter. You picked it up, didn't you?
And good luck getting help with the attitude that you have proven yourself to have.
-
Are there any tuts where to put them ? Via Lua?
-
Are there any tuts where to put them ? Via Lua?
Create a .txt file (notepad) and paste the whole code. Then rename the file to .lua.
After that use the compiler to create the .lur file that should go inside script.img.
-
Seems easy. 2 questions.
1- are we going to rename the file only as .lua or like asdasd.lua ?
2- what is a complier ? :(
-
Seems easy. 2 questions.
1- are we going to rename the file only as .lua or like asdasd.lua ?
2- what is a complier ? :(
The file can have any name but it should always end in .lua. Like "Animationsmod.lua".
The compilator is a special tool used to compile .lua files to .lur. If you don't have this then it's impossible to create custom scripts.
You can download it here : http://www.bully-board.com/index.php?action=downloads;sa=view;down=60 (http://www.bully-board.com/index.php?action=downloads;sa=view;down=60)
-
And if you want to correct someone: It's sentences not sentances. :laugh:
You know nothing about modding and with that attitude you don't need to know.
Good day sir.
I see that you've disrespecting a modding member who attempted to help you by the name SWEGTA.
Ban hammer in coming.
-No Off topic comments
-No mentioning other games on this thread
-No Disrespecting a moderator or a fellow member.
-Use common sense.
-No hate and/or any kind of bigotry.
-
K, definitely gonna do this when I'll get to pc ;) then I'll put it where ? :/
-
^
Did you download the lua script madman made the entire package
you gotta store all the codes in there.
Check SWEGTA video on how to use it lol XD
-
I will lock this thread if I see any further arguing amongst the community since it really doesn't help matters...and kinda derails the whole topic.
Consider this a friendly reminder to try and keep things civil which this applies to everyone...not just the aforementioned darkphap123. 8)
-
LOL okay Narumi. Btw I already mentioned what I need help on and the member by the name of SWEGTA took it out of subject and if you would go back to page 3 you would see what's going on.
-
Are there any tuts where to put them ? Via Lua?
Have you checked out my lua tutorial thread?
-
LOL okay Narumi. Btw I already mentioned what I need help on and the member by the name of SWEGTA took it out of subject and if you would go back to page 3 you would see what's going on.
Going Off-Topic is really common here in BB. :P
-
It may be common...but it can be also avoided if everyone tries hard enough....since going offtopic tends to pollute the topics and makes things just a bit on the messy side...
-
Seems easy. 2 questions.
1- are we going to rename the file only as .lua or like asdasd.lua ?
2- what is a complier ? :(
www.youtube.com/watch?feature=player_embedded&v=DhMM7r1FPmM (http://www.youtube.com/watch?feature=player_embedded&v=DhMM7r1FPmM)
Check out SWEG'S Tutorial out. I myself have yet to try out any of the LUA stuff as I'm not playing Bully atm, but his tutorial section seems pretty legit 8)
-
It may be common...but it can be also avoided if everyone tries hard enough....since going offtopic tends to pollute the topics and makes things just a bit on the messy side...
Exactly
Its ok to say nice things off topic
But what he said was a exposed off topic comment to troll which he could been banned for.
Anyways talking to that....i have nothing to say
Stay clean Bully Boards.
-
Well I got it to work with the help of Raging Buffalo ;D. But it doesn't go right as I expected. Only one bodyguard spawns: Betty, and everywhere is full of authorities and adults and 0 students. :hmm:
-
I will see what I can do to help you with this.
Go ahead and post the full code you are using using the bbcode button for code....it is the button that has # on it and just paste the code in between the bbcode start and end brackets.
I have this feeling that you are either missing something in your code or you may have called something incorrectly.
-
Again, anyone who wants to know how to create, compile and run scripts should check out my video thread. There I explain on how the whole thing is done.
-
LOL uh I think I did it wrong because...I just copy the whole code that was posted by Red and just compile that lol I didn't edit anything. :mellow:
-
Anyone there?
-
Im new to modding and stuff,Can you tell me how to insert or inject the code,Im not used to this LUA im used to robloxs. ;D
-
Well currently everyone is ignoring this or seems to be busy to help us...
-
I have been going through some rather sudden harsh times as of late and have not really been around.
Sry about that but I had to walk away for a bit due to stress causing me some issues in my personal life (it has nothing at all to do with bully or anything) too personal to talk about but lets just say that I have had zero motivation to do anything internet related...which includes posting here....being on xfire or anything like that.
I have atm taken my server down and it will stay that way for a while since I am in the process of redoing everything for it to make it a bit better and have a more usable library of everything bully modding related....that way there will be a alternate site to download any mod related to bully....
I will try to be online in a few days and I will then help everyone here in this thread that has been needing help....sry if it seems like I am ignoring everyone....but my reasons for being rather silent are stated above. :blank:
-
Well currently everyone is ignoring this or seems to be busy to help us...
I'd like to help you, but what exactly do you need help with?
-
In other words, you have to be precise as to what you want, or what's going wrong, and include what you did.
Also, I have been uber busy lately with life.
-
I have been working alot on my music and on my videos.
I recently began renting a NMRiH server. And I made some custom maps/gamemodes for it.
... might as well, as we're all kinda busy. I'd be happy to help, but when I recive messages such as "WHY NOT WORK!?!?!?!", I just feel like quiting this board.
-
I just need the code that lets me have the whole greasers clique as my bodyguard.
-
what name LUA Scripts this ?? ;D
-
we play through the arcade machine?? :hmm:
-
we play through the arcade machine?? :hmm:
You are replacing the arcade machine script (ArcRace1.lur) so you need to play it to load your custom script.
-
Why female bodyguards?????
I want to change bodyguard the preps the way how???? :hmm:
-
I just feel like quiting this board.
oh noez D:
-
Why female bodyguards?????
I want to change bodyguard the preps the way how???? :hmm:
Change the peds ID to their respective ones.
-
How to use this mod MAN. . . ? ?
-
Read the tutorials, DUDE.
-
How to use this mod MAN. . . ? ?
DAT username. :euro:
-
It helps allot, Now I made my own Nerd gang. Ill give Full credits to Madman and Swegta.
-
It helps allot, Now I made my own Nerd gang. Ill give Full credits to Madman and Swegta.
Give credits to Swegta for what?
Not that I'm trying to rip on the dude, but he had no hand in making this script.
-
This script is entirely all done by me except for Red doing some testing....a vid for it and fixing the released source due to my forgetting about a typo in the code.
Swegta had absolutely no hand in the creation of this mod since this mod is the product of my overactive brain....lol.
However Swegta and I are teamed up to get the zombie mod completed since I will be doing all of the core coding for that...but I have to get other mods out of the way first before I can properly start on that...which is why I have been holding off on doing any work related to that as of yet.
I will be integrating the multiple bodyguard mod as a addon to teh player selector however it will be using different code and be totally rewritten to work a lot better and hopefully I can show healthbars for every bodyguard rather then have that buggy 1 or 2 bars that will always show on the screen since that is why I abandoned this particular version of this mod and released it like I did.
-
People keep looking at me like I'm sort of pro regarding this subject.
And, why did you assume that I had anything to do with this?
Don't thank me for something that I didn't do.
-
No,Swegta Did a tutorial, Telling me what to get Looks like credit is to Madman Thank you guys,Oh I think bully Modders are the most friendliest seem as none of you are selfish,Its FO modders you have to look out for.
-
And all of you are a inspiration to me,I never had the guts to self Code/Script This just makes me want to learn more, If it wasn't for you guys I would be really bored now.
-
This is the mod
http://www.bully-board.com/index.php?action=downloads;sa=view;down=77 (http://www.bully-board.com/index.php?action=downloads;sa=view;down=77)
I gave credits in the "Read me" and how to install (even though you know how to)
And to be honest it was fun to make there was a few errors and it took me a day to fix them, Then I struggled with where things go I was like oh no, And I some how learned.
-
Wooow three posts?
You do know that there is a Modify function, right?
Second of all, completely unrelated.
Post your releases in the actual release section.
-
No I did not :L Im new,And SWEGTA Your on my top 10 YouTubers
-
Wooow three posts?
You do know that there is a Modify function, right?
Second of all, completely unrelated.
Post your releases in the actual release section.
No need to be harsh, he is just excited. To tell the truth, I didn't touch a lua code for like 2 weeks (Not that I did to much with it), After I will release the Hardcore mod 3.1, Im gonna release my first lua mod, with possible help from Red and Swegta (Maybe). The mod I am planning to make with a LOT of help, is going to be quite small, but after I will finish it, I'll advanced, I have a lot of Ideas for mods for bully, and I will make them at the end im sure. Anyway I just cant believe how bully modding got so advanced because of people like Mad, Fred (I am not sure if I wrote his name right, he decompiled some lua scripts , I think I heard mad says that), Red, and propably in the future a lot more modders will be advancing us on bully modding. I am also very sure, that if any of the modders will release something in the level of a Zombie mod, a lot of old members will propably come back to check it out.
-
^It's not being harsh.
It's being direct and making everything clear.
Releases in the release section
Modify your message, don't post 3 in a row
-
He was not being harsh, Reply helps me now(I never knew it was there) So I can't spam now
-
Please give me an immediate and simple message.
Where do I paste this code? And which parts ?
-
In a .lua file.
Make one using Notepad++
-
Yeah I did download it. What do I do now?
-
Okay, it crashed with me too.
I'll go over the script and find the fault.
Works perfectly for me, although it should work bad for me since I have Windows 8 but it works like a charm!
-
Okay, it crashed with me too.
I'll go over the script and find the fault.
Works perfectly for me, although it should work bad for me since I have Windows 8 but it works like a charm!
the code was different back in 2012.
Now it works fine -cough- 2014
-
Dat bump.
-
Bumps are okay from time to time right now.
Questions need answers after all :)