SelectMission("sr2"); //The CIRCUIT RACE (with AI cars) //Script set up for multipkle laps SetMissionResetPlayerInCar("sr2_carstart"); SetDynaLoadData("l6z2.p3d;l6r2.p3d;l6r1.p3d;"); UsePedGroup(3); SetAnimatedCameraName( "race2camShape" ); SetAnimCamMulticontName( "race2cam" ); //Chuck: StreetRace Prop Load and Unload Setup StreetRacePropsLoad("l6_sr2p.p3d;"); StreetRacePropsUnload("l6_sr2p.p3d:"); AddStage(0); SetHUDIcon( "race"); DisableHitAndRun(); PlacePlayerCar("current", "sr2_carstart"); PutMFPlayerInCar( ); // This makes the play auto reset into their car for this stage. StartCountdown("count"); AddToCountdownSequence( "3", 1200 ); // duration time in milliseconds AddToCountdownSequence( "2", 800 ); // duration time in milliseconds AddToCountdownSequence( "1", 700 ); // duration time in milliseconds AddToCountdownSequence( "!!!", 400 ); // duration time in milliseconds SetStageMessageIndex(223); RESET_TO_HERE(); NoTrafficForStage(); AddStageVehicle("homer_v","sr2_AI_carstart1","race","Missions\level06\sr2_1st.con","homer"); SetVehicleAIParams( "homer_v", -50, -49 ); SetStageAIRaceCatchupParams("homer_v", 80, 1, 1.25, 2.5); //AddStageVehicle("burnsarm","sr2_AI_carstart2","race","Missions\level06\sr2_2nd.con"); //AddStageVehicle("compactA","sr2_AI_carstart3","race","Missions\level06\sr2_3rd.con"); //AddStageVehicle("pickupA","sr2_AI_carstart4","race","Missions\level06\sr2_4th.con"); AddStageWaypoint( "sr2_waypoint1" ); AddStageWaypoint( "sr2_waypoint1b" ); AddStageWaypoint( "sr2_waypoint1c" ); AddStageWaypoint( "sr2_waypoint1d" ); AddStageWaypoint( "sr2_waypoint2" ); AddStageWaypoint( "sr2_waypoint3" ); AddStageWaypoint( "sr2_waypoint4" ); AddStageWaypoint( "sr2_waypoint5" ); //AddStageWaypoint( "sr2_waypoint6" ); AddStageWaypoint( "sr2_waypoint6b" ); //AddStageWaypoint( "sr2_waypoint6c" ); //AddStageWaypoint( "sr2_waypoint7" ); AddStageWaypoint( "sr2_waypoint8" ); AddObjective( "race", neither ); AddNPC("patty", "sr2_patty"); AddNPC("selma", "sr2_selma"); AddCollectible("sr2_waypoint1","carsphere"); SetCollectibleEffect("wrench_collect"); AddCollectible("sr2_waypoint4","carsphere"); SetCollectibleEffect("wrench_collect"); AddCollectible("sr2_waypoint7","carsphere"); SetCollectibleEffect("wrench_collect"); AddCollectible("sr2_waypoint9","carsphere"); SetCollectibleEffect("wrench_collect"); SetRaceLaps(5); CloseObjective(); AddCondition("position"); SetConditionPosition(1); CloseCondition(); AddCondition( "damage" ); SetCondMinHealth( 0.0 ); SetCondTargetVehicle( "current"); CloseCondition(); AddCondition("outofvehicle"); SetCondTime( 10000 ); CloseCondition(); CloseStage(); AddStage(1, "final"); AddObjective("dialogue"); AddNPC("patty", "sr2_patty"); AddNPC("selma", "sr2_selma"); //AmbientAnimationRandomize( 1, 0 ); // ( pc=0, npc=1) (nonrandom=0, random=1) //AmbientAnimationRandomize( 0, 0 ); <<<===--- ASK IAN ABOUT THIS COMMAND //AddAmbientNpcAnimation( "dialogue_open_arm_hand_gesture" ); //AddAmbientNpcAnimation( "none" ); //AddAmbientNpcAnimation( "dialogue_thinking" ); //AddAmbientPcAnimation( "none" ); //AddAmbientPcAnimation( "dialogue_yes" ); //AddAmbientPcAnimation( "none" ); //AddAmbientPcAnimation( "dialogue_hands_in_air" ); //SetConversationCam( 3, "pc_far" ); //SetConversationCamNpcName("npc_near"); //SetConversationCamPcName("pc_near"); <<<===--- ASK IAN ABOUT THIS COMMAND. SetDialogueInfo("patty","bart","success",0); SetDialoguePositions("sr2_patty","sr2_bar_end","sr2_AI_carstart1"); CloseObjective(); CloseStage(); CloseMission();