Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!

    1. Red Dead Redemption 2

      1. PC
      2. Gameplay
      3. Missions
      4. Help & Support
    2. Red Dead Online

      1. Gameplay
      2. Find Lobbies & Outlaws
      3. Help & Support
      4. Frontier Pursuits
    1. Crews & Posses

      1. Recruitment
    2. Events

    1. GTA Online

      1. Diamond Casino & Resort
      2. DLC
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Grand Theft Auto Series

    3. GTA 6

    4. GTA V

      1. PC
      2. Guides & Strategies
      3. Help & Support
    5. GTA IV

      1. Episodes from Liberty City
      2. Multiplayer
      3. Guides & Strategies
      4. Help & Support
      5. GTA IV Mods
    6. GTA Chinatown Wars

    7. GTA Vice City Stories

    8. GTA Liberty City Stories

    9. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
      3. GTA SA Mods
    10. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
      3. GTA VC Mods
    11. GTA III

      1. Guides & Strategies
      2. Help & Support
      3. GTA III Mods
    12. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    13. Wiki

      1. Merchandising
    1. GTA Modding

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Mod Showroom

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

      1. DYOM
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Red Dead Redemption

    2. Rockstar Games

    1. Off-Topic

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

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

    2. Forum Support

    3. Site Suggestions

Sign in to follow this  
jemahuk1

Questions!

Recommended Posts

jemahuk1

- Hey, I ever knew about this command :

 

03BF: set_player $PLAYER_CHAR ignored_by_everyone 0

 

Can you tell my what are the commands beside that?

 

 

- I don't understand about this command :

 

Actor.HasWeapon

 

Please give me an example for that.

 

 

- Can you give me the code to set actor's ammo?

Edited by jemahuk1

Share this post


Link to post
Share on other sites
gtasearcher

1. What do you mean? Similar opcodes?

 

2. It's a condition, checking if an actor has a weapon.

Example

ifActor.HasWeapon($PLAYER_ACTOR, 28)

 

It will chech if the player has an Uzi.

 

3. While in Sanny, press CTRL+ALT+DELETE to use opcode search.

0114: set_actor $PLAYER_ACTOR weapon 38 ammo_to 200000 while_in_car 017B: set_actor $PLAYER_ACTOR weapon 22 ammo_to 10 01B2: give_actor [email protected] weapon 28 ammo 60 // Load the weapon model before using this 0563: set_player $PLAYER_CHAR driveby_ammo_to 78

 

Share this post


Link to post
Share on other sites
jemahuk1
1. What do you mean? Similar opcodes?

 

 

Yes! icon14.gif

Share this post


Link to post
Share on other sites
gtasearcher
1. What do you mean? Similar opcodes?

 

 

Yes! icon14.gif

Well use Opcode Search wink.gif

 

While in Sanny press CTRL+ALT+2

Share this post


Link to post
Share on other sites
jemahuk1

Thanks! cookie.gifcookie.gif

Then, how to make an actor get in a car, and drive to the point (without markers) we want?

Share this post


Link to post
Share on other sites
gtasearcher
Thanks! cookie.gifcookie.gif

Then, how to make an actor get in a car, and drive to the point (without markers) we want?

Why can't you use Opcode Search?

 

Anyway...

05CB: AS_actor $PLAYER_ACTOR enter_car [email protected] as_driver 10000 ms

 

Car.DriveTo($car, $x, $y, $z)

 

 

Share this post


Link to post
Share on other sites
jemahuk1

XD; very nice. Well, I'm still newbie with Cleo3. Thank you! icon14.gificon14.gificon14.gif

 

edit :

by the way, what does it means > [email protected] or [email protected], please explain to me!

Edited by jemahuk1

Share this post


Link to post
Share on other sites
james227uk
Thanks! cookie.gifcookie.gif

Then, how to make an actor get in a car, and drive to the point (without markers) we want?

OMG Gtasearcher mentioned it earlier!

 

OPCODE SEARCH

 

Share this post


Link to post
Share on other sites
jemahuk1
05CB: AS_actor $PLAYER_ACTOR enter_car [email protected] as_driver 10000 ms

 

