The scripting theme (Grand Theft Auto 3)
I scoured the forums about GTA3 but not found( maybe didn't notice) the theme of the script.I think many( including me) want to learn how to write missions for GTA, and in particular the third.
so I propose to write in THIS topic all opcodes and values, examples of individual situations, and so on.
can someone share with US their knowledge on this subject?
I put on id159 new water transport (boat). How do I get her to Park using the scripts?
Zmey20009
Open main trehi Sonny bilder.
Execute a combination left ctrl+F (search)
Put in search this: :NONAME_79_67
Press Enter.
You will see a list of Parking places for transport.
Copy, for example, $438 (Idaho) and paste it below.
Instead of #IDAHO prescribe the name of his boat from the default.ide, for example #LODKA.
After the word at go to coordinates XYZ and angle angle. Change their values as you need and then click run>compile.
After compilation, check the folder data - changed main called main[0]. Put standard main and delete the name main[0] [0].
It's pretty simple, but I'm not sure that will work. Try to accomplish your goal :)
Share and you how to add new game modes of transport :)
Failed. I tried to implement using Cleo script, but the game crashed. Here is the script:
// This file was decompiled using scm.ini published by GtaForums.com on 25.11.05
{$VERSION 1.1.0000}
{$CLEO .cs}
//-------------MAIN---------------
0000:
thread 'PARK'
:NONAME_495
wait 100
if
0249: release_model #ID159
014B: $MAHINA = init_parked_car_generator #ID159 -1 -1 0 alarm 100 door_lock 0 0 10000 at 930.875 -267.6249 -99.9999 angle 340.0
jf @NONAME_495
014C: set_parked_car_generator $MAHINA cars_to_generate_to 0
jump @NONAME_495
Who knows scripting could you tell me where I went wrong.
The new transport I've added checking the new lines in default.ide and so on. Can write about it
Zmey20009, Park-generator - is not the transport itself. This is the mechanism (process) which deals saunom car the Parking (given the coordinates). Opcode 014B creates a new Park generator. Eton means that it creates transport. You could say he creates a ticket (application) to spawn vehicles.
{$CLEO .cs}
014B: 0@ = init_parked_car_generator -1 -1 0 alarm 100 door_lock 0 0 10000 at 930.875 -267.6249 -99.9999 angle 340.0
014C: set_parked_car_generator 0@ cars_to_generate_to 101
05DC: end_custom_thread
KILLER 99
Try to see how it is implemented in the fashion City of snow, for example. As I understand, you need to correct .col+dff of the garage, and .col_dff vorotiny skopipastit third.
What's your mod? Keep cars in garages, can you?)
dk22 vG
New open/close the doors of the garages to create really?
For example, to replace the door Laundry for full vorotina, a La a garage at sohranyalki?
Option 1:
Create a separate object - a door, twist it in a script (page Z)
Vermont 2 (harder):
Edit the object to which is attached the door. Disconnect the door, create a new dummy (for doors). Adjust the angles of rotation dummy (to turn of the dummy in the Z-axis the door is properly opened). The script will need to locate this object, to climb to the hierarchy, and twist dummy.
CA
Did this script for the Laundry, here:
:Burger_shot
wait 0
if
player.Defined($PLAYER_CHAR)
jf @Burger_shot
0@ = 0.0
1@ = 180.0
:Burger_shot_2
wait 0
if
00ED: actor $PLAYER_ACTOR 0 846.0258 -663.775 radius 2.0 2.0
jf @Burger_shot_2
:Burger_shot_3
wait 20
0@ += 1.5
1@ -= 1.5
object.Angle($LAUNDRY_DOOR1) = 0@
object.Angle($LAUNDRY_DOOR2) = 1@
if and
0@ == 90.0
1@ == 90.0
jf @Burger_shot_3
:Burger_shot_4
wait 0
if
80ED: not actor $PLAYER_ACTOR 0 846.0258 -663.775 radius 2.0 2.0
jf @Burger_shot_4
:Burger_shot_5
wait 20
0@ -= 1.5
1@ += 1.5
object.Angle($LAUNDRY_DOOR1) = 0@
object.Angle($LAUNDRY_DOOR2) = 1@
if and
0@ == 0.0
1@ == 180.0
jf @Burger_shot_5
jump @Burger_shot
I found the mod on Vice City Parkour mod, but was not interested in much more, and the opportunity to swim through a Cleo script with animation. Realized pretty bad. Can somebody on GTA 3 can do? Here is the mod: http://www.gtagarage.com/mods/show.php?id=15167
Impossible. GTA3 is not enough opcodes. Moreover, to make the animation. For GTA3 no working programs to change the animation. There are for viewing only.
Found how to load a texture on the screen. What standard opcodes is GTA3. And you can upload more than 3 at once.
Spoiler{$CLEO .cs}
//-------------MAIN---------------
0001: wait 100 ms
:NONAME_4
0001: wait 10 ms
00D6: if
05EE: key_pressed 76 // L key
004D: jump_if_false @NONAME_4
0390: load_txd_dictionary 'MAP' //. txd in the folder models
038F: load_texture 'LOGO1' as 1 // name of the texture from the txd
038D: draw_texture 1 position 10.0 10.0 size 128.0 128.0 RGBA 255 255 255 210 // position, size and color.
0002: jump @NONAME_4
I just don't know how to upload a texture. And the error when you exit the game.
Why not true? It's just not a mandatory procedure. Still works, textures are displayed. Only can not remove them. Must be the opcode of discharge.
Only found opcode unloading textures and fixes the error exit. But after unloading is a white texture.
I've dealt with the 02A7 opcode:
02A7: $titled , create_icon_marker_and_sphere No. at X Y, where:
name - any name (e.g. luigi_mission_marker)
X Y - location coordinates on X Y axly
No - icon number from 1 to 20
List of values:
1 - A
2 - Ait Ball Shop
3 - Catalina
4 - Player Centre
5 - Police car
6 - Donald Love
7 - Ait Ball
8 - Blue Phone (El Burro)
9 - Red Phone (Dee Is)
10 - Joey
11 - Kenji
12 - Green Phone (King Courtney)
13 - Luigi
14 - North (N)
15 - Ray
16 - Salvatore
17 - House
18 - Pay 'n' Spray
19 - Tony
20 - Ammunation
Only how to make only an icon without a marker?
What's the way to make sure that only an icon without a marker is shown?
02A8: $AUKA1_SNIPER_MARKER = create_marker 4 at 922.101 -406.773 -100.0
The 02A7 opcode was written at the beginning of the thread.
0164: disable_marker $AUKA 1'SNIPER'MARKER / Disable
I managed to make a card, though it does not show the position of the player and the icons of the service. And there's a flash when it's disconnected.
But the position of the player shows exactly 95% and changes smoothly when driving.
And so on the screen brought 5 textures.
I'll include the script in the d_box
Downloaded so far on http://www.gtagarage.com/mods/show.php?id=22258
It's a pity you can't rotate the texture, then you could make a speedometer.
He also made a jetpack look like a jetpack. Want to fly to Donald or head to the statue of freedom? Easily.
Who gets into the scripts?
Found a kamhak from the 1st and face and would like that someone who knows in these cases edited it) ie made the camera stationary while driving in the car or remove the sight when driving
Here's the actual link to the script
http://upwap.ru/2976888
On/off the "G" key