valdowiyono Posted November 8, 2016 Share Posted November 8, 2016 hello guys please help me to solution how to fix script my mod!!! here its script my mod you can check this : {$CLEO .cs} //-------------MAIN---------------thread 'ALIEN' :ALIEN_11wait 0if0256: player $PLAYER_CHAR definedif and not Actor.Driving($PLAYER_ACTOR)8A0C: not player $PLAYER_CHAR on_jetpack84C8: not actor $PLAYER_ACTOR driving_flying_vehicle 00FE: actor $PLAYER_ACTOR sphere 0 in_sphere 226.1129 2498.733 16.4844 radius 120.0 120.0 120.0jf @ALIEN_11jump @ALIEN_87 :ALIEN_87wait 0Model.Load(#SPARROW)Model.Load(#SPECIAL01)Model.Load(2976)Model.Load(#M4)Model.Load(#MICRO_UZI)Model.Load(#TEC9)Model.Load(#MP5LNG)Model.Load(#SPECIAL02)023C: load_special_actor 'ALIENBS' as 1 // models 290-299023C: load_special_actor 'ALIEN5' as 2 // models 290-299038B: load_requested_models00BF: [email protected] = current_time_hours, [email protected] = current_time_minutesif and [email protected] >= 3 23 > [email protected]jf @ALIEN_199jump @ALIEN_11 :ALIEN_199wait 0if and Model.Available(#SPARROW) Model.Available(#SPECIAL01) Model.Available(2976) Model.Available(#M4) Model.Available(#MICRO_UZI) Model.Available(#TEC9) Model.Available(#MP5LNG) Model.Available(#SPECIAL02)jf @ALIEN_199$SONG = Audiostream.Load("CLEO\SOUND\UFOBOSSMUSIC.MP3")$MU = Audiostream.Load3D("CLEO\SOUND\UFOSOUND5.MP3")$MS = Audiostream.Load3D("CLEO\SOUND\SEARCHLIGHT.MP3")0881: set_player $PLAYER_CHAR able_to_shoot_weapons 0$GOO = Object.Create(2976, 0.0, 0.0, 0.0)0750: set_object $GOO visibility 0$GOO2 = Object.Create(2976, 0.0, 0.0, 0.0)0750: set_object $GOO2 visibility 0$GOO3 = Object.Create(2976, 0.0, 0.0, 0.0)0750: set_object $GOO3 visibility 0$BS1 = Actor.Create(Gang1, 290, 254.4401, 2488.925, 16.4844)Actor.Health($BS1) = 20000070A: AS_actor $BS1 attach_to_object $GOO offset 0.21 0.0 -0.1 on_bone 5 16 perform_animation "NULL" IFP_file "NULL" time -10446: set_actor $BS1 dismemberment_possible 0060B: set_actor $BS1 decision_maker_to [email protected]0337: set_actor $BS1 visibility 0Actor.SetImmunities($BS1, 1, 1, 1, 1, 1)$BS2 = Actor.Create(Gang1, 290, 254.4432, 2511.223, 16.5479)Actor.Health($BS2) = 20000070A: AS_actor $BS2 attach_to_object $GOO2 offset 0.21 0.0 -0.1 on_bone 6 16 perform_animation "NULL" IFP_file "NULL" time -10446: set_actor $BS2 dismemberment_possible 0060B: set_actor $BS2 decision_maker_to [email protected]0337: set_actor $BS2 visibility 0Actor.SetImmunities($BS2, 1, 1, 1, 1, 1)$BS3 = Actor.Create(Gang1, 290, 251.2569, 2489.642, 16.4844)Actor.Health($BS3) = 20000070A: AS_actor $BS3 attach_to_object $GOO3 offset 0.21 0.0 -0.1 on_bone 5 16 perform_animation "NULL" IFP_file "NULL" time -10446: set_actor $BS3 dismemberment_possible 0060B: set_actor $BS3 decision_maker_to [email protected]0337: set_actor $BS3 visibility 0Actor.SetImmunities($BS3, 1, 1, 1, 1, 1)$UFO = Car.Create(#SPARROW, 256.5239, 2499.9, 16.4844)Car.Health($UFO) = 8500Car.SetImmunities($UFO, 1, 1, 1, 1, 1)Car.LockInCurrentPosition($UFO) = TrueCar.SetSpeedInstantly($UFO, 20.0)Car.SetMaxSpeed($UFO, 100.0)Car.SetSpeedInstantly($UFO, 100.0)$TU1 = Marker.CreateAboveCar($UFO)07E0: set_marker $TU1 type_to 2018B: set_marker $TU1 radar_mode 2wait 1500Audiostream.PerformAction($SONG, PLAY)Audiostream.Loop($SONG, 1)0337: set_actor $BS1 visibility 10337: set_actor $BS2 visibility 10337: set_actor $BS3 visibility 10750: set_object $GOO visibility 10750: set_object $GOO2 visibility 10750: set_object $GOO3 visibility 107CD: AS_actor $BS1 walk_to 255.2557 2496.391 17.0268 stop_with_angle 0.0 within_radius 1.007CD: AS_actor $BS2 walk_to 256.0471 2503.23 17.2224 stop_with_angle 0.0 within_radius 1.007CD: AS_actor $BS3 walk_to 253.6642 2498.071 16.4844 stop_with_angle 0.0 within_radius 1.0wait 5500Object.Destroy($GOO)Object.RemoveReferences($GOO)Object.Destroy($GOO2)Object.RemoveReferences($GOO2)Object.Destroy($GOO3)Object.RemoveReferences($GOO3)Actor.DestroyInstantly($BS1)Actor.DestroyInstantly($BS2)Actor.DestroyInstantly($BS3)wait 2000Car.LockInCurrentPosition($UFO) = False070F: plane $UFO fly_direction 0.0 altitude_between -20.0 and 113.00825: set_helicopter $UFO instant_rotor_start03A2: set_car $UFO action 30726: heli $UFO follow_actor $PLAYER_ACTOR follow_car -1 radius 100.0Audiostream.PerformAction($MU, PLAY)Audiostream.LinkToCar($MU, $UFO)Audiostream.Volume($MU) = 100.9Audiostream.Loop($MU, 1)wait 8500jump @ALIEN_1191 :ALIEN_1191wait 00743: heli $UFO fly_to 382.3347 2539.624 20.5846 altitude -20.0 113.0wait 20000$ALIENDRV = Actor.Create(Gang1, 291, 0.0, 0.0, 0.0)Actor.Health($ALIENDRV) = 20000Actor.SetImmunities($ALIENDRV, 1, 1, 1, 1, 1)039E: set_actor $ALIENDRV locked 1 while_in_car072A: put_actor $ALIENDRV into_car $UFO driverseat06C1: create_searchlight $SG1 on_car $UFO with_offset 0.0 0.0 0.0 radius 0.85 target 382.3347 2539.624 20.5846 radius 10.0Audiostream.PerformAction($MU, STOP)Audiostream.Loop($MU, 0)Audiostream.PerformAction($MS, PLAY)Audiostream.LinkToCar($MS, $UFO)Audiostream.Volume($MS) = 100.9Audiostream.Loop($MS, 1)wait 300006B2: destroy_searchlight $SG1Audiostream.PerformAction($MS, STOP)Audiostream.Loop($MS, 0)Audiostream.PerformAction($MU, PLAY)Audiostream.LinkToCar($MU, $UFO)Audiostream.Volume($MU) = 100.9Audiostream.Loop($MU, 1)0743: heli $UFO fly_to 293.9839 2447.371 20.2074 altitude -20.0 113.0wait 2000006C1: create_searchlight $SG2 on_car $UFO with_offset 0.0 0.0 0.0 radius 0.85 target 293.9839 2447.371 20.2074 radius 10.0Audiostream.PerformAction($MU, STOP)Audiostream.Loop($MU, 0)Audiostream.PerformAction($MS, PLAY)Audiostream.LinkToCar($MS, $UFO)Audiostream.Volume($MS) = 100.9Audiostream.Loop($MS, 1)wait 300006B2: destroy_searchlight $SG2Audiostream.PerformAction($MS, STOP)Audiostream.Loop($MS, 0)Audiostream.PerformAction($MU, PLAY)Audiostream.LinkToCar($MU, $UFO)Audiostream.Volume($MU) = 100.9Audiostream.Loop($MU, 1)0743: heli $UFO fly_to 255.7049 2547.572 22.2656 altitude -20.0 113.0wait 2000006C1: create_searchlight $SG3 on_car $UFO with_offset 0.0 0.0 0.0 radius 0.85 target 255.7049 2547.572 22.2656 radius 10.0Audiostream.PerformAction($MU, STOP)Audiostream.Loop($MU, 0)Audiostream.PerformAction($MS, PLAY)Audiostream.LinkToCar($MS, $UFO)Audiostream.Volume($MS) = 100.9Audiostream.Loop($MS, 1)wait 300006B2: destroy_searchlight $SG3Audiostream.PerformAction($MS, STOP)Audiostream.Loop($MS, 0)0743: heli $UFO fly_to 230.5069 2546.717 26.3378 altitude -20.0 113.0wait 500006C1: create_searchlight $SG4 on_car $UFO with_offset 0.0 0.0 0.0 radius 0.85 target 230.5069 2546.717 26.3378 radius 10.0Audiostream.PerformAction($MS, PLAY)Audiostream.LinkToCar($MS, $UFO)Audiostream.Volume($MS) = 100.9Audiostream.Loop($MS, 1)wait 300006B2: destroy_searchlight $SG4Audiostream.PerformAction($MS, STOP)Audiostream.Loop($MS, 0)Audiostream.PerformAction($MU, PLAY)Audiostream.LinkToCar($MU, $UFO)Audiostream.Volume($MU) = 100.9Audiostream.Loop($MU, 1)0743: heli $UFO fly_to 293.9839 2447.371 20.2074 altitude -20.0 113.0wait 2000006C1: create_searchlight $SG5 on_car $UFO with_offset 0.0 0.0 0.0 radius 0.85 target 293.9839 2447.371 20.2074 radius 10.0Audiostream.PerformAction($MU, STOP)Audiostream.Loop($MU, 0)Audiostream.PerformAction($MS, PLAY)Audiostream.LinkToCar($MS, $UFO)Audiostream.Volume($MS) = 100.9Audiostream.Loop($MS, 1)wait 300006B2: destroy_searchlight $SG5Audiostream.PerformAction($MS, STOP)Audiostream.Loop($MS, 0)Audiostream.PerformAction($MU, PLAY)Audiostream.LinkToCar($MU, $UFO)Audiostream.Volume($MU) = 100.9Audiostream.Loop($MU, 1)0743: heli $UFO fly_to 382.3347 2539.624 20.5846 altitude -20.0 113.0wait 2000006C1: create_searchlight $SG6 on_car $UFO with_offset 0.0 0.0 0.0 radius 0.85 target 382.3347 2539.624 20.5846 radius 10.0Audiostream.PerformAction($MU, STOP)Audiostream.Loop($MU, 0)Audiostream.PerformAction($MS, PLAY)Audiostream.LinkToCar($MS, $UFO)Audiostream.Volume($MS) = 100.9Audiostream.Loop($MS, 1)wait 300006B2: destroy_searchlight $SG6Audiostream.PerformAction($MS, STOP)Audiostream.Loop($MS, 0)Audiostream.PerformAction($MU, PLAY)Audiostream.LinkToCar($MU, $UFO)Audiostream.Volume($MU) = 100.9Audiostream.Loop($MU, 1)jump @ALIEN_2329 :ALIEN_2329wait 00881: set_player $PLAYER_CHAR able_to_shoot_weapons 00ACD: show_text_highpriority "ALIEN: HUMAN IS HERE!!!" time 2000wait 2500Car.SetMaxSpeed($UFO, 300.0)0ACD: show_text_highpriority "ALIEN2: REALLY!? OK WE WILL KILL HUMAN" time 20000743: heli $UFO fly_to 256.5239 2499.9 16.4844 altitude -20.0 113.0wait 20000Car.LockInCurrentPosition($UFO) = True099A: set_car $UFO collision_detection 004C4: store_coords_to $S1 $S2 $S3 from_actor $ALIENDRV with_offset 0.0 0.0 -100.506C1: create_searchlight $SG7 on_car $UFO with_offset 0.0 0.0 0.0 radius 1.85 target $S1 $S2 $S3 radius 10.0Audiostream.PerformAction($MU, STOP)Audiostream.Loop($MU, 0)Audiostream.PerformAction($MS, PLAY)Audiostream.LinkToCar($MS, $UFO)Audiostream.Volume($MS) = 100.9Audiostream.Loop($MS, 1)04C4: store_coords_to $X $Y $Z from_actor $ALIENDRV with_offset 0.0 0.0 0.0wait 3000$AM1 = Actor.Create(Gang1, 291, $X, $Y, $Z)Actor.Health($AM1) = 1700Actor.GiveWeaponAndAmmo($AM1, M4, 2000)Actor.SetImmunities($AM1, 0, 1, 1, 0, 0)0446: set_actor $AM1 dismemberment_possible 002A9: set_actor $AM1 immune_to_nonplayer 105E2: AS_actor $AM1 kill_actor $PLAYER_ACTOR$TAM1 = Marker.CreateAboveActor($AM1)0165: set_marker $TAM1 color_to 00168: set_marker $TAM1 size 107E0: set_marker $TAM1 type_to 0if and Player.Defined($PLAYER_CHAR)00F2: actor $PLAYER_ACTOR near_actor $ALIENDRV radius 200.0 200.0 0jf @ALIEN_72070881: set_player $PLAYER_CHAR able_to_shoot_weapons 1wait 8000$AM2 = Actor.Create(Gang1, 291, $X, $Y, $Z)Actor.Health($AM2) = 1700Actor.GiveWeaponAndAmmo($AM2, M4, 2000)Actor.SetImmunities($AM2, 0, 1, 1, 0, 0)02A9: set_actor $AM2 immune_to_nonplayer 105E2: AS_actor $AM2 kill_actor $PLAYER_ACTOR$TAM2 = Marker.CreateAboveActor($AM2)0165: set_marker $TAM2 color_to 00168: set_marker $TAM2 size 107E0: set_marker $TAM2 type_to 0if and Player.Defined($PLAYER_CHAR)00F2: actor $PLAYER_ACTOR near_actor $ALIENDRV radius 200.0 200.0 0jf @ALIEN_7207wait 3000Car.LockInCurrentPosition($UFO) = False099A: set_car $UFO collision_detection 106B2: destroy_searchlight $SG7Audiostream.PerformAction($MU, PLAY)Audiostream.LinkToCar($MU, $UFO)Audiostream.Volume($MU) = 100.9Audiostream.Loop($MU, 1)Audiostream.PerformAction($MS, STOP)Audiostream.Loop($MS, 0)0743: heli $UFO fly_to 255.7049 2547.572 22.2656 altitude -20.0 113.0wait 20000Car.LockInCurrentPosition($UFO) = True099A: set_car $UFO collision_detection 004C4: store_coords_to $S1 $S2 $S3 from_actor $ALIENDRV with_offset 0.0 0.0 -100.506C1: create_searchlight $SG8 on_car $UFO with_offset 0.0 0.0 0.0 radius 1.85 target $S1 $S2 $S3 radius 10.0Audiostream.PerformAction($MU, STOP)Audiostream.Loop($MU, 0)Audiostream.PerformAction($MS, PLAY)Audiostream.LinkToCar($MS, $UFO)Audiostream.Volume($MS) = 100.9Audiostream.Loop($MS, 1)04C4: store_coords_to $X2 $Y2 $Z2 from_actor $ALIENDRV with_offset 0.0 0.0 0.0$AM3 = Actor.Create(Gang1, 291, $X2, $Y2, $Z2)Actor.Health($AM3) = 170002A9: set_actor $AM3 immune_to_nonplayer 1Actor.GiveWeaponAndAmmo($AM3, M4, 2000)0446: set_actor $AM3 dismemberment_possible 0Actor.SetImmunities($AM3, 0, 1, 1, 0, 0)05E2: AS_actor $AM3 kill_actor $PLAYER_ACTOR$TAM3 = Marker.CreateAboveActor($AM3)0165: set_marker $TAM3 color_to 00168: set_marker $TAM3 size 107E0: set_marker $TAM3 type_to 0if and Player.Defined($PLAYER_CHAR)00F2: actor $PLAYER_ACTOR near_actor $ALIENDRV radius 200.0 200.0 0jf @ALIEN_7207wait 8000$AM4 = Actor.Create(Gang1, 291, $X2, $Y2, $Z2)Actor.Health($AM4) = 170002A9: set_actor $AM4 immune_to_nonplayer 1Actor.GiveWeaponAndAmmo($AM4, M4, 2000)Actor.SetImmunities($AM4, 0, 1, 1, 0, 0)05E2: AS_actor $AM4 kill_actor $PLAYER_ACTOR$TAM4 = Marker.CreateAboveActor($AM4)0165: set_marker $TAM4 color_to 00168: set_marker $TAM4 size 107E0: set_marker $TAM4 type_to 0if and Player.Defined($PLAYER_CHAR)00F2: actor $PLAYER_ACTOR near_actor $ALIENDRV radius 200.0 200.0 0jf @ALIEN_7207wait 3000Car.LockInCurrentPosition($UFO) = False099A: set_car $UFO collision_detection 106B2: destroy_searchlight $SG8Audiostream.PerformAction($MU, PLAY)Audiostream.LinkToCar($MU, $UFO)Audiostream.Volume($MU) = 100.9Audiostream.Loop($MU, 1)Audiostream.PerformAction($MS, STOP)Audiostream.Loop($MS, 0)0743: heli $UFO fly_to 293.9839 2447.371 20.2074 altitude -20.0 113.0wait 20000Car.LockInCurrentPosition($UFO) = True099A: set_car $UFO collision_detection 004C4: store_coords_to $S1 $S2 $S3 from_actor $ALIENDRV with_offset 0.0 0.0 -100.506C1: create_searchlight $SG9 on_car $UFO with_offset 0.0 0.0 0.0 radius 1.85 target $S1 $S2 $S3 radius 10.0Audiostream.PerformAction($MU, STOP)Audiostream.Loop($MU, 0)Audiostream.PerformAction($MS, PLAY)Audiostream.LinkToCar($MS, $UFO)Audiostream.Volume($MS) = 100.9Audiostream.Loop($MS, 1)04C4: store_coords_to $X3 $Y3 $Z3 from_actor $ALIENDRV with_offset 0.0 0.0 0.0$AM5 = Actor.Create(Gang1, 291, $X3, $Y3, $Z3)Actor.Health($AM5) = 170002A9: set_actor $AM5 immune_to_nonplayer 1Actor.GiveWeaponAndAmmo($AM5, M4, 2000)Actor.SetImmunities($AM5, 0, 1, 1, 0, 0)0446: set_actor $AM5 dismemberment_possible 005E2: AS_actor $AM5 kill_actor $PLAYER_ACTOR$TAM5 = Marker.CreateAboveActor($AM5)0165: set_marker $TAM5 color_to 00168: set_marker $TAM5 size 107E0: set_marker $TAM5 type_to 0if and Player.Defined($PLAYER_CHAR)00F2: actor $PLAYER_ACTOR near_actor $ALIENDRV radius 200.0 200.0 0jf @ALIEN_7207wait 8000$AM6 = Actor.Create(Gang1, 291, $X3, $Y3, $Z3)Actor.Health($AM6) = 170002A9: set_actor $AM6 immune_to_nonplayer 1Actor.GiveWeaponAndAmmo($AM6, M4, 2000)Actor.SetImmunities($AM6, 0, 1, 1, 0, 0)05E2: AS_actor $AM6 kill_actor $PLAYER_ACTOR$TAM6 = Marker.CreateAboveActor($AM6)0165: set_marker $TAM6 color_to 00168: set_marker $TAM6 size 107E0: set_marker $TAM6 type_to 0if and Player.Defined($PLAYER_CHAR)00F2: actor $PLAYER_ACTOR near_actor $ALIENDRV radius 200.0 200.0 0jf @ALIEN_7207wait 3000Car.LockInCurrentPosition($UFO) = False099A: set_car $UFO collision_detection 106B2: destroy_searchlight $SG9Audiostream.PerformAction($MU, PLAY)Audiostream.LinkToCar($MU, $UFO)Audiostream.Volume($MU) = 100.9Audiostream.Loop($MU, 1)Audiostream.PerformAction($MS, STOP)Audiostream.Loop($MS, 0)0743: heli $UFO fly_to 134.4082 2561.818 16.3672 altitude -20.0 113.0wait 25000Car.LockInCurrentPosition($UFO) = True099A: set_car $UFO collision_detection 004C4: store_coords_to $S1 $S2 $S3 from_actor $ALIENDRV with_offset 0.0 0.0 -100.506C1: create_searchlight $SG10 on_car $UFO with_offset 0.0 0.0 0.0 radius 1.85 target $S1 $S2 $S3 radius 10.0Audiostream.PerformAction($MU, STOP)Audiostream.Loop($MU, 0)Audiostream.PerformAction($MS, PLAY)Audiostream.LinkToCar($MS, $UFO)Audiostream.Volume($MS) = 100.9Audiostream.Loop($MS, 1)04C4: store_coords_to $X4 $Y4 $Z4 from_actor $ALIENDRV with_offset 0.0 0.0 0.0$AM7 = Actor.Create(Gang1, 291, $X4, $Y4, $Z4)Actor.Health($AM7) = 170002A9: set_actor $AM7 immune_to_nonplayer 1Actor.GiveWeaponAndAmmo($AM7, M4, 2000)Actor.SetImmunities($AM7, 0, 1, 1, 0, 0)0446: set_actor $AM7 dismemberment_possible 004D8: set_actor $AM7 drowns_in_water 005E2: AS_actor $AM7 kill_actor $PLAYER_ACTOR$TAM7 = Marker.CreateAboveActor($AM7)0165: set_marker $TAM7 color_to 00168: set_marker $TAM7 size 107E0: set_marker $TAM7 type_to 0if and00F2: actor $PLAYER_ACTOR near_actor $ALIENDRV radius 200.0 200.0 0 Player.Defined($PLAYER_CHAR)jf @ALIEN_7207wait 8000$AM8 = Actor.Create(Gang1, 291, $X4, $Y4, $Z4)Actor.Health($AM8) = 200002A9: set_actor $AM8 immune_to_nonplayer 1Actor.GiveWeaponAndAmmo($AM8, M4, 2000)Actor.SetImmunities($AM8, 0, 1, 1, 0, 0)04D8: set_actor $AM8 drowns_in_water 005E2: AS_actor $AM8 kill_actor $PLAYER_ACTOR$TAM8 = Marker.CreateAboveActor($AM8)0165: set_marker $TAM8 color_to 00168: set_marker $TAM8 size 107E0: set_marker $TAM8 type_to 0if and00F2: actor $PLAYER_ACTOR near_actor $ALIENDRV radius 200.0 200.0 0 Player.Defined($PLAYER_CHAR)jf @ALIEN_7207wait 300006B2: destroy_searchlight $SG10Car.LockInCurrentPosition($UFO) = False099A: set_car $UFO collision_detection 1Marker.Disable($TU1)0ACD: show_text_highpriority "DESTROY UFO!, UFO WILL ATTACK YOU!" time 7000$TU2 = Marker.CreateAboveCar($UFO)0165: set_marker $TU2 color_to 007E0: set_marker $TU2 type_to 0jump @ALIEN_4649 :ALIEN_464904C4: store_coords_to $S1 $S2 $S3 from_actor $ALIENDRV with_offset 0.0 0.0 -100.506C1: create_searchlight $SG11 on_car $UFO with_offset 0.0 0.0 0.0 radius 1.85 target $S1 $S2 $S3 radius 8.0if AND00F2: actor $PLAYER_ACTOR near_actor $ALIENDRV radius 200.0 200.0 0 Player.Defined($PLAYER_CHAR)jf @ALIEN_7207Audiostream.PerformAction($MS, PLAY)Audiostream.LinkToCar($MS, $UFO)Audiostream.Volume($MS) = 100.9Audiostream.Loop($MS, 1)06B6: set_searchlight $SG11 follow_actor $PLAYER_ACTOR speed 0.20724: heli $UFO follow_and_attack_player $PLAYER_CHAR radius 25.00841: flying_vehicle $UFO use_secondary_gun 103A2: set_car $UFO action 3wait 20000if AND00F2: actor $PLAYER_ACTOR near_actor $ALIENDRV radius 200.0 200.0 0 Player.Defined($PLAYER_CHAR)jf @ALIEN_72070ACD: show_text_highpriority "ALIEN: HMMM, I WILL TELEPORT TO KILL FAST HUMAN!!!" time 5000wait 50000ACD: show_text_highpriority "ALIEN2: OK, I WILL CHANGE TIME TO 23.00!!!" time 9000wait 150000C0: set_current_time_hours_to 23 minutes_to 0Marker.Disable($TU2)jump @ALIEN_5003 :ALIEN_5003wait 0if not Actor.Dead($ALIENDRV)jf @ALIEN_5594if AND Player.Defined($PLAYER_CHAR)00F2: actor $PLAYER_ACTOR near_actor $ALIENDRV radius 200.0 200.0 0jf @ALIEN_7207if [email protected] > 8000jf @ALIEN_50030841: flying_vehicle $UFO use_secondary_gun 006B2: destroy_searchlight $SG1106B2: destroy_searchlight $SG12Audiostream.PerformAction($MS, STOP)Audiostream.Loop($MS, 0)066C: $CM1 = attach_particle "CAMFLASH" to_car $UFO with_offset 0.7 0.0 0 rotation 0.0 180 0.0 type 1064C: make_particle $CM1 visible066B: $CM2 = attach_particle "SHOOTLIGHT" to_car $UFO with_offset 0.0 0.0 0.0 type 1064C: make_particle $CM2 visiblewait 300066C: $CM3 = attach_particle "CAMFLASH" to_car $UFO with_offset 0.7 0.0 0 rotation 0.0 180 0.0 type 1064C: make_particle $CM3 visible066B: $CM4 = attach_particle "SHOOTLIGHT" to_car $UFO with_offset 0.0 0.0 0.0 type 1064C: make_particle $CM4 visible0338: set_car $UFO visibility 0Marker.Disable($TU3)Car.SetImmunities($UFO, 1, 1, 1, 1, 1)084E: flying_vehicle $UFO use_primary_gun 10726: heli $UFO follow_actor $PLAYER_ACTOR follow_car -1 radius 25.004C4: store_coords_to $A $B $C from_actor $PLAYER_ACTOR with_offset 0.0 -45.0 0.0Car.PutAt($UFO, $A, $B, $C)0825: set_helicopter $UFO instant_rotor_startwait 5000Car.SetImmunities($UFO, 0, 0, 1, 0, 0)0338: set_car $UFO visibility 1$TU3 = Marker.CreateAboveCar($UFO)0165: set_marker $TU3 color_to 007E0: set_marker $TU3 type_to 00724: heli $UFO follow_and_attack_player $PLAYER_CHAR radius 25.003A2: set_car $UFO action 304C4: store_coords_to $L1 $L2 $L3 from_actor $ALIENDRV with_offset 0.0 0.0 -100.506C1: create_searchlight $SG12 on_car $UFO with_offset 0.0 0.0 0.0 radius 1.85 target $L1 $L2 $L3 radius 8.0Audiostream.PerformAction($MS, PLAY)Audiostream.LinkToCar($MS, $UFO)Audiostream.Volume($MS) = 100.9Audiostream.Loop($MS, 1)06B6: set_searchlight $SG12 follow_actor $PLAYER_ACTOR speed 0.2[email protected] = 0jump @ALIEN_5003 :ALIEN_5594Marker.Disable($TU3)Audiostream.Release($MU)Audiostream.Release($MS)Audiostream.PerformAction($MU, STOP)Audiostream.PerformAction($MS, STOP)06B2: destroy_searchlight $SG1206B2: destroy_searchlight $SG11wait 800004C4: store_coords_to $D $E $F from_actor $PLAYER_ACTOR with_offset 0.0 5.0 0.0$BA4 = Actor.Create(Gang1, #SPECIAL01, $D, $E, $F)Actor.Health($BA4) = 2000Actor.GiveWeaponAndAmmo($BA4, Tec9, 8000)Actor.SetImmunities($BA4, 0, 1, 1, 0, 0)02A9: set_actor $BA4 immune_to_nonplayer 105E2: AS_actor $BA4 kill_actor $PLAYER_ACTORif AND Player.Defined($PLAYER_CHAR)00F2: actor $PLAYER_ACTOR near_actor $BA4 radius 180.0 180.0 0jf @ALIEN_72070ACD: show_text_highpriority "ALIEN BOSS COMING!!!" time 7000wait 100004C4: store_coords_to $G $H $I from_actor $PLAYER_ACTOR with_offset 0.0 5.0 0.0$BA5 = Actor.Create(Gang1, #SPECIAL01, $G, $H, $I)Actor.Health($BA5) = 200004D8: set_actor $BA5 drowns_in_water 0Actor.GiveWeaponAndAmmo($BA5, Tec9, 8000)Actor.SetImmunities($BA5, 0, 1, 1, 0, 0)02A9: set_actor $BA5 immune_to_nonplayer 105E2: AS_actor $BA5 kill_actor $PLAYER_ACTORif AND Player.Defined($PLAYER_CHAR)00F2: actor $PLAYER_ACTOR near_actor $BA5 radius 180.0 180.0 0jf @ALIEN_7207wait 100004C4: store_coords_to $J $K $M from_actor $PLAYER_ACTOR with_offset 0.0 5.0 0.0$BA7 = Actor.Create(Gang1, #SPECIAL01, $J, $K, $M)Actor.Health($BA7) = 200004D8: set_actor $BA7 drowns_in_water 0Actor.GiveWeaponAndAmmo($BA7, Tec9, 8000)Actor.SetImmunities($BA7, 0, 1, 1, 0, 0)02A9: set_actor $BA7 immune_to_nonplayer 105E2: AS_actor $BA7 kill_actor $PLAYER_ACTORwait 8000jump @ALIEN_6061 :ALIEN_6061if not Actor.Dead($BA7)jf @ALIEN_6565if Player.Defined($PLAYER_CHAR)jf @ALIEN_7207if [email protected] > 7000jf @ALIEN_60610ACD: show_text_highpriority "--POWER INVISIBLE ALIEN ACTIVE--" time 3000066A: $CAM8 = attach_particle "CAMFLASH" to_actor $BA4 with_offset 0.7 0.0 0 rotation 0.0 180 0.0 type 00883: attach_particle $CAM8 to_actor $BA4 mode 1064C: make_particle $CAM8 visibleActor.SetImmunities($BA4, 1, 1, 1, 1, 1)0337: set_actor $BA4 visibility 00555: remove_weapon 32 from_actor $BA4wait 50066A: $CAM9 = attach_particle "CAMFLASH" to_actor $BA5 with_offset 0.7 0.0 0 rotation 0.0 180 0.0 type 00883: attach_particle $CAM9 to_actor $BA5 mode 1064C: make_particle $CAM9 visibleActor.SetImmunities($BA5, 1, 1, 1, 1, 1)0337: set_actor $BA5 visibility 00555: remove_weapon 32 from_actor $BA5wait 50066A: $CAM10 = attach_particle "CAMFLASH" to_actor $BA7 with_offset 0.7 0.0 0 rotation 0.0 180 0.0 type 00883: attach_particle $CAM10 to_actor $BA7 mode 1064C: make_particle $CAM10 visibleActor.SetImmunities($BA7, 1, 1, 1, 1, 1)0337: set_actor $BA7 visibility 00555: remove_weapon 32 from_actor $BA7wait 8000Actor.SetImmunities($BA4, 0, 1, 1, 0, 0)Actor.GiveWeaponAndAmmo($BA4, Tec9, 8000)0337: set_actor $BA4 visibility 1wait 999Actor.SetImmunities($BA5, 0, 1, 1, 0, 0)Actor.GiveWeaponAndAmmo($BA5, Tec9, 8000)0337: set_actor $BA5 visibility 1wait 1500Actor.SetImmunities($BA7, 0, 1, 1, 0, 0)Actor.GiveWeaponAndAmmo($BA7, Tec9, 8000)04D8: set_actor $BA7 drowns_in_water 00337: set_actor $BA7 visibility 102A9: set_actor $BA7 immune_to_nonplayer 1[email protected] = 0jump @ALIEN_6565 :ALIEN_6565wait 0if AND Actor.Dead($BA4) Actor.Dead($BA5) Actor.Dead($BA7)jf @ALIEN_6565jump @ALIEN_6602 :ALIEN_660204C4: store_coords_to $X6 $Y6 $Z6 from_actor $BA4 with_offset 0.0 1.0 0.0$GOO4 = Object.Create(2976, $X6, $Y6, $Z6)$TANDA1 = Marker.CreateAboveObject($GOO4)Marker.SetColor($TANDA1, 1)Marker.SetIconSize($TANDA1, 2)wait 5004C4: store_coords_to $X7 $Y7 $Z7 from_actor $BA5 with_offset 0.0 1.0 0.0$GOO5 = Object.Create(2976, $X7, $Y7, $Z7)$TANDA2 = Marker.CreateAboveObject($GOO5)Marker.SetColor($TANDA2, 1)Marker.SetIconSize($TANDA2, 2)wait 5004C4: store_coords_to $X8 $Y8 $Z8 from_actor $BA7 with_offset 0.0 1.0 0.0$GOO6 = Object.Create(2976, $X8, $Y8, $Z8)$TANDA3 = Marker.CreateAboveObject($GOO6)Marker.SetColor($TANDA3, 1)Marker.SetIconSize($TANDA3, 2)0ACD: show_text_highpriority "TAKE GREEN GOO FROM ALIEN!!!" time 7000jump @ALIEN_6856 :ALIEN_6856if00F2: actor $PLAYER_ACTOR near_actor $BA4 radius 1.0 1.0 1.0jf @ALIEN_70160750: set_object $GOO4 visibility 0Object.Destroy($GOO4)Marker.Disable($TANDA1)if00F2: actor $PLAYER_ACTOR near_actor $BA5 radius 1.0 1.0 1.0jf @ALIEN_70160750: set_object $GOO5 visibility 0Object.Destroy($GOO5)Marker.Disable($TANDA2)if00F2: actor $PLAYER_ACTOR near_actor [email protected] radius 1.0 1.0 1.0jf @ALIEN_70160750: set_object $GOO6 visibility 0Object.Destroy($GOO6)Marker.Disable($TANDA3)jump @ALIEN_7016 :ALIEN_7016if ANDMarker.Disable($TANDA1)Marker.Disable($TANDA2)Marker.Disable($TANDA3)jf @ALIEN_7049jump @ALIEN_6856 :ALIEN_7049wait 0Actor.DestroyInstantly($BA4)Actor.DestroyInstantly($BA5)Actor.DestroyInstantly($BA7)Actor.DestroyInstantly($ALIENDRV)Actor.DestroyInstantly($AM1)Actor.DestroyInstantly($AM2)Actor.DestroyInstantly($AM3)Actor.DestroyInstantly($AM4)Actor.DestroyInstantly($AM5)Actor.DestroyInstantly($AM6)Actor.DestroyInstantly($AM7)Actor.DestroyInstantly($AM8)Marker.Disable($TU1)Marker.Disable($TU3)Marker.Disable($TU2)Marker.Disable($TAM1)Marker.Disable($TAM2)Marker.Disable($TAM3)Marker.Disable($TAM4)Marker.Disable($TAM5)Marker.Disable($TAM6)Marker.Disable($TAM7)Marker.Disable($TAM8)wait 1000Car.Destroy($UFO)Car.RemoveReferences($UFO)Player.Money($PLAYER_CHAR) += 550000wait 70000jump @ALIEN_11 :ALIEN_7207Actor.DestroyInstantly($ALIENDRV)06B2: destroy_searchlight $SG1206B2: destroy_searchlight $SG11Actor.DestroyInstantly($BA4)Actor.DestroyInstantly($BA5)Actor.DestroyInstantly($BA7)Audiostream.Release($MU)Audiostream.Release($MS)Audiostream.Release($SONG)Audiostream.PerformAction($MU, STOP)Audiostream.PerformAction($MS, STOP)Audiostream.PerformAction($SONG, STOP)Marker.Disable($TU1)Marker.Disable($TU2)Marker.Disable($TU3)Marker.Disable($TAM1)Marker.Disable($TAM2)Marker.Disable($TAM3)Marker.Disable($TAM4)Marker.Disable($TAM5)Marker.Disable($TAM6)Marker.Disable($TAM7)Marker.Disable($TAM8)Actor.DestroyInstantly($AM1)Actor.DestroyInstantly($AM2)Actor.DestroyInstantly($AM3)Actor.DestroyInstantly($AM4)Actor.DestroyInstantly($AM5)Actor.DestroyInstantly($AM6)Actor.DestroyInstantly($AM7)Actor.DestroyInstantly($AM8)Car.Destroy($UFO)Car.RemoveReferences($UFO)wait 70000jump @ALIEN_11 Link to comment Share on other sites More sharing options...
ZAZ Posted November 9, 2016 Share Posted November 9, 2016 Don't use global vars like $BS1 in cleo scripts $PLAYER_CHAR, $PLAYER_ACTOR and $ONMISSION is ok for all the others use local vars instead Also look here for propper method to load and spawn special_actor and put maximum 7 conditions inside a conditional check CLEO MODS CLEO Script Tutorial Link to comment Share on other sites More sharing options...
valdowiyono Posted November 12, 2016 Author Share Posted November 12, 2016 (edited) Don't use global vars like $BS1 in cleo scripts $PLAYER_CHAR, $PLAYER_ACTOR and $ONMISSION is ok for all the others use local vars instead Also look here for propper method to load and spawn special_actor and put maximum 7 conditions inside a conditional check hmmm, thanks zaz!!! but give me example,i dont know your speak " put maximum 7 conditions inside a coniditional check" Edited November 13, 2016 by valdowiyono Link to comment Share on other sites More sharing options...
ZAZ Posted November 13, 2016 Share Posted November 13, 2016 (edited) hmmm, thanks zaz!!! but give me example,i dont know your speak " put maximum 7 conditions inside a coniditional check" maximum 7 conditions inside a coniditional check Model.Load(#BALLAS1)Model.Load(#BALLAS2)Model.Load(#BALLAS3)Model.Load(#CWFYHB)Model.Load(#CWFYFR2)Model.Load(#CWFYFR1)Model.Load(#CWFOHB)Model.Load(#CWFOFR)Model.Load(#BMYAP)Model.Load(#WFYSTEW)Model.Load(#CWMYHB2)Model.Load(#CWMYHB1)Model.Load(#CWMYFR)Model.Load(#CWMOHB2)Model.Load(#CWMOHB1)Model.Load(#CWMOFR)Model.Load(#WMYSGRD)Model.Load(#WMYPLT)Model.Load(#WMYMECH)Model.Load(#WMYGOL2)Model.Load(#WMYGOL1)Model.Load(#WMYCONB)Model.Load(#WMYCON)Model.Load(3045) :ZOMBILS_1028wait 0 if and Model.Available(3045) 7 conditions Model.Available(#WMYGOL1) Model.Available(#WMYGOL2) Model.Available(#WMYMECH) Model.Available(#WMYPLT) Model.Available(#WMYSGRD) Model.Available(#WMYCONB)else_jump @ZOMBILS_1028 :ZOMBILS_1073wait 0 if and Model.Available(#BALLAS1) 7 conditions Model.Available(#BALLAS2) Model.Available(#BALLAS3) Model.Available(#CWFYHB) Model.Available(#CWFYFR2) Model.Available(#CWFYFR1) Model.Available(#CWFOHB)else_jump @ZOMBILS_1073 :ZOMBILS_1120wait 0 if and Model.Available(#WFYSTEW) 7 conditions Model.Available(#CWMYHB2) Model.Available(#CWMYHB1) Model.Available(#CWMYFR) Model.Available(#CWMOHB2) Model.Available(#CWMOHB1) Model.Available(#CWMOFR)else_jump @ZOMBILS_1120 :ZOMBILS_1169wait 0 if and Model.Available(#WMYCON) 3 conditions Model.Available(#BMYAP) Model.Available(#CWFOFR)else_jump @ZOMBILS_1169 use local vars same var can be used again in case if the reference of the instance has been removed this create an actor instance with local var: [email protected] = Actor.Create(Mission1, #SPECIAL01, [email protected], [email protected], [email protected]) this remove the actor instance: Actor.RemoveReferences([email protected])this also: Actor.DestroyInstantly([email protected])and this also: Actor.DestroyWithFade([email protected])but use only one of these code to remove referencethen the instance can't be used anymore in the script then the var is free to use for another instance script below spawn actors, one after one, all with same local var press Backspace to spawn actors {$CLEO .cs}thread 'EXAMPLE':EXAMPLE_1wait 0 if Player.Defined($PLAYER_CHAR)jf @EXAMPLE_1 if 0AB0: key_pressed 8//------------------- press Backspacejf @EXAMPLE_1023C: load_special_actor 'ALIENBS' as 1 // models 290-299023C: load_special_actor 'ALIEN5' as 2 // models 290-299Model.Load(#AK47):EXAMPLE_2wait 0if and023D: special_actor 1 loaded023D: special_actor 2 loadedModel.Available(#AK47)jf @EXAMPLE_204C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset 0.0 4.0 [email protected] = Actor.Create(Mission1, #SPECIAL01, [email protected], [email protected], [email protected])Actor.GiveWeaponAndAmmo([email protected], AK47, 99999)Actor.WeaponAccuracy([email protected]) = [email protected] = Marker.CreateAboveActor([email protected])05E2: AS_actor [email protected] kill_actor $PLAYER_ACTORwait 5000Marker.Disable([email protected])Actor.RemoveReferences([email protected])if Player.Defined($PLAYER_CHAR)jf @[email protected] = Actor.Create(Mission1, #SPECIAL02, [email protected], [email protected], [email protected])Actor.GiveWeaponAndAmmo([email protected], AK47, 99999)Actor.WeaponAccuracy([email protected]) = [email protected] = Marker.CreateAboveActor([email protected])05E2: AS_actor [email protected] kill_actor $PLAYER_ACTORwait 5000Marker.Disable([email protected])Actor.RemoveReferences([email protected])wait 2000if Player.Defined($PLAYER_CHAR)jf @[email protected] = Actor.Create(Mission1, #SPECIAL01, [email protected], [email protected], [email protected])Actor.GiveWeaponAndAmmo([email protected], AK47, 99999)Actor.WeaponAccuracy([email protected]) = [email protected] = Marker.CreateAboveActor([email protected])05E2: AS_actor [email protected] kill_actor $PLAYER_ACTORwait 5000Marker.Disable([email protected])Actor.RemoveReferences([email protected])wait 2000if Player.Defined($PLAYER_CHAR)jf @[email protected] = Actor.Create(Mission1, #SPECIAL02, [email protected], [email protected], [email protected])Actor.GiveWeaponAndAmmo([email protected], AK47, 99999)Actor.WeaponAccuracy([email protected]) = [email protected] = Marker.CreateAboveActor([email protected])05E2: AS_actor [email protected] kill_actor $PLAYER_ACTORwait 5000Marker.Disable([email protected])Actor.RemoveReferences([email protected])wait 2000if Player.Defined($PLAYER_CHAR)jf @EXAMPLE_100BA: show_text_styled GXT 'M_PASSD' time 1000 style 10394: play_music 1jump @EXAMPLE_1 your Alien script(but not everything), how i would write it test it, it should work for you {$CLEO .cs}thread 'ALIEN' :ALIEN_11wait 0if0256: player $PLAYER_CHAR definedjf @ALIEN_1100BF: [email protected] = current_time_hours, [email protected] = current_time_minutesif or [email protected] > 22 3 > [email protected] @ALIEN_11if and not Actor.Driving($PLAYER_ACTOR)8A0C: not player $PLAYER_CHAR on_jetpack84C8: not actor $PLAYER_ACTOR driving_flying_vehicle 00FE: actor $PLAYER_ACTOR sphere 0 in_sphere 226.1129 2498.733 16.4844 radius 150.0 150.0 150.0jf @ALIEN_11Model.Load(#SPARROW)Model.Load(2976)Model.Load(#M4)Model.Load(#MICRO_UZI)Model.Load(#TEC9)Model.Load(#MP5LNG):ALIEN_13wait 0if and Model.Available(#SPARROW) Model.Available(2976) Model.Available(#M4) Model.Available(#MICRO_UZI) Model.Available(#TEC9) Model.Available(#MP5LNG)jf @ALIEN_13023C: load_special_actor 'ALIENBS' as 1 // models 290-299023C: load_special_actor 'ALIEN5' as 2 // models 290-299:ALIEN_15wait 0if and023D: special_actor 1 loaded023D: special_actor 2 loadedjf @ALIEN_150881: set_player $PLAYER_CHAR able_to_shoot_weapons [email protected] = Object.Create(2976, 0.0, 0.0, 0.0)0750: set_object [email protected] visibility [email protected] = Object.Create(2976, 0.0, 0.0, 0.0)0750: set_object [email protected] visibility [email protected] = Object.Create(2976, 0.0, 0.0, 0.0)0750: set_object [email protected] visibility [email protected] = Actor.Create(Gang1, #SPECIAL01, 254.4401, 2488.925, 16.4844)Actor.Health([email protected]) = 20000070A: AS_actor [email protected] attach_to_object [email protected] offset 0.21 0.0 -0.1 on_bone 5 16 perform_animation "NULL" IFP_file "NULL" time -10446: set_actor [email protected] dismemberment_possible 0060B: set_actor [email protected] decision_maker_to [email protected]: set_actor [email protected] visibility 0Actor.SetImmunities([email protected], 1, 1, 1, 1, 1)[email protected] = Actor.Create(Gang1, #SPECIAL01, 254.4432, 2511.223, 16.5479)Actor.Health([email protected]) = 20000070A: AS_actor [email protected] attach_to_object [email protected] offset 0.21 0.0 -0.1 on_bone 6 16 perform_animation "NULL" IFP_file "NULL" time -10446: set_actor [email protected] dismemberment_possible 0060B: set_actor [email protected] decision_maker_to [email protected]: set_actor [email protected] visibility 0Actor.SetImmunities([email protected], 1, 1, 1, 1, 1)[email protected] = Actor.Create(Gang1, #SPECIAL01, 251.2569, 2489.642, 16.4844)Actor.Health([email protected]) = 20000070A: AS_actor [email protected] attach_to_object [email protected] offset 0.21 0.0 -0.1 on_bone 5 16 perform_animation "NULL" IFP_file "NULL" time -10446: set_actor [email protected] dismemberment_possible 0060B: set_actor [email protected] decision_maker_to [email protected]: set_actor [email protected] visibility 0Actor.SetImmunities([email protected], 1, 1, 1, 1, 1)[email protected] = Car.Create(#SPARROW, 256.5239, 2499.9, 16.4844)Car.Health([email protected]) = 8500Car.SetImmunities([email protected], 1, 1, 1, 1, 1)Car.LockInCurrentPosition([email protected]) = [email protected] = Marker.CreateAboveCar([email protected])07E0: set_marker [email protected] type_to 2018B: set_marker [email protected] radar_mode 2wait 10000337: set_actor [email protected] visibility 10337: set_actor [email protected] visibility 10337: set_actor [email protected] visibility 10750: set_object [email protected] visibility 10750: set_object [email protected] visibility 10750: set_object [email protected] visibility 107CD: AS_actor [email protected] walk_to 255.2557 2496.391 17.0268 stop_with_angle 0.0 within_radius 1.007CD: AS_actor [email protected] walk_to 256.0471 2503.23 17.2224 stop_with_angle 0.0 within_radius 1.007CD: AS_actor [email protected] walk_to 253.6642 2498.071 16.4844 stop_with_angle 0.0 within_radius 1.0wait 6500Object.Destroy([email protected])Object.Destroy([email protected])Object.Destroy([email protected])Actor.DestroyInstantly([email protected])Actor.DestroyInstantly([email protected])Actor.DestroyInstantly([email protected])[email protected] = [email protected] = 0:ALIEN_21wait 0if0256: player $PLAYER_CHAR definedjf @cleanup_01if and8119: not car [email protected] wrecked00FE: actor $PLAYER_ACTOR sphere 0 in_sphere 226.1129 2498.733 16.4844 radius 500.0 500.0 500.0jf @cleanup_01Car.LockInCurrentPosition([email protected]) = False0825: set_helicopter [email protected] instant_rotor_start03A2: set_car [email protected] action 30726: heli [email protected] follow_actor $PLAYER_ACTOR follow_car -1 radius 100.0gosub @AUDIO_CHECKgosub @AUDIO_PLAY_ufosound5wait 7000wait 8500if8119: not car [email protected] wrecked jf @cleanup_010743: heli [email protected] fly_to 382.3347 2539.624 20.5846 altitude 0.0 113.0wait 20000if0256: player $PLAYER_CHAR definedjf @cleanup_01if and8119: not car [email protected] wrecked 00FE: actor $PLAYER_ACTOR sphere 0 in_sphere 226.1129 2498.733 16.4844 radius 500.0 500.0 500.0jf @cleanup_01gosub @[email protected] = Actor.Create(Gang1, #SPECIAL02, 0.0, 0.0, 0.0)Actor.Health([email protected]) = 20000Actor.SetImmunities([email protected], 1, 1, 1, 1, 1)039E: set_actor [email protected] locked 1 while_in_car072A: put_actor [email protected] into_car [email protected] driverseat06C1: create_searchlight [email protected] on_car [email protected] with_offset 0.0 0.0 0.0 radius 0.85 target 382.3347 2539.624 20.5846 radius 10.0Audiostream.PerformAction([email protected], STOP)Audiostream.Loop([email protected], 0)gosub @[email protected] = [email protected] = [email protected] = 0:ALIEN_35wait 0if0256: player $PLAYER_CHAR definedjf @cleanup_02if and8119: not car [email protected] wrecked8118: not actor [email protected] dead00FE: actor $PLAYER_ACTOR sphere 0 in_sphere 226.1129 2498.733 16.4844 radius 500.0 500.0 500.0jf @cleanup_02if [email protected] == [email protected] > 3000jf @ALIEN_3706B2: destroy_searchlight [email protected]: heli [email protected] fly_to 293.9839 2447.371 20.2074 altitude 0.0 113.0Audiostream.PerformAction([email protected], STOP)Audiostream.Loop([email protected], 0)gosub @[email protected] = [email protected] = [email protected] = 0:ALIEN_37if [email protected] == [email protected] > 20000jf @ALIEN_3906C1: create_searchlight [email protected] on_car [email protected] with_offset 0.0 0.0 0.0 radius 0.85 target 293.9839 2447.371 20.2074 radius 10.0Audiostream.PerformAction([email protected], STOP)Audiostream.Loop([email protected], 0)gosub @[email protected] = [email protected] = [email protected] = 0:ALIEN_39if [email protected] == [email protected] > 3000jf @ALIEN_4106B2: destroy_searchlight [email protected]: heli [email protected] fly_to 255.7049 2547.572 22.2656 altitude 0.0 113.0Audiostream.PerformAction([email protected], STOP)Audiostream.Loop([email protected], 0)gosub @[email protected] = [email protected] = [email protected] = 0:ALIEN_41if [email protected] == [email protected] > 20000jf @ALIEN_4306C1: create_searchlight [email protected] on_car [email protected] with_offset 0.0 0.0 0.0 radius 0.85 target 293.9839 2447.371 20.2074 radius 10.0Audiostream.PerformAction([email protected], STOP)Audiostream.Loop([email protected], 0)gosub @[email protected] = [email protected] = [email protected] = 0:ALIEN_43if [email protected] == [email protected] > 3000jf @ALIEN_4506B2: destroy_searchlight [email protected]: heli [email protected] fly_to 230.5069 2546.717 26.3378 altitude 0.0 113.0Audiostream.PerformAction([email protected], STOP)Audiostream.Loop([email protected], 0)gosub @[email protected] = [email protected] = [email protected] = 0:ALIEN_45if [email protected] == [email protected] > 5000jf @ALIEN_4706C1: create_searchlight [email protected] on_car [email protected] with_offset 0.0 0.0 0.0 radius 0.85 target 230.5069 2546.717 26.3378 radius 10.0Audiostream.PerformAction([email protected], STOP)Audiostream.Loop([email protected], 0)gosub @[email protected] = [email protected] = [email protected] = 0:ALIEN_47if [email protected] == [email protected] > 3000jf @ALIEN_4906B2: destroy_searchlight [email protected]: heli [email protected] fly_to 293.9839 2447.371 20.2074 altitude 0.0 113.0Audiostream.PerformAction([email protected], STOP)Audiostream.Loop([email protected], 0)gosub @[email protected] = [email protected] = [email protected] = 0:ALIEN_49if [email protected] == [email protected] > 20000jf @ALIEN_5106C1: create_searchlight [email protected] on_car [email protected] with_offset 0.0 0.0 0.0 radius 0.85 target 293.9839 2447.371 20.2074 radius 10.0Audiostream.PerformAction([email protected], STOP)Audiostream.Loop([email protected], 0)gosub @[email protected] = [email protected] = [email protected] = 0:ALIEN_51if [email protected] == [email protected] > 3000jf @ALIEN_5306B2: destroy_searchlight [email protected]: heli [email protected] fly_to 382.3347 2539.624 20.5846 altitude 0.0 113.0Audiostream.PerformAction([email protected], STOP)Audiostream.Loop([email protected], 0)gosub @[email protected] = [email protected] = [email protected] = 0:ALIEN_53if [email protected] == [email protected] > 20000jf @ALIEN_5506C1: create_searchlight [email protected] on_car [email protected] with_offset 0.0 0.0 0.0 radius 0.85 target 382.3347 2539.624 20.5846 radius 10.0Audiostream.PerformAction([email protected], STOP)Audiostream.Loop([email protected], 0)gosub @[email protected] = [email protected] = [email protected] = 0:ALIEN_55if [email protected] == [email protected] > 3000jf @ALIEN_5706B2: destroy_searchlight [email protected]([email protected], STOP)Audiostream.Loop([email protected], 0)gosub @AUDIO_PLAY_ufosound50ACD: show_text_highpriority "ALIEN: HUMAN IS HERE!!!" time [email protected] = [email protected] = [email protected] = 0:ALIEN_57if [email protected] == [email protected] > 2500jf @ALIEN_590743: heli [email protected] fly_to 256.5239 2499.9 16.4844 altitude 0.0 113.007BB: set_heli [email protected] horizontal_thrust_power 100ACD: show_text_highpriority "ALIEN2: REALLY!? OK WE WILL KILL HUMAN" time [email protected] = [email protected] = 0:ALIEN_59if [email protected] == [email protected] > 20000jf @ALIEN_6107BB: set_heli [email protected] horizontal_thrust_power 0Car.LockInCurrentPosition([email protected]) = True04C4: store_coords_to [email protected] [email protected] [email protected] from_actor [email protected] with_offset 0.0 0.0 -100.506C1: create_searchlight [email protected] on_car [email protected] with_offset 0.0 0.0 0.0 radius 1.85 target [email protected] [email protected] [email protected] radius [email protected] = [email protected] = [email protected] = 004C4: store_coords_to [email protected] [email protected] [email protected] from_actor [email protected] with_offset 0.0 0.0 0.0:ALIEN_61if [email protected] == [email protected] > 3000jf @ALIEN_35gosub @[email protected] = Actor.Create(Gang1, #SPECIAL02, [email protected], [email protected], [email protected])Actor.Health([email protected]) = 1700Actor.GiveWeaponAndAmmo([email protected], M4, 2000)Actor.SetImmunities([email protected], 0, 1, 1, 0, 0)0446: set_actor [email protected] dismemberment_possible 002A9: set_actor [email protected] immune_to_nonplayer 105E2: AS_actor [email protected] kill_actor [email protected] = Marker.CreateAboveActor([email protected])0165: set_marker [email protected] color_to 00168: set_marker [email protected] size 107E0: set_marker [email protected] type_to 0gosub @[email protected] = 0:ALIEN_71wait 0if0256: player $PLAYER_CHAR definedjf @cleanup_05if and8119: not car [email protected] wrecked8118: not actor [email protected] dead00FE: actor $PLAYER_ACTOR sphere 0 in_sphere 226.1129 2498.733 16.4844 radius 500.0 500.0 500.0jf @[email protected] == 0jf @ALIEN_73if00F2: actor $PLAYER_ACTOR near_actor [email protected] radius 200.0 200.0 0jf @ALIEN_730881: set_player $PLAYER_CHAR able_to_shoot_weapons [email protected] = [email protected] = 0:ALIEN_73if [email protected] == [email protected] > 8000jf @[email protected] = Actor.Create(Gang1, #SPECIAL02, [email protected], [email protected], [email protected])Actor.Health([email protected]) = 1700Actor.GiveWeaponAndAmmo([email protected], M4, 2000)Actor.SetImmunities([email protected], 0, 1, 1, 0, 0)02A9: set_actor [email protected] immune_to_nonplayer 105E2: AS_actor [email protected] kill_actor [email protected] = Marker.CreateAboveActor([email protected])0165: set_marker [email protected] color_to 00168: set_marker [email protected] size 107E0: set_marker [email protected] type_to 0:ALIEN_81wait 0if0256: player $PLAYER_CHAR definedjf @cleanup_09if00FE: actor $PLAYER_ACTOR sphere 0 in_sphere 226.1129 2498.733 16.4844 radius 500.0 500.0 500.0jf @cleanup_09if and0118: actor [email protected] dead0118: actor [email protected] deadjf @ALIEN_8100BA: show_text_styled GXT 'M_PASSD' time 1000 style 10394: play_music 1jump @cleanup_09:CLEANUP_010881: set_player $PLAYER_CHAR able_to_shoot_weapons 1Marker.Disable([email protected])Car.RemoveReferences([email protected])wait 2000jump @ALIEN_11:[email protected] == 1jf @cleanup_0306B2: destroy_searchlight [email protected]:cleanup_030881: set_player $PLAYER_CHAR able_to_shoot_weapons 101C2: remove_references_to_actor [email protected]([email protected])Car.RemoveReferences([email protected])0249: release_model #SPARROW0249: release_model 29760296: unload_special_actor 10296: unload_special_actor 2Audiostream.PerformAction([email protected], STOP)Audiostream.Release([email protected])Audiostream.PerformAction([email protected], STOP)Audiostream.Release([email protected])Audiostream.PerformAction([email protected], STOP)Audiostream.Release([email protected])wait 2000jump @ALIEN_11:[email protected] == 1jf @cleanup_0706B2: destroy_searchlight [email protected]:cleanup_070881: set_player $PLAYER_CHAR able_to_shoot_weapons 1Marker.Disable([email protected])01C2: remove_references_to_actor [email protected]: remove_references_to_actor [email protected]([email protected])Car.RemoveReferences([email protected])0249: release_model #SPARROW0249: release_model 29760296: unload_special_actor 10296: unload_special_actor 2Audiostream.PerformAction([email protected], STOP)Audiostream.Release([email protected])Audiostream.PerformAction([email protected], STOP)Audiostream.Release([email protected])Audiostream.PerformAction([email protected], STOP)Audiostream.Release([email protected])wait 2000jump @ALIEN_11:[email protected] == 1jf @cleanup_1106B2: destroy_searchlight [email protected]:cleanup_110881: set_player $PLAYER_CHAR able_to_shoot_weapons 1Marker.Disable([email protected])Marker.Disable([email protected])01C2: remove_references_to_actor [email protected]: remove_references_to_actor [email protected]: remove_references_to_actor [email protected]([email protected])Car.RemoveReferences([email protected])0249: release_model #SPARROW0249: release_model 29760296: unload_special_actor 10296: unload_special_actor 2Audiostream.PerformAction([email protected], STOP)Audiostream.Release([email protected])Audiostream.PerformAction([email protected], STOP)Audiostream.Release([email protected])Audiostream.PerformAction([email protected], STOP)Audiostream.Release([email protected])wait 2000jump @ALIEN_11:RELOAD_ALIEN_10001: wait 0 ms 00D6: if or823D: not special_actor 1 loaded 823D: not special_actor 2 loaded004D: jump_if_false @RELOAD_ALIEN_3 023C: load_special_actor 'ALIENBS' as 1 // models 290-299 023C: load_special_actor 'ALIEN5' as 2 // models 290-299 0002: jump @RELOAD_ALIEN_1:RELOAD_ALIEN_3return:[email protected] = 0if and0AAB: file_exists "CLEO\SOUND\SEARCHLIGHT.MP3" 0AAB: file_exists "CLEO\SOUND\UFOSOUND5.MP3"0AAB: file_exists "CLEO\SOUND\UFOBOSSMUSIC.MP3"jf @AUDIO_OFF:AUDIO_LOADwait 0if [email protected] = Audiostream.Load3D("CLEO\SOUND\SEARCHLIGHT.MP3")[email protected] = Audiostream.Load3D("CLEO\SOUND\UFOSOUND5.MP3")[email protected] = Audiostream.Load("CLEO\SOUND\UFOBOSSMUSIC.MP3")jf @[email protected] = 1return:AUDIO_OFF0ACD: show_text_highpriority "mp3 files are missing" time 4000return:[email protected] == 1jf @AUDIO_EXITAudiostream.PerformAction([email protected], PLAY)Audiostream.LinkToCar([email protected], [email protected])Audiostream.Volume([email protected]) = 1.0Audiostream.Loop([email protected], 1)return:[email protected] == 1jf @AUDIO_EXITAudiostream.PerformAction([email protected], PLAY)Audiostream.LinkToCar([email protected], [email protected])Audiostream.Volume([email protected]) = 1.0Audiostream.Loop([email protected], 1)return:[email protected] == 1jf @AUDIO_EXITAudiostream.PerformAction([email protected], PLAY)Audiostream.Volume([email protected]) = 1.0return:AUDIO_EXITreturn Edited November 13, 2016 by ZAZ CLEO MODS CLEO Script Tutorial Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now