Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!

    1. Red Dead Redemption 2

      1. PC
      2. Gameplay
      3. Missions
      4. Help & Support
    2. Red Dead Online

      1. Gameplay
      2. Find Lobbies & Outlaws
      3. Help & Support
      4. Frontier Pursuits
    1. Crews & Posses

      1. Recruitment
    2. Events

    1. GTA Online

      1. DLC
      2. Find Lobbies & Players
      3. Guides & Strategies
      4. Vehicles
      5. Content Creator
      6. Help & Support
      7. The Diamond Casino Heist
    2. Grand Theft Auto Series

    3. GTA 6

    4. GTA V

      1. PC
      2. Guides & Strategies
      3. Help & Support
    5. GTA IV

      1. Episodes from Liberty City
      2. Multiplayer
      3. Guides & Strategies
      4. Help & Support
      5. GTA IV Mods
    6. GTA Chinatown Wars

    7. GTA Vice City Stories

    8. GTA Liberty City Stories

    9. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
      3. GTA SA Mods
    10. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
      3. GTA VC Mods
    11. GTA III

      1. Guides & Strategies
      2. Help & Support
      3. GTA III Mods
    12. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    13. Wiki

      1. Merchandising
    1. GTA Modding

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    3. Featured Mods

      1. DYOM
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Red Dead Redemption

    2. Rockstar Games

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Programming
      5. Movies & TV
      6. Music
      7. Sports
      8. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. News

    2. Forum Support

    3. Site Suggestions

Sign in to follow this  
igorok

Hey , i prethought new script !

Recommended Posts

igorok

Hey , people , i prethought new script , this deceleration of time at jump , like NFSU !

 

It's script

 

004F: create thread ЈЈMatrix

 

 

 

:Matrix

0001: wait 0 ms

00D6: if 0

80DE: NOT player $PLAYER_CHAR driving vehicle type #HUNTER

004D: jump if false ЈЈMatrix

00D6: if 0

80DE: NOT player $PLAYER_CHAR driving vehicle type #SPARROW

004D: jump if false ЈЈMatrix

00D6: if 0

80DE: NOT player $PLAYER_CHAR driving vehicle type #SEASPAR

004D: jump if false ЈЈMatrix

00D6: if 0

80DE: NOT player $PLAYER_CHAR driving vehicle type #MAVERICK

004D: jump if false ЈЈMatrix

00D6: if 0

80DE: NOT player $PLAYER_CHAR driving vehicle type #POLMAV

004D: jump if false ЈЈMatrix

00D6: if 0

80DE: NOT player $PLAYER_CHAR driving vehicle type #RCBARON

004D: jump if false ЈЈMatrix

00D6: if 0

80DE: NOT player $PLAYER_CHAR driving vehicle type #RCGOBLIN

004D: jump if false ЈЈMatrix

00D6: if 0

00E0: player $PLAYER_CHAR driving

004D: jump if false ЈЈMatrix

015D: set gamespeed .9

03C1: $2D7 = player $PLAYER_CHAR car

00D6: if 0

01F3: car $2D7 airborne

004D: jump if false ЈЈMatrix

0001: wait 0 ms

015D: set gamespeed .5

0001: wait 50 ms

015D: set gamespeed .5

00D6: if 0

81F3: NOT car $2D7 airborne

004D: jump if false ЈЈMatrix

00D6: if 0

80E0: NOT player $PLAYER_CHAR driving

004D: jump if false ЈЈMatrix

015D: set gamespeed .9

0002: jump ЈЈMatrix

 

----------------------------------------------------------------------------------------------

 

I'm from Russia ! , sorry for bad English !

Share this post


Link to post
Share on other sites
random_download

You should not use an all numeric var eg. $2D7 or it can conflict with other global vars in the script. Use a custom name, otherwise it looks good.

Share this post


Link to post
Share on other sites
PatrickW

I like the idea..... What you could add, is re-positioning the camera, to give it a "unique jump feeling".

 

 

On the coding part:

  • You could put all the "heli/plane" checks in 1 if/jf...
  • You should include some "if_player_defined" checks. Whenever you access the PLAYER_CHAR or PLAYER_ACTOR, after a wait, you should first go through a "if_player_defined" check.

Share this post


Link to post
Share on other sites
ZAZ

 

Hey , people , i  prethought new script , this deceleration of time at jump , like NFSU !

 

 

Good idea, I added a camera

 

004F: create_thread ££Labelaircam

 

 

