GTAinside.com - Grand Theft Auto Mods, Addons, Cars, Maps, Skins and more.
Old 04.06.2012, 17:16   #1
Horst Hostmann
Registered User
 
Join Date: May 2012
Posts: 1
Mysterium main.scm

Hallo liebe GTAinside Leute,

hoffentlich liest diesen Beitrag überhaupt noch jemand und kann mir helfen. Da für mich GTA VC ein ein Klassiker ist, schreibe ich immernoch gerne Scripts für das Spiel.

Ich habe 3 Scripts: Einen Tacho, ein Speedbreaker und Nitro wie aus NFS. (Nur die Idee nich das Design)

Spoiler für Scripts:

Code:
004F: create_thread ££NITRO_START

:NITRO_START 
0001: wait  0 ms
00D6: if  0
0256:   player $PLAYER_CHAR defined
004D: jump_if_false ££NITRO_START
00D6: if  0
00E0:   player $PLAYER_CHAR driving
004D: jump_if_false ££NITRO_ENDE  
04F7: unknown_status_text $BOOST  1 line  3 "XXX"

:NITRO
0001: wait  0 ms
00D6: if  0
00E1:   key_pressed  0  18
004D: jump_if_false ££NITRO_AUFLADEN
00D6: if  0
0018:   $BOOST >  10  ;; integer values 
004D: jump_if_false ££NITRO_AUFLADEN
03C1: $NITRO_CAR = player $PLAYER_CHAR car  
02E3: $NITRO_WERT = car $NITRO_CAR speed 
0009: $NITRO_WERT +=  20.0  ;; floating-point values 
04BA: set_car  $NITRO_CAR speed_instantly  $NITRO_WERT 
0008: $BOOST +=  -10  ;; integer values   
0002: jump ££NITRO

:NITRO_AUFLADEN 
0001: wait  0 ms
00D6: if  0
0018:   $BOOST >  99  ;; integer values 
004D: jump_if_false ££NITRO_AUFLADEN2
0002: jump ££NITRO_START

:NITRO_AUFLADEN2 
0008: $BOOST +=  1  ;; integer values 
0001: wait  100 ms 
0002: jump ££NITRO_START
 
:NITRO_ENDE  
0004: $BOOST =  0  ;; integer values 
0151: remove_status_text $BOOST
0002: jump ££NITRO_START
Code:
004F: create_thread ££SPEEDBREAKER

:SPEEDBREAKER
0001: wait  0 ms
00D6: if  0
0256:   player $PLAYER_CHAR defined
004D: jump_if_false ££SPEEDBREAKER
00D6: if  0
00E0:   player $PLAYER_CHAR driving
004D: jump_if_false ££SPEEDBREAKER_ENDE  
03C1: $SPEEDBREAKER_CAR = player $PLAYER_CHAR car
04F7: unknown_status_text $SPEEDBREAKER  1 line  1 "XXX"  
0050: gosub ££BREAKING 
0002: jump ££SPEEDBREAKER

:BREAKING 
0001: wait  0 ms
00D6: if  0
0018:   $SPEEDBREAKER >  99  ;; integer values
004D: jump_if_false ££BREAKING2
0001: wait  0 ms
00D6: if  0
00E1:   key_pressed  0  19
004D: jump_if_false ££SPEEDBREAKER
015D: set_gamespeed  .3  
01EC: make_car $SPEEDBREAKER_CAR very_heavy  1
02AC: set_car  $SPEEDBREAKER_CAR immunities  1  1  1  1  1
0004: $SPEEDBREAKER =  0  ;; integer values 
0001: wait  3000 ms
015D: set_gamespeed  1.0
01EC: make_car $SPEEDBREAKER_CAR very_heavy  0
02AC: set_car  $SPEEDBREAKER_CAR immunities  0  0  0  0  0 
0002: jump ££SPEEDBREAKER

:BREAKING2
0001: wait  50 ms 
0008: $SPEEDBREAKER +=  1  ;; integer values 
0051: return  

:SPEEDBREAKER_ENDE
0151: remove_status_text $SPEEDBREAKER 
0004: $SPEEDBREAKER =  0  ;; integer values 
0001: wait  0 ms
0002: jump ££SPEEDBREAKER
Code:
004F: create_thread ££TACHO

:TACHO
0001: wait  0 ms
00D6: if  0
0256:   player $PLAYER_CHAR defined
004D: jump_if_false ££TACHO
00D6: if  0
00E0:   player $PLAYER_CHAR driving
004D: jump_if_false ££TACHO_ENDE  
03C1: $TACHO_CAR = player $PLAYER_CHAR car
0050: gosub ££TACHO_ANZEIGEN
0002: jump ££TACHO

:TACHO_ANZEIGEN
02E3: $TACHO_WERT = car $TACHO_CAR speed 
008C: $TACHO_WERT = float_to_integer $TACHO_WERT
0010: $TACHO_WERT *=  2  ;; integer values
04F7: unknown_status_text $TACHO_WERT  1 line  2 "XXX"  
0051: return

:TACHO_ENDE
0151: remove_status_text $TACHO_WERT
0002: jump ££TACHO


Meine Frage ist nun, ob sich diese 3 Teile zu einem Großen zusammenfügen lassen und wenn ja wie?

mfg
Horst Hostmann is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 17:16.