Jump to content

need help with my mission


Recommended Posts

hi guys

I have written this feature and Im not sure if everything is ok

can you please have a look at it

thanks

 

 

mission decription:

ken, he drives you through the city and you can shoot everything, you need 50 000 $, press the action key for normal mode, aim key for turret mode and the sprint key anytime to finish. In normal mode if you fall out of the car you will be set into turret mode automatically.

 

 

:Label035A1E03A4: name_thread "WALASS":Label035A280001: wait  250 ms00D6: if  00256:   player $PLAYER_CHAR defined004D: jump_if_false ££Label035A2800D6: if  00038:   $ONMISSION ==  0;; integer values004D: jump_if_false ££Label035A2800D6: if  000F9:   player $PLAYER_CHAR stopped  0 ()near_point_on_foot  75.997 -882.345  9.462 radius  2.0  2.0  2.0004D: jump_if_false ££Label035A2800D6: if  0010A:   player $PLAYER_CHAR money >  49999004D: jump_if_false ££Label035FD60109: player $PLAYER_CHAR money += -500000247: request_model #WALTON0247: request_model #M600247: request_model #M4023C: load_special_actor  1 "IGKEN"038B: load_requested_models:Label035ABB00D6: if  3823D:   NOT   special_actor  1 loaded8248:   NOT   model #WALTON available8248:   NOT   model #M60 available8248:   NOT   model #M4 available004D: jump_if_false ££Label035AE40001: wait  0 ms0002: jump ££Label035ABB:Label035AE4016A: fade  0 ()  2000 ms0001: wait  3000 ms0395: clear_area  1 at  75.997 -882.345 range  60.0  60.00004: $ONMISSION =  1;; integer values00BA: text_styled "BOAT_A2"  7000 ms  2;; Walton Asskick0001: wait  100 ms00A5: $551 = create_car #WALTON at  67.776 -854.889  9.1060175: set_car $551 z_angle_to  120.000AD: set_car $551 max_speed_to  0.00129: $552 = create_actor  13 #SPECIAL01 in_car $551 driverseat020A: set_car $551 door_status_to  202AC: set_car $551 immunities  1  1  1  1  1053F: set_car $551 tires_vulnerable  001EC: make_car $551 very_heavy  100AF: set_car $551 driver_behaviour_to  110055: put_player $PLAYER_CHAR at  67.397 -857.601  9.3320171: set_player $PLAYER_CHAR z_angle_to  30.00373: set_camera_directly_behind_player016A: fade  1 (back)  2000 ms:Label035BAB00BC: text_highpriority "CHEATON"  3000 ms  1;; Press the action key for normal mode, aim key for turret mode and the sprint key anytime to finish.0001: wait $DEFAULT_WAIT_TIME ms00D6: if  08118:   NOT   actor $PLAYER_ACTOR dead004D: jump_if_false ££Label035F7F00D6: if  08118:   NOT   actor $552 dead004D: jump_if_false ££Label035F7F00D6: if  001FC:   player $PLAYER_CHAR near_car $551 radius  10.0  10.0  0004D: jump_if_false ££Label035F7F00D6: if  080E1:   NOT   key_pressed  0  4004D: jump_if_false ££Label035C3800D6: if  080E1:   NOT   key_pressed  0  6004D: jump_if_false ££Label035DD900D6: if  080E1:   NOT   key_pressed  0  16004D: jump_if_false ££Label035F7F0002: jump ££Label035BAB:Label035C380001: wait  250 ms0055: put_player $PLAYER_CHAR at  69.08 -854.059  10.2760171: set_player $PLAYER_CHAR z_angle_to  121.001B1: give_player $PLAYER_CHAR weapon  32 ammo  300;; Load the weapon model before using this01B8: set_player $PLAYER_CHAR armed_weapon_to  3200BC: text_highpriority "BOAT_N"  8000 ms  1;; If you fall out of the car you will be set into turret mode automatically.0394: play_music  10002: jump ££Label035C86:Label035C8600D6: if  28118:   NOT   actor $552 dead8118:   NOT   actor $PLAYER_ACTOR dead80E1:   NOT   key_pressed  0  16004D: jump_if_false ££Label035F7F00D6: if  001FC:   player $PLAYER_CHAR near_car $551 radius  10.0  10.0  0004D: jump_if_false ££Label035DD90001: wait  250 ms00A7: car $551 drive_to -1029.977  169.915  10.25400AD: set_car $551 max_speed_to  17.000AE: unknown_set_car $551 to_ignore_traffic_lights  200D6: if  081AF:   NOT   car $551  0 ()near_point -1029.977  169.915  10.254 radius  5.0  5.0  4.0004D: jump_if_false ££Label035D210002: jump ££Label035C86:Label035D210001: wait  250 ms01B1: give_player $PLAYER_CHAR weapon  26 ammo  400;; Load the weapon model before using this01B8: set_player $PLAYER_CHAR armed_weapon_to  260002: jump ££Label035D3E:Label035D3E00D6: if  28118:   NOT   actor $552 dead8118:   NOT   actor $PLAYER_ACTOR dead80E1:   NOT   key_pressed  0  16004D: jump_if_false ££Label035F7F00D6: if  001FC:   player $PLAYER_CHAR near_car $551 radius  10.0  10.0  0004D: jump_if_false ££Label035E0B0001: wait  250 ms00A7: car $551 drive_to  531.878 -97.074  9.57600AD: set_car $551 max_speed_to  20.000AE: unknown_set_car $551 to_ignore_traffic_lights  200D6: if  081AF:   NOT   car $551  0 ()near_point  531.878 -97.074  9.576 radius  6.0  6.0  6.0004D: jump_if_false ££Label035F7F0002: jump ££Label035D3E:Label035DD90001: wait  250 ms041E: set_radio_station  4 -10464: put_actor $PLAYER_ACTOR into_turret_on_car $551 at_car_offset  0.0 -1.0  .9 unknown  1 angle  360.0 with_weapon  320002: jump ££Label035E3D:Label035E0B0001: wait  250 ms041E: set_radio_station  4 -10464: put_actor $PLAYER_ACTOR into_turret_on_car $551 at_car_offset  0.0 -1.0  .9 unknown  1 angle  360.0 with_weapon  260002: jump ££Label035EF7:Label035E3D0001: wait  250 ms00A7: car $551 drive_to -1029.977  169.915  10.25400AD: set_car $551 max_speed_to  17.000AE: unknown_set_car $551 to_ignore_traffic_lights  20002: jump ££Label035E6E:Label035E6E0001: wait  250 ms00D6: if  28118:   NOT   actor $552 dead8118:   NOT   actor $PLAYER_ACTOR dead80E1:   NOT   key_pressed  0  16004D: jump_if_false ££Label035FA800D6: if  081AF:   NOT   car $551  0 ()near_point -1029.977  169.915  10.254 radius  5.0  5.0  4.0004D: jump_if_false ££Label035EC50002: jump ££Label035E6E:Label035EC50001: wait  250 ms041E: set_radio_station  3 -10464: put_actor $PLAYER_ACTOR into_turret_on_car $551 at_car_offset  0.0 -1.0  .9 unknown  1 angle  360.0 with_weapon  260002: jump ££Label035EF7:Label035EF70001: wait  250 ms00A7: car $551 drive_to  531.878 -97.074  9.57600AD: set_car $551 max_speed_to  20.000AE: unknown_set_car $551 to_ignore_traffic_lights  20002: jump ££Label035F28:Label035F280001: wait  250 ms00D6: if  28118:   NOT   actor $552 dead8118:   NOT   actor $PLAYER_ACTOR dead80E1:   NOT   key_pressed  0  16004D: jump_if_false ££Label035FA800D6: if  081AF:   NOT   car $551  0 ()near_point  531.878 -97.074  9.576 radius  6.0  6.0  6.0004D: jump_if_false ££Label035FA80002: jump ££Label035F28:Label035F7F0004: $ONMISSION =  0;; integer values0249: release_model #WALTON0249: release_model #M600249: release_model #M401C3: remove_references_to_car $551;; Like turning a car into any random car009B: destroy_actor_instantly $55200D8: mission_cleanup0002: jump ££Label035A28:Label035FA80465: remove_actor $PLAYER_ACTOR from_turret_mode0004: $ONMISSION =  0;; integer values0249: release_model #WALTON0249: release_model #M600249: release_model #M401C3: remove_references_to_car $551;; Like turning a car into any random car009B: destroy_actor_instantly $55200D8: mission_cleanup0002: jump ££Label035A28:Label035FD600BC: text_highpriority "BOAT_P"  6000 ms  1;; You need 50000$ for Walton Asskick.0002: jump ££Label035A28

 