:Labelaircam03A4: name_thread "ACAM":Labelacam010001: wait $DEFAULT_WAIT_TIME ms00D6: if  00256:   player $PLAYER_CHAR defined004D: jump_if_false ££Labelacam0100D6: if  00038:   $ONMISSION ==  0 ;; integer values004D: jump_if_false ££Labelacam0100D6: if  003EE:   player $PLAYER_CHAR controllable004D: jump_if_false ££Labelacam0100D6: if 6 80DE: NOT player $PLAYER_CHAR driving vehicle type #HUNTER 80DE: NOT player $PLAYER_CHAR driving vehicle type #SPARROW80DE: NOT player $PLAYER_CHAR driving vehicle type #SEASPAR 80DE: NOT player $PLAYER_CHAR driving vehicle type #MAVERICK 80DE: NOT player $PLAYER_CHAR driving vehicle type #POLMAV 80DE: NOT player $PLAYER_CHAR driving vehicle type #RCBARON 80DE: NOT player $PLAYER_CHAR driving vehicle type #RCGOBLIN004D: jump_if_false ££Labelacam0100D6: if 0 00E0: player $PLAYER_CHAR driving004D: jump_if_false ££Labelacam0103C1: $jmp = player $PLAYER_CHAR car00D6: if 001F3: car $jmp airborne004D: jump_if_false ££Labelacam01:Labelacam020001: wait 0 ms015D: set_gamespeed  .30407: create_coordinate $jpX $jpY $jpZ from_car $jmp offset  -2.0  7.5  1.0015F: set_camera_position  $jpX $jpY $jpZ  0.0  0.0  0.00157: camera_on_player $PLAYER_CHAR  15  200D6: if 081F3: NOT car $jmp airborne004D: jump_if_false ££Labelacam02015D: set gamespeed 1.002EB: restore_camera_with_jumpcut0002: jump ££Labelacam01

 

 

by the way, there was a tiny failure in your string

 

015D: set gamespeed .5 is wrong

015D: set_gamespeed .5 is right

 

________________ ZAZ _______________________

Share this post


Link to post
Share on other sites
ZAZ

Transmission failure

Edited by ZAZ

Share this post


Link to post
Share on other sites
random_download

The number off spaces you have in the line of code shouldn't matterr...

eg.

if 0 and

if 0

will do the same thing.

Share this post


Link to post
Share on other sites
PatrickW

 

The number off spaces you have in the line of code shouldn't matterr...

eg.

if 0 and

if  0

will do the same thing.

And the a different number of spaces also doesn't showup in a posting here, they all get assimilated into 1. tounge.gif

 

I think what ZAZ was refering to was the underscore between 'set' and 'gamespeed', but that is also ignored. Only the the opcode at the start of the line and the value of the parameters matters, all text that is put inbetween does not change the meaning of a line.

 

It's just that barton put a lot of underscores in the opcode texts at the last update.

Share this post


Link to post
Share on other sites
random_download
The number off spaces you have in the line of code shouldn't matterr...

eg.

if 0 and

if  0

will do the same thing.

And the a different number of spaces also doesn't showup in a posting here, they all get assimilated into 1. tounge.gif

 

I think what ZAZ was refering to was the underscore between 'set' and 'gamespeed', but that is also ignored. Only the the opcode at the start of the line and the value of the parameters matters, all text that is put inbetween does not change the meaning of a line.

 

It's just that barton put a lot of underscores in the opcode texts at the last update.

My bad lol blush.gif

Share this post


Link to post
Share on other sites
ZAZ

Ok, ok You are right.

 

015D: set gamespeed 1.0

015D: set_gamespeed .3

are working too

 

it was my failure

Share this post


Link to post
Share on other sites
ghost_master2000

or you could just use my code with the tool from gtascripts.org, that does a 360 degree slow motion spin around the car when you press a button.

