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

    2. News

    1. Red Dead Redemption 2

    1. GTA Online

      1. After Hours
      2. Find Lobbies & Players
      3. Guides & Strategies
      4. Vehicles
      5. Content Creator
      6. Help & Support
    2. Crews

      1. Events
      2. Recruitment
    1. Grand Theft Auto Series

    2. GTA Next

    3. GTA V

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

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

    6. GTA Vice City Stories

    7. GTA Liberty City Stories

    8. GTA San Andreas

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

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

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

      1. GTA Advance
      2. GTA 2
      3. GTA
    12. 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. Forum Support

    2. Site Suggestions

Sign in to follow this  
Atreedee

Vice city Guards cleo script problem

Recommended Posts

Atreedee

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

Share this post


Link to post
Share on other sites
Sanmodder

 

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

Share this post


Link to post
Share on other sites
Atreedee

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

Share this post


Link to post
Share on other sites
Sanmodder

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 :)

Share this post


Link to post
Share on other sites
Atreedee

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

Share this post


Link to post
Share on other sites
Sanmodder

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 :)

Share this post


Link to post
Share on other sites
Atreedee

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

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

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