Edited by kleiun
Link to comment
https://gtaforums.com/topic/459563-need-help-with-my-mission/
Share on other sites

wow...still using MB?

 

use Sannybuilder, the most spread mission editor for III, VC and SA

it also contains a MB > SB source converter

 

all missions, scm or as custom mission have to follow a template:

 

 

:MyMission thread "MyMission" gosub @MissionStart if  wasted_or_busted then  gosub @MissionFailed end gosub @MissionCleanup end_thread :MissionStart gosub @MissionPassed return :MissionPassedwait 500 01E3: text_1number_styled 'M_PASSD' 0 5000 ms 1 // MISSION PASSED! return :MissionFailed 00BA: text_styled 'M_FAIL' 5000 ms 1 // ~r~MISSION FAILED! return :MissionCleanup $ONMISSION = 0 // integer values mission_cleanup return 

 

 

 

Link to comment
https://gtaforums.com/topic/459563-need-help-with-my-mission/#findComment-1060132561
Share on other sites

 

hi guys

I have written this feature and Im not sure if everything is ok

can you please have a look at it

thanks

 

 

 

have you found it or written with BWMB, it seems to be 4 years old

what the problem with your script?

the titel says need help

Link to comment
https://gtaforums.com/topic/459563-need-help-with-my-mission/#findComment-1060134470
Share on other sites

 

