Jump to content
Sign in to follow this  
careca

source code...

Recommended Posts

i did not made the code!! i just modified it a little bit...the original code is the "chinook"...the chinook mod is a mod that able u to drive a chinook (not in the game, must be downloaded) that can carry cars inside...i changed the code so u can do the same with the dumper...i also downloaded it...its preety simple, u enter the truck...and u get out...a red arrow will apear above the truck...

then u grab a car and transport it up to the truck and press insert to lock the car! then u get out and u can drive the truck! (if u do high speed turns the car may detatch from the truck...

004F: create_thread ££DUMPER

:DUMPER
03A4: name_thread 'DUMPER'

:DUMPERLOOP
0001: wait 250 ms
00D6: if 0
0256: player $PLAYER_CHAR defined
004D: jump_if_false ££DUMPERLOOP
00D6: if 0
00DD: actor $PLAYER_ACTOR driving_vehicle_type 406 
004D: jump_if_false ££DUMPERLOOP
03C0: @0 = actor $PLAYER_ACTOR car

:DUMPERGETOUT
0001: wait 200 ms
00D6: if 0
0256: player $PLAYER_CHAR defined
004D: jump_if_false ££DUMPEREND
00D6: if 0
80DD: NOT actor $PLAYER_ACTOR driving_vehicle_type 406
004D: jump_if_false ££DUMPERGETOUT
0006: @32 = 0;; timer
0161: tie_marker @11 to_car @0 4 1

:DUMPERCHECKFORCARS
0001: wait 200 ms
00D6: if 0
0256: player $PLAYER_CHAR defined
004D: jump_if_false ££DUMPERMARKER
00D6: if 0
8119: NOT car @0 wrecked
004D: jump_if_false ££DUMPERMARKER
00D6: if 0
80DD: NOT actor $PLAYER_ACTOR driving_vehicle_type 406 
004D: jump_if_false ££DUMPERMARKER
00D6: if 0
8019: NOT @32 > 240000;; helicopter becomes normal after 2 mins
004D: jump_if_false ££DUMPERMARKER
00D6: if 0
0207: actor $PLAYER_ACTOR near_car_in_car @0 radius 2.0 2.0 2.0 unknown 0
004D: jump_if_false ££DUMPERCHECKFORCARS
00D6: if 0
80E1: NOT key_pressed 0 9
004D: jump_if_false ££DUMPERRELEASECAR
00D6: if 0
00E1: key_pressed 0 8
004D: jump_if_false ££DUMPERCHECKFORCARS
03C0: @3 = actor $PLAYER_ACTOR car
0683: attach_car @3 to_car @0 at_offset 0.2 -2.5 0.8 rotation 0.0 0.0 0.0
01C3: remove_references_to_car @3
0006: @32 = 0;; timer
0002: jump ££DUMPERCHECKFORCARS

:DUMPERRELEASECAR
0001: wait 0 ms
03C0: @3 = actor $PLAYER_ACTOR car
0684: detach_car @3 0.0 0.0 0.0 collision_detection 0
01C3: remove_references_to_car @3
0006: @32 = 0;; timer
0002: jump ££DUMPERCHECKFORCARS

:DUMPERMARKER
0164: disable_marker @11

:DUMPEREND
01C3: remove_references_to_car @0
0002: jump ££DUMPERLOOP

of course it can be another key instead of insert...

the list of the keys...

---------------------------------
- on foot                      
---------------------------------
- 0 =  left/right              
- 1 =  forward/backward        
- 2 =  special ctrl left/right  
- 3 =  special ctrl up/down    
- 4 =  action               
- 5 =  previous weapon/target  
- 6 =  aim weapon            
- 7 =  next weapon/target  
- 8 =  Group CTRL Forward      
- 9 =  Group CTRL back         
- 10 = conversation - no       
- 11 = conversation - yes     
- 12 = (do not exist)          
- 13 = change camera          
- 14 = jump                 
- 15 = enter vehicle          
- 16 = sprint               
- 17 = fire                   
- 18 = crouch                 
- 19 = look behind

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~ in car                        
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~ 0 =  left/right  
~ 1 =  steer back/up  
~ 2 =  Special ctrl left/right  
~ 3 =  Special control up/down  
~ 4 =  secondary fire     
~ 5 =  look left       
~ 6 =  hand brake      
~ 7 =  look right       
~ 8 =  next radio station   
~ 9 =  previous radio station
~ 10 = No        
~ 11 = trip skip     
~ 12 = (do not exist)  
~ 13 = camera        
~ 14 = brake/reserve  
~ 15 = enter+exit      
~ 16 = accelerate  
~ 17 = fire               
~ 18 = horn       
~ 19 = submission    
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

each function is a key in ur game...maybe different than mine...

if u want to change the key to detatch car or bike go here

80E1: NOT key_pressed 0 9
004D: jump_if_false ££DUMPERRELEASECAR

and change the number 9 to some other correspondent to a key u want...

if u want to change the key to lock the car...

00E1: key_pressed 0 8
004D: jump_if_false ££DUMPERCHECKFORCARS

same as above but number 8

have fun!

post-2694-1129864762_thumb.jpg

post-2694-1129864902_thumb.jpg

post-2694-1129865003_thumb.jpg

post-2694-1129865265_thumb.jpg

post-2694-1129865288_thumb.jpg

Share this post


Link to post
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
Sign in to follow this  

×