Car.DriveTo($car, $x, $y, $z)

 

I used these code to my script, but the car move before the actor get in it. How to make the car move after the actor get in it?

Share this post


Link to post
Share on other sites
trickstar34

As james227uk showed you, you need to run a check that repeats until the actor is in the car, then move the car. Use his code.

Share this post


Link to post
Share on other sites
jemahuk1

Hey, what's the code to maintain actor's & car's speed?

 

edit:

I wanna know 'bout actor's walking style beside "FATMAN"

Edited by jemahuk1

Share this post


Link to post
Share on other sites
trickstar34

Here you go, try opcode search like everyone has been saying next time.

 

 

[email protected] = 10.000AD: set_car [email protected] max_speed_to [email protected] // [email protected] represents what you want the speed you want to maintain to be:CHECK02E3: [email protected] = car [email protected] speedif 8031:   not  [email protected] >= [email protected] 04BA: set_car [email protected] speed_to [email protected] @CHECK

 

Edited by trickstar34

Share this post


Link to post
Share on other sites
jemahuk1
I wanna know 'bout actor's walking style beside "FATMAN"

Anyone?

Share this post


Link to post
Share on other sites
trickstar34

 

You don't even know what [email protected] or [email protected] means? Then I advise you to start reading tutorials before you want to script something... For example: Mission Coding for Dummies or CLEO Script tutorial.

Really, Mission Coding for Dummies isn't meant for CLEO? I learned from that and my first mods were in CLEO, strange.

 

Anyway back on-topic:

Look up the possible animations and their containing IPL file. I suggest looking them up in the main.scm thats the easiest way unless you want to waste your time googling it.

Edited by trickstar34

Share this post


Link to post
Share on other sites
trickstar34

It decides how much more apt the actor is either going to attack any actor, including the player, when either ran into with his/her car or anything that normally provokes peds. The closer to 100, the more apt they are going to do something. Not only do you need to use opcode search but you also need to test them yourself.

Share this post


Link to post
Share on other sites
jemahuk1

Can you please gimme an example of code to put player to an interior??

Share this post


Link to post
Share on other sites
trickstar34

Thats something you have to look up, you have to know which world that interior is in, then the coords, you have to really research the main.scm for that, I will give my Explore Liberty City mod as an example.

 

 

select_interior 1 0860: link_actor $PLAYER_ACTOR to_interior 1 04E4: unknown_refresh_game_renderer_at -811.999 457.027 0A0B: set_rendering_origin_at_3D_coord -811.999 457.027 1356.622 angle 82.0Actor.PutAt($PLAYER_ACTOR, -811.999, 457.027, 1356.622)

 

 

0 is the regular world where you free rome.

Share this post


Link to post
Share on other sites
Dutchy3010

 

Really, Mission Coding for Dummies isn't meant for CLEO? I learned from that and my first mods were in CLEO, strange.

Mission Coding for Dummies is for both CLEO and SCM, but the examples are for scm. smile.gif ZAZ's tutorial is very good, so that is why I always give 2 tutorials. smile.gif

 

The following code is right, but I have two improvements...

 

[email protected] = 10.000AD: set_car [email protected] max_speed_to [email protected]// [email protected] represents what you want the speed you want to maintain to be:CHECK02E3: [email protected] = car [email protected] speedif 8031:   not  [email protected] >= [email protected] 04BA: set_car [email protected] speed_to [email protected] @CHECK

 

You only check if the speed is lower than the max speed. But, he wanted to maintain the speed and that is also above the speed (I guess). If that is true, a small change can help it:

 

8045:   not  [email protected] == [email protected] // (float) 

 

instead of:

 

8031:   not  [email protected] >= [email protected]

 

And you forgot a wait in this check. That isn't very handy either. tounge.gif

Share this post


Link to post
Share on other sites
trickstar34

 

And you forgot a wait in this check. That isn't very handy either.

oops, I still forget that even now tounge.gif

 