I have written it with BWMB

 

the problem is after 2 or 3 times running this feature

suddenly the camera changes the angle

and you shoot very fast not a normal way

No, i didn't noticed a fast shooting. That can't be caused by this script. Have you frame limiter off?

I found a failure, it should be if 23 in the loadcheck

 

:Label035ABB00D6: if  23823D:   NOT   special_actor  1 loaded8248:   NOT   model #WALTON available8248:   NOT   model #M60 available8248:   NOT   model #M4 available004D: jump_if_false ££Label035AE40001: wait  0 ms0002: jump ££Label035ABB

 

the meaning is: if is one or the other model not available, it must be checked again

 

 

and you should change 0 into 1 to show a sphere and increase the z- coord a bit

in this code:

 

change00F9:   player $PLAYER_CHAR stopped  0 ()near_point_on_foot  75.997 -882.345  9.462 radius  2.0  2.0  2.0into this:00F9:   player $PLAYER_CHAR stopped  1 ()near_point_on_foot  75.997 -882.345  10.5 radius  2.0  2.0  2.0

 

 

Link to comment
https://gtaforums.com/topic/459563-need-help-with-my-mission/#findComment-1060135343
Share on other sites

frame limiter was on

 

i turned it off now

 

ok thanks for help

 

I didnt want to show a sphere because there is already a marker in there

frame limiter should be on because more frames can cause a speed up

Link to comment
https://gtaforums.com/topic/459563-need-help-with-my-mission/#findComment-1060136434
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 0 User Currently Viewing
    0 members, 0 Anonymous, 0 Guests

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.