Jump to content
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. Los Santos Drug Wars
      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. Forum Support

    3. Suggestions

Vice city Guards cleo script problem


Atreedee
 Share

Recommended Posts

Hi everyone,
So I downloaded this mod that spawns bodyguards at the mansion. I thought that I could make use of it so the guards help me in missions such as Keep Your Friends Close, so I changed their type from Civmale to Gang6 and removed the ability to tie them to the player. The thing worked and they help me kill other gang members in missions but the problem is they also kill Vercetti gang members and they shoot me if I sell ice creams near them. How can I change them so they won't kill my gang members or shoot me while selling ice creams?
This is the code after I edited it.

Also, what does "0319: set_actor [email protected] running 1" do?

{$CLEO .cs}//-------------MAIN---------------0000: NOP :NONAME_2wait 250 if and   Player.Defined($PLAYER_CHAR)00F5:   player $PLAYER_CHAR 0 -388.1082 -583.2788 26.15488 radius 20.0 20.0 4.0 else_jump @NONAME_2 jump @NONAME_67 :NONAME_67wait 0 Model.Load(#PGB)Model.Load(356)jump @NONAME_87 :NONAME_87if and   Model.Available(#PGB)   Model.Available(356)else_jump @NONAME_67 jump @NONAME_114 :[email protected] = Actor.Create(Gang6, #PGB, -375.0723, -582.5458, 25.3204)Actor.Angle([email protected]) = 2.945201B2: give_actor [email protected] weapon 26 ammo 9999 // Load the weapon model before using this 0319: set_actor [email protected] running 1 Actor.Health([email protected]) = 10002E2: set_actor [email protected] weapon_accuracy_to 100 01F7: set_player $PLAYER_CHAR ignored_by_cops_state_to 0 03BF: set_player $PLAYER_CHAR ignored_by_everyone_to 0 Model.Destroy(#PGB)Model.Destroy(356)jump @NONAME_216 :NONAME_216wait 50 if    Player.Defined($PLAYER_CHAR)else_jump @NONAME_2 if 00F5:   player $PLAYER_CHAR 0 -388.1082 -583.2788 26.15488 radius 1.0 1.0 2.0 else_jump @NONAME_216 jump @NONAME_291 :NONAME_291wait 0 if    Actor.Dead([email protected])else_jump @NONAME_318 jump @NONAME_2 :NONAME_318wait 0 else_jump @NONAME_291 jump @NONAME_336 :NONAME_336wait 0 Actor.RemoveReferences([email protected])jump @NONAME_2 
Edited by Atreedee
Link to comment
Share on other sites

 

Hi everyone,

So I downloaded this mod that spawns bodyguards at the mansion. I thought that I could make use of it so the guards help me in missions such as Keep Your Friends Close, so I changed their type from Civmale to Gang6 and removed the ability to tie them to the player. The thing worked and they help me kill other gang members in missions but the problem is they also kill Vercetti gang members and they shoot me if I sell ice creams near them. How can I change them so they won't kill my gang members or shoot me while selling ice creams?

This is the code after I edited it.

Also, what does "0319: set_actor running 1" do?

{$CLEO .cs}//-------------MAIN---------------0000: NOP :NONAME_2wait 250 if and   Player.Defined($PLAYER_CHAR)00F5:   player $PLAYER_CHAR 0 -388.1082 -583.2788 26.15488 radius 20.0 20.0 4.0 else_jump @NONAME_2 jump @NONAME_67 :NONAME_67wait 0 Model.Load(#PGB)Model.Load(356)jump @NONAME_87 :NONAME_87if and   Model.Available(#PGB)   Model.Available(356)else_jump @NONAME_67 jump @NONAME_114 :NONAME_114[email protected] = Actor.Create(Gang6, #PGB, -375.0723, -582.5458, 25.3204)Actor.Angle([email protected]) = 2.945201B2: give_actor [email protected] weapon 26 ammo 9999 // Load the weapon model before using this 0319: set_actor [email protected] running 1 Actor.Health([email protected]) = 10002E2: set_actor [email protected] weapon_accuracy_to 100 01F7: set_player $PLAYER_CHAR ignored_by_cops_state_to 0 03BF: set_player $PLAYER_CHAR ignored_by_everyone_to 0 Model.Destroy(#PGB)Model.Destroy(356)jump @NONAME_216 :NONAME_216wait 50 if    Player.Defined($PLAYER_CHAR)else_jump @NONAME_2 if 00F5:   player $PLAYER_CHAR 0 -388.1082 -583.2788 26.15488 radius 1.0 1.0 2.0 else_jump @NONAME_216 jump @NONAME_291 :NONAME_291wait 0 if    Actor.Dead([email protected])else_jump @NONAME_318 jump @NONAME_2 :NONAME_318wait 0 else_jump @NONAME_291 jump @NONAME_336 :NONAME_336wait 0 Actor.RemoveReferences([email protected])jump @NONAME_2 

you must erase acquaintance with them

exactly this hate player, combine something from this

 

0243: set_actor 15 @ ped_stats_to 16

011A: set_actor 15 @ search_threat 65536

011A: set_actor 15 @ search_threat 64

011A: set_actor 15 @ search_threat 1048576

0291: set_actor 15 @ attack_when_provoked 1

01ED: clear_actor 15 @ threat_search

011A: set_actor 15 @ search_threat 64

Link to comment
Share on other sites

I added

0243: set_actor [email protected] ped_stats_to 1601ED: clear_actor [email protected] threat_search011A: set_actor [email protected] search_threat 1048576011A: set_actor [email protected] search_threat 64011A: set_actor [email protected] search_threat 655360291: set_actor [email protected] attack_when_provoked 1

Now they just stand there doing absolutely nothing.

I also tried adding

011A: set_actor [email protected] search_threat 128011A: set_actor [email protected] search_threat 256011A: set_actor [email protected] search_threat 512011A: set_actor [email protected] search_threat 1024011A: set_actor [email protected] search_threat 2048011A: set_actor [email protected] search_threat 4096

The guards kill other gang members but also try to kill themselves. Vercetti gang members try to kill them too when they see them shooting.

 

I tried removing

0291: set_actor [email protected] attack_when_provoked 1

It ended up with the same result.

 

Then I tried removing

011A: set_actor [email protected] search_threat 1048576011A: set_actor [email protected] search_threat 65536

to end up with the same result.

 

Then I tried removing

0243: set_actor [email protected] ped_stats_to 16

Still same result.

 

I tried adding

0243: set_actor [email protected] ped_stats_to 12

and it's still the same result.

I am really confused.

Edited by Atreedee
Link to comment
Share on other sites

I added

0243: set_actor [email protected] ped_stats_to 1601ED: clear_actor [email protected] threat_search011A: set_actor [email protected] search_threat 1048576011A: set_actor [email protected] search_threat 64011A: set_actor [email protected] search_threat 655360291: set_actor [email protected] attack_when_provoked 1

They don't shoot me while selling ice cream anymore, but they still kill Vercetti gang members.

 

see in main scm

or check in ped.dat

and you have to change what I gave you

hate or like you know

me gta vice city does not work I do not have how to check :)

Link to comment
Share on other sites

Sorry, I had made mistakes in my post and I've edited it.

you have sanny builder path Sanny Builder 3 \ data \ vc \ opcodes.txt

see all opcode :)

Link to comment
Share on other sites

Finally fixed it! The problem was that I thought the ordering of gangs in code started from 0 so I thought the vercettis are gang6. Just found out they're gang7. Thank you, Sanmodder, for trying to help!

Edited by Atreedee
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.