Quantcast

Jump to content

» «
Photo

[WIP] [REL] My Code Mods

4 replies to this topic
Quadropheniac90
  • Quadropheniac90

    Confused Clown

  • Andolini Mafia Family
  • Joined: 15 Feb 2005

#1

Posted 18 August 2005 - 05:51 PM Edited by teun.steenbekkers, 19 August 2005 - 12:51 PM.

I'm gonna put my scripts here when I make any, I allready made a script which makes 3 RC Barons follow you and fire at you with rockets and machine guns. I will edit this post when I have something new.

RC Baron Minigame Code:
CODE
;--Request the models needed--
:REQUEST
0247: request_model #ARMY
0247: request_model #RCBARON
0247: request_model #CAMERA
0247: request_model #NRG500

;--Check if the models are indeed loaded--
:CHECK
0001: wait 0 ms
00D6: if 3
0248:   model #RCBARON available
0248:   model #ARMY available
0248:   model #CAMERA available
0248:   model #NRG500 available
004D: jump_if_false ££CHECK

;--Create a getaway bike, 3 planes which attack you, 3 drivers because otherwise the planes won't fly.--
;--Set the car density to 0, infinite run on, ignored by cops, and the player is invulnerable--
:EXECUTE
00A5: @2 = create_car #NRG500 at  0.0 10.0 $SpawnZ
02AC: set_car @2 immunities  1  1  1  1  1
01B2: give_actor $PLAYER_ACTOR weapon  43 ammo  60
00A5: @0 = create_car #RCBARON at  40.0 10.0 $SpawnZ
0129: @1 = create_actor  23 #ARMY in_car @0 driverseat
0841: @0  1
084E: @0  1
08A2: @0 $PLAYER_ACTOR  10.0
00A5: @7 = create_car #RCBARON at  40.0 15.0 $SpawnZ
0129: @9 = create_actor  23 #ARMY in_car @7 driverseat
0841: @7  1
084E: @7  1
08A2: @7 $PLAYER_ACTOR  10.0
00A5: @8 = create_car #RCBARON at  40.0 20.0 $SpawnZ
0129: @10 = create_actor  23 #ARMY in_car @8 driverseat
0841: @8  1
084E: @8  1
08A2: @8 $PLAYER_ACTOR  10.0
01EB: set_car_density_to  0.0
01F7: set_player $PLAYER_CHAR ignored_by_cops_state_to  1 (true)
0330: set_player $PLAYER_CHAR infinite_run_to  1 (true)
02AB: set_actor $PLAYER_ACTOR immunities  1  1  1  1  1  

;--The camera settings--Delete this if you want the regular camera.--
:CAMERA
0001: wait 0 ms
0407: create_coordinate @4 @5 @6 from_car @0 offset 0.0  -4.0  2.0
015F: set_camera_position  @4 @5 @6  0.0  0.0  0.0
0159: camera_on_ped $PLAYER_ACTOR  15  2
0002: jump ££CAMERA


Delete the CAMERA thread to play without the camera effect.


;-----New!-----

Rocket-shooting bikes! Yes, rocket-shooting bikes! Cars too, but they aren't drivable, yet!

Replace the 'car' or 'bike' flag in vehicles.ide with 'heli' for the vehicle you want to be killing you! biggrin.gif

Then place this in you're stripped or not stripped main.scm:

CODE
;--Request the models needed--
:REQUEST
0247: request_model #ACTOR
0247: request_model #VEHICLE

;--Check if the models are indeed loaded--
:CHECK
0001: wait 0 ms
00D6: if 1
0248:   model #ACTOR available
0248:   model #VEHICLE available
004D: jump_if_false ££CHECK

;--Create a car which shoots rockets!--
:EXECUTE
00A5: $vehicleID = create_car #VEHICLE at  10.0  -20.0  2.0
0129: $actorID = create_actor  23 #ACTOR in_car $vehicleID driverseat
0724: $vehicleID $PLAYER_ACTOR  10.0
084E: $vehicleID  1


It's as easy as that! Remember: It's a work in progress... I hope to achieve the player being able to fire rockets, but first I want to get the cars drivable and the bikes chasing you.

Quadropheniac90
  • Quadropheniac90

    Confused Clown

  • Andolini Mafia Family
  • Joined: 15 Feb 2005

#2

Posted 19 August 2005 - 12:00 PM

Double post, lol! biggrin.gif Piccie of my new script, hope you like the missile-firing Pizzaboy!

user posted image

Demarest
  • Demarest

    what could be

  • BUSTED!
  • Joined: 12 Jul 2003

#3

Posted 19 August 2005 - 02:07 PM

With that pic, a LOT of people will bug you thinking it's something different than it is biggrin.gif But cookie.gif for all your hard work experimenting with the new finds.

Quadropheniac90
  • Quadropheniac90

    Confused Clown

  • Andolini Mafia Family
  • Joined: 15 Feb 2005

#4

Posted 19 August 2005 - 02:53 PM Edited by teun.steenbekkers, 19 August 2005 - 06:45 PM.

@Demarest: Thanks! I'm still trying to figure quite some stuff about this out, though.

EDIT: Huh? This also works without setting the flag to heli or plane. Cool! Thought that did not work at first. Pretty cool! Now to make them fire on command.

Boats and the Quad are also supported, now to find a damn opcode which makes the cars/bikes/boats/quad follow you. Heli's and planes will follow allready...

Quadropheniac90
  • Quadropheniac90

    Confused Clown

  • Andolini Mafia Family
  • Joined: 15 Feb 2005

#5

Posted 19 August 2005 - 06:59 PM

Sorry for doubleposting in my topic again, but I wanted to point out these few things:

1. No need to change the flag in vehicles.ide, just found out it works without, could swear it wans't that way before.

2. Boats, Quads, Bikes (yes, very weird...), Motorbikes, and off course cars are now supported.

3. Whenever the player is in the driverseat of the car in question, it won't fire missiles.

4. Whenever the player is in the passengerseat of the car in question, it will allways fire missiles.

5. No good opcode found for making cars follow you while still firing missiles.

6. Machinegun does not work... Not here at least.

Hope this is useful! biggrin.gif




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users