Jump to content

make ballas friendly to cj


bl@cksh@de

Recommended Posts

hey there.. i'd like to make ballas friendly to cj, i mean, so i can pick em up and perform a drive-by, same as i can do with grove str members... i don't wanna use recruit anyone cheat.. i just wanna do this. can some1 tell me how to do it, if it is possible?

 

Link to comment
Share on other sites

gtasbigfoot

The following thing is located in the main scm

 

7-Ballas

8-Grove Street Families)

 

 

0746: set_acquaintance 1 of_actors_pedtype 8 to_actors_pedtype 0 // see ped.dat 0746: set_acquaintance 4 of_actors_pedtype 8 to_actors_pedtype 7 // see ped.dat 0746: set_acquaintance 3 of_actors_pedtype 8 to_actors_pedtype 9 // see ped.dat 0746: set_acquaintance 3 of_actors_pedtype 8 to_actors_pedtype 14 // see ped.dat 0746: set_acquaintance 3 of_actors_pedtype 7 to_actors_pedtype 0 // see ped.dat 0746: set_acquaintance 4 of_actors_pedtype 7 to_actors_pedtype 8 // see ped.dat 0746: set_acquaintance 3 of_actors_pedtype 7 to_actors_pedtype 9 // see ped.dat 0746: set_acquaintance 3 of_actors_pedtype 7 to_actors_pedtype 14 // see ped.dat 0746: set_acquaintance 3 of_actors_pedtype 9 to_actors_pedtype 0 // see ped.dat 0746: set_acquaintance 3 of_actors_pedtype 9 to_actors_pedtype 8 // see ped.dat 0746: set_acquaintance 3 of_actors_pedtype 9 to_actors_pedtype 7 // see ped.dat 0746: set_acquaintance 4 of_actors_pedtype 9 to_actors_pedtype 14 // see ped.dat 0746: set_acquaintance 3 of_actors_pedtype 14 to_actors_pedtype 0 // see ped.dat 0746: set_acquaintance 3 of_actors_pedtype 14 to_actors_pedtype 8 // see ped.dat 0746: set_acquaintance 3 of_actors_pedtype 14 to_actors_pedtype 7 // see ped.dat 0746: set_acquaintance 4 of_actors_pedtype 14 to_actors_pedtype 9 // see ped.dat 0746: set_acquaintance 3 of_actors_pedtype 10 to_actors_pedtype 11 // see ped.dat 0746: set_acquaintance 3 of_actors_pedtype 10 to_actors_pedtype 13 // see ped.dat 0746: set_acquaintance 3 of_actors_pedtype 11 to_actors_pedtype 10 // see ped.dat 0746: set_acquaintance 3 of_actors_pedtype 13 to_actors_pedtype 10 // see ped.dat 0746: set_acquaintance 4 of_actors_pedtype 13 to_actors_pedtype 11 // see ped.dat 0746: set_acquaintance 4 of_actors_pedtype 11 to_actors_pedtype 13 // see ped.dat 

 

 

Just edit them,scripted ones you can also do,with puting the actor in a group or sets it's type to 2.

 

1 = respect, 3 = dislike, 4 = hate.

 

 

 

[EDIT] Oh Doomed posted yes that is a better way problay,if you use CLEO that is.

Edited by gtasbigfoot
Link to comment
Share on other sites

Doomed_Space_Marine

To make ballas friendly, use:

 

0746: set_acquaintance 1 of_actors_pedtype 7 to_actors_pedtype 8 // see ped.dat 

 

This makes ballas friendly to GSF and if I'm not mistaken, by doing this you will make them friendly to CJ too. But if they still attack CJ, then use

 

0746: set_acquaintance 1 of_actors_pedtype 7 to_actors_pedtype 0 // see ped.dat 

 

To make them able to recruit, it's possible to do by cycling through all actors and checking if player is aiming at current actor and pressing G and if he is, then put him to the group. But there's a better way to do by using memory address, changing their pedtype to GSF, but you'll still have to cycle through all actors. This is the code (with CLEO):

 

{$CLEO}0000:while truewait 500   for 0@ = 0 to 30000       if       056D:   actor 0@ defined        then       0A96: 1@ = actor 0@ struct       1@ += 0x598       0A8D: 2@ = read_memory 1@ size 4 virtual_protect 0           if           2@ == 7           then           0A8C: write_memory 1@ size 4 value 8 virtual_protect 0           end       end   endend

 

Link to comment
Share on other sites

okay dude, tnx on help, but i'm n00b in this coding and i dunno anything bout it, when i edit those things with sanny builder it just edits text file that was created from main.scm ... and how do i open cleo? sorry man i know i'm freakin boring but as i said, i'm n00b in coding... sad.gif