;main.gsr created on 1/31/2004 at 1:07:40 PM;this is the main script file, all of the non-mission code goes here, as well;the code to start each mission;put any missions to be included here in the format #mission <name>;name the thread, and set up the on mission flag name_thread                                    "MAIN" toggle_wasted_busted_check                     1 set_missionflag                                $onmission;put any variables that need to be initialized here:;create the player, replace the coords here with the location you;want your player to start at create_player                                  0.0, 0.0, 20.0, 15.0, $me;set the direction the player is facing, 0 = north set_player_z_angle                             $me, 180;set these coords to your preffered wasted/busted restart points restart_if_wasted_at                           1135.0, -598.0, 15.0, 180.0 restart_if_busted_at                           1135.0, -598.0, 15.0, 180.0;fade out and load the island data, then fade in again set_fade_color                                 0, 0, 0 fade                                           0, 0 gosub                                          @fadecheck  SET_CURRENT_TIME                               12, 0 set_camera_directly_behind wait                                           500 fade                                           1500,1 gosub                                          @fadecheck;if you have a mission script for initializing settings, call it now;then call your intro script(if you have one);then call any threads which you need to have running, e.g. threads which;check to see if a mission should be started create_thread                                 @camera_init;main loop, most likely not needed once you get some real code in [email protected] wait                                           1000 jump                                           @mainloop;gosub to this label whenever you need to wait for the game to fade in or [email protected] if                                             0   is_fading jf                                             @endfadecheck wait                                           0 jump                                           @[email protected] return @camera_init setgf                                          $camangle, 0.0 setgf                                          $difx, 0.0 setgf                                          $dify, 0.0 setgf                                          $camx, 0.0 setgf                                          $camy, 0.0 setgf                                          $camz, [email protected] wait                                           0 if                                             0    is_player_driving                           $me jf                                             @camera if                                             0    IS_KEY_PRESSED                              0, 19 jf                                             @camera GET_PLAYER_CAR                                 $me, $camcar SET_GAMESPEED                                  0.25 wait                                           [email protected] wait                                           2 sin                                            $camangle, $dify cos                                            $camangle, $difx mulgf                                          $dify, 5.0 mulgf                                          $difx, 5.0 GET_POINT_ON_CAR_PLANE                         $camcar, $difx, $dify, 0.0, $camx, $camy, $camz SET_CAMERA_POSITION                            $camx, $camy, $camz, 0.0, 0.0, 0.0 CAMERA_ON_VEHICLE                              $camcar, 15, 2 addgf                                          $camangle, 4.0 if                                             22    gtgf                                        $camangle, 360.0    IS_KEY_PRESSED                              0, 19    !is_player_driving                          $me jf                                             @doturn set_gamespeed                                  1.0 RESTORE_CAMERA setgf                                          $camangle, 0.0 jump                                           @camera

 

 

have a nice day. wink.gif

Share this post


Link to post
Share on other sites
DexX
/* hhheyyyyyy....... i remember that code, hehe. you disappear for a year, then come back with this eh tounge.gif */

Share this post


Link to post
Share on other sites
PatrickW

The Master is back biggrin.gif....

 

We've been missing you..... are you here to stay ??

Share this post


Link to post
Share on other sites
ghost_master2000

yeah, I'll probably be sticking around here for a while. at least during the summer while I'm not in school. I just couldn't resist the fact that SA will be coming out soon and there would be many a mod to make.

 

lol, I just realised I never released my suicide bomber code. it was rather amusing. I never released it because I didn't want to offend anyone. tounge.gif

Share this post


Link to post
Share on other sites
igorok
Hey , people , i  prethought new script , this deceleration of time at jump , like NFSU !

 

 

Good idea, I added a camera

 

004F: create_thread ££Labelaircam

 

 

:Labelaircam03A4: name_thread "ACAM":Labelacam010001: wait $DEFAULT_WAIT_TIME ms00D6: if  00256:   player $PLAYER_CHAR defined004D: jump_if_false ££Labelacam0100D6: if  00038:   $ONMISSION ==  0;; integer values004D: jump_if_false ££Labelacam0100D6: if  003EE:   player $PLAYER_CHAR controllable004D: jump_if_false ££Labelacam0100D6: if 6 80DE: NOT player $PLAYER_CHAR driving vehicle type #HUNTER 80DE: NOT player $PLAYER_CHAR driving vehicle type #SPARROW80DE: NOT player $PLAYER_CHAR driving vehicle type #SEASPAR 80DE: NOT player $PLAYER_CHAR driving vehicle type #MAVERICK 80DE: NOT player $PLAYER_CHAR driving vehicle type #POLMAV 80DE: NOT player $PLAYER_CHAR driving vehicle type #RCBARON 80DE: NOT player $PLAYER_CHAR driving vehicle type #RCGOBLIN004D: jump_if_false ££Labelacam0100D6: if 0 00E0: player $PLAYER_CHAR driving004D: jump_if_false ££Labelacam0103C1: $jmp = player $PLAYER_CHAR car00D6: if 001F3: car $jmp airborne004D: jump_if_false ££Labelacam01:Labelacam020001: wait 0 ms015D: set_gamespeed  .30407: create_coordinate $jpX $jpY $jpZ from_car $jmp offset  -2.0  7.5  1.0015F: set_camera_position  $jpX $jpY $jpZ  0.0  0.0  0.00157: camera_on_player $PLAYER_CHAR  15  200D6: if 081F3: NOT car $jmp airborne004D: jump_if_false ££Labelacam02015D: set gamespeed 1.002EB: restore_camera_with_jumpcut0002: jump ££Labelacam01

 

 

by the way, there was a tiny failure in your string

 

015D: set gamespeed .5 is wrong

015D: set_gamespeed .5 is right

 

________________ ZAZ _______________________

Thanks , guy !! colgate.gif

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • 2 Users Currently Viewing
    0 members, 0 Anonymous, 2 Guests

×
×
  • Create New...

Important Information

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