Jump to content
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. The Criminal Enterprises
      2. Updates
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Red Dead Online

      1. Blood Money
      2. Frontier Pursuits
      3. Find Lobbies & Outlaws
      4. Help & Support
    3. Crews

    1. Grand Theft Auto Series

      1. Bugs*
      2. St. Andrews Cathedral
    2. GTA VI

    3. GTA V

      1. Guides & Strategies
      2. Help & Support
    4. GTA IV

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. GTA San Andreas

      1. Classic GTA SA
      2. Guides & Strategies
      3. Help & Support
    6. GTA Vice City

      1. Classic GTA VC
      2. Guides & Strategies
      3. Help & Support
    7. GTA III

      1. Classic GTA III
      2. Guides & Strategies
      3. Help & Support
    8. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    9. Top-Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. Red Dead Redemption 2

      1. PC
      2. Help & Support
    2. Red Dead Redemption

    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

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

      1. Design Your Own Mission
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

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

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

    2. Support

    3. Suggestions

*DO NOT* SHARE MEDIA OR LINKS TO LEAKED COPYRIGHTED MATERIAL. Discussion is allowed.

A little help


Gouveia
 Share

Recommended Posts

Hey folks! I'm trying to learn how to code now but I wanna know this things:

 

1-)How to make the cutscene widescreen?

2-)How to correctly use fade?

3-)If I'm gonna change the player model, do I need to request that model first?

4-)How to make a package fully functional? Mine makes it's properties at the start of the game(eg:If you pick that package, you get 5000, but you only get that when you start the game).

5-)How to make fully ivunerable(sp?) cars? only set car_immunities 1 1 1 1 ?

6-)How do I check if two or more actors are dead? only use:

If 1

actor <actor name> dead

actor <actor 2 name> dead

 

is that code right?

7-)How to make an actor attack the player/other actor?

 

And finally:

How to make a car buy icon? when i go to the icon, I spend some money, the screen fades and the car spawn.

 

That's all(for the moment). All of this is for GTA3

 

P.S.: I can make missions and all the basic stuff, but I can't get that to work...

Link to comment
Share on other sites

If you con do "missions and basic stuff" then you can do this.

 

Like everyone says: Consult orginal code. I'm about 95% sure everything you asked about is in a main.scm for gta3. How about showing how you've gone about tackling this yourself, so people can see your progress?

I'm actually not against democracy though. I'm against things I think are f*cking stupid. I think this is f*cking stupid. - Sweets

Link to comment
Share on other sites

1-)How to make the cutscene widescreen?

 

I'll give you a few pointers, however WTF is up with that question. Is it that hard to look for opcodes with "widescreen" in their name? wow.gif

 

 

2-)How to correctly use fade?

Consult original code. Opcodes of interest: 016A,0169,016B (conditional opcode to check if it's still fading). I take these from SA, but its likely the same in GTA3.

 

 

3-)If I'm gonna change the player model, do I need to request that model first?

Most likely; however even if not, it won't do any harm to do so. Just check on your own, really.

 

 

4-)How to make a package fully functional? Mine makes it's properties at the start of the game(eg:If you pick that package, you get 5000, but you only get that when you start the game).

 

I'm not entirely sure what you meant. Probably a pickup that does something, right? Well, just create_pickup of any model you wish, and use the conditional check 'is_pickup picked_up' to see if it's picked up - if it is, then do whatever rewards, like adding money, spawning a car-whatever.

 

 

5-)How to make fully ivunerable(sp?) cars? only set car_immunities 1 1 1 1 ?

 

Yes, that's about it. It also won't hurt to periodically set their health to 9999 - even with immunities, if the car is flipped, health still gradually drops (and it will eventually catch fire and explode).

 

 

6-)How do I check if two or more actors are dead? only use:

If 1

  actor <actor name> dead

  actor <actor 2 name> dead

is that code right?

 

Well, yes, pretty much (depends on how you construct your label).

 

7-)How to make an actor attack the player/other actor?

 

Use 'attack'/'kill'/'hate' or whatever opcodes. In SA you have 05E2.

 

 

And finally:

How to make a car buy icon? when i go to the icon, I spend some money, the screen fades and the car spawn.

 

That's all(for the moment). All of this is for GTA3

 

 

P.S.: I can make missions and all the basic stuff, but I can't get that to work...

Missions aren't quite basic, therefore it's pretty weird you can't get these relatively simple things to work. Really - just imitate original code. Look for where/when what you want to do is done in original game, and imitate that code.

Link to comment
Share on other sites

Thanks Bigun. Oh, i've found widescreen now... Thanks! And in the fading i have to set Fade color to 0 0 0, then use fade 1000 ms and fade 1 (back) 1000 ms? For the missions that I talked about, I know how to make simply go from A to B and Pick-this-and-deliver missions...

Link to comment
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
 Share

  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

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