Fixed (with Dutchy's improvements)

 

[email protected] = 10.000AD: set_car [email protected] max_speed_to [email protected]// [email protected] represents what you want the speed you want to maintain to be:CHECKwait 002E3: [email protected] = car [email protected] speedif 8045:   not  [email protected] == [email protected] // (float)then 04BA: set_car [email protected] speed_to [email protected] @CHECK

 

 

 

8045:   not  [email protected] == [email protected] // (float) 

 

That didn't come up in opcode search confused.gif

Edited by trickstar34

Share this post


Link to post
Share on other sites
Dutchy3010

True, but if you can find the normal version of the opcode:

 

0045:   [email protected] == [email protected] // (float) 

 

You can easily change that in the "not" version, by changing the first 0 into a 8 (and of course the "not" in it, but that isn't important for the game). It will be:

 

8045:   not  [email protected] == [email protected] // (float) 

 

Share this post


Link to post
Share on other sites
jemahuk1

What are the code for the objectives (like kill an actor, get in the car, destroy the car, etc...)?

Share this post


Link to post
Share on other sites
gtasearcher
What are the code for the objectives (like kill an actor, get in the car, destroy the car, etc...)?

OPCODE SEARCH!

Share this post


Link to post
Share on other sites
trickstar34
What are the code for the objectives (like kill an actor, get in the car, destroy the car, etc...)?

What do you mean, displaying text or making it a requirement to continue the mission?

Share this post


Link to post
Share on other sites
Dutchy3010

 

05E2: AS_actor [email protected] kill_actor [email protected]  

 

Actor [email protected] kills actor [email protected]

 

 

repeatwait 100until 0118:   actor [email protected] dead

 

Wait until an actor died, which means that he is killed.

 

 

05CA: AS_actor $ACTOR_SMOKE enter_car [email protected] passenger_seat 0 10000 ms 05CB: AS_actor $PLAYER_ACTOR enter_car [email protected] as_driver 10000 ms 

 

Two opcodes for getting in the car.

 

 

repeat wait 100until 0119:   car [email protected] wrecked 

 

Waiting until the car is destroyed.

 

But, like gtasearcher already said, you could have found everything in the opcode search tool. Please use it in the future.

 

 

Share this post


Link to post
Share on other sites
jemahuk1

 

// This file was decompiled using sascm.ini published by Seemann (http://sannybuilder.com/files/SASCM.rar) on 13.10.2007{$VERSION 3.1.0027}{$CLEO .cs}//-------------MAIN---------------thread 'START' :START_1$SKIPTRIP = 1 wait 0 [email protected] = Marker.CreateIconAndSphere(15, 704.707, -508.4004, 21.3363):START_2wait 0 if and$SKIPTRIP = 1 00E1:   player 0 pressed_key 4 00E1:   player 0 pressed_key 10 00E1:   player 0 pressed_key 18 jf @START_3 $SKIPTRIP = 0 fade 0 1000 wait 1000 Actor.PutAt($PLAYER_ACTOR, 704.6223 -508.1239 21.3363)Actor.Angle($PLAYER_ACTOR) = 2.82fade 1 1000 :START_3if 00FF:   actor $PLAYER_ACTOR sphere 0 in_sphere 704.707 -508.4004 21.3363 radius 3.0 3.0 2.0 on_foot jf @START_2 wait 0 Marker.Disable([email protected])0A94: start_custom_mission "test_mission"  $ONMISSION = 1 :START_4wait 0 if  $ONMISSION == 0 jf @START_4 wait 10000 jump @START_1 

 

 

I made that cs to start the cm, I did it, but the red marker appear again after I hit it. I think I made a mistake here. Please correct them.

Share this post


Link to post
Share on other sites
gtasearcher

I think you need to use a global variable for your marker.

 

Think of something that wasn't used in the main.scm, such as

$CLEO_MARKER_THAT_I_HOPE_AND_I_PRAY_TO_GOD_THAT_IT_WAS_NOT_USED_IN_THE_ORIGINAL_MAIN_SCM

 

 

I'm not joking, something like that is usable wink.gif

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • 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.