Link to comment
Share on other sites

You can make them freindly by altering them in the ped.dat file, saves any SCM coding.

You can set who they respect and dislike or hate. They are gang1 in the file.

Link to comment
Share on other sites

Doomed_Space_Marine
You can make them freindly by altering them in the ped.dat file, saves any SCM coding.

You can set who they respect and dislike or hate. They are gang1 in the file.

No, you can't. This affects their behavior very little. SCM overrides definitions in ped.dat.

Link to comment
Share on other sites

gtasbigfoot
You can make them freindly by altering them in the ped.dat file, saves any SCM coding.

You can set who they respect and dislike or hate. They are gang1 in the file.

No, you can't. This affects their behavior very little. SCM overrides definitions in ped.dat.

Correct, the main scm is more powerfull than that file and editing that file will only work once every real time hour.

Link to comment
Share on other sites

i have aquestion , can aniyone make for me another anims from cj another walk run and the another thinks from cj...when aniyone can help me Pm me.. biggrin.gif

Link to comment
Share on other sites

i need help with cleo..

 

1. in sanny builder it is green, which means it is installed. when i click on it, it opens help. is it ok?

 

2. how to edit main.scm with cleo? as i said i can't edit it with sanny builder.

 

tnx..

Link to comment
Share on other sites

Doomed_Space_Marine
i need help with cleo..

 

1. in sanny builder it is green, which means it is installed. when i click on it, it opens help. is it ok?

 

2. how to edit main.scm with cleo? as i said i can't edit it with sanny builder.

 

tnx..

1. Yes, it's ok.

2. Do you know what CLEO is? sarcasm.gif

Link to comment
Share on other sites

 

Do you know what CLEO is? sarcasm.gif

 

Actually.. biggrin.gif I dunno what is it, but i guess it's kinda coding program.. sorry man i just wanna edit ma game but i didn't know it's that hard, i'm not total n00b but i'm close to it... can u help me a little?

Link to comment
Share on other sites

Doomed_Space_Marine
Do you know what CLEO is? sarcasm.gif

 

Actually.. biggrin.gif I dunno what is it, but i guess it's kinda coding program.. sorry man i just wanna edit ma game but i didn't know it's that hard, i'm not total n00b but i'm close to it... can u help me a little?

It's not program. It's such an add-on that expands ability to modify GTA SA with sanny builder. And when you want to edit main.scm, write the code into .txt file and then compile it. You will need to start new game. If you don't want to do this, you can make CLEO script with sanny builder. It works separately from main.scm.

Link to comment
Share on other sites

okay, i have edited main.scm via sanny builder, ballas respect me now, i can't recruit em (i haven't even add a code) but i noticed, every time 1 of them asks me something, i reply positively and than that balla attacks me, lol. this is really complicated, but i think i got the point... anyway, i still don't understand how cleo works, i have downloaded bigfoot.cs, put it in cleo3\cleo_examples (i saw there r other .cs files in there so i tried to put it in there), i have started d game and it didn't spawn.

Edited by bl@cksh@de
Link to comment
Share on other sites

oh man.... now i see how big n00b i am... i didn't notice there is cleo folder in my san andreas directory... lol. i know what cleo is now for, installed bigfoot and scared my lil' brother lol. space marine thankz for big help. wink.gif

Link to comment
Share on other sites

  • 14 years later...
On 16.07.2008 at 21:04, Doomed_Space_Marine said:

To make ballas friendly, use:

 

0746: установить значение 1 из_акторов_подтипа 7 в_акторы_подтипа 8 // см. ped.dat 
 

 

Это делает ballas дружественными к GSF, и, если я не ошибаюсь, сделав это, вы сделаете их дружественными и к CJ. Но если они все еще атакуют CJ, тогда используйте

 

0746: установить значение 1 из_actor s_pedtype 7 в_actor s_pedtype 0 // см. ped.dat 
 

 

Чтобы сделать их способными к набору, это можно сделать, прокрутив всех актеров и проверив, нацелен ли игрок на текущего актера, и нажав G, и если это так, то добавьте его в группу. Но есть лучший способ сделать это, используя адрес памяти, изменив их pedtype на GSF, но вам все равно придется перебирать всех участников. Это код (с CLEO):

 

{$CLEO}0000: в то время как truewait 500 для 0@ = от 0 до 30000, если 056D: определен актер 0@, тогда 0A96: 1@ = actor 0@ struct 1@ += 0x598 0A8D: 2@ = read_memory 1@ size 4 virtual_protect 0, если 2@ == 7, тогда 0A8C: write_memory 1@ size 4 значение 8 virtual_protect 0 конечный конечный конечный
 

 

I created a cleo script on the code you gave me, but nothing happens. (Does not come out to recruit Ballas.

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