Forum: GTA IV Mod Releases / W.I.P.s


The above video goes away if you are a member and logged in, so log in now!




 
Would you like to get all the new info from
PSX-Scene in your email each day?




Want to learn more about the team keeping you up to date with the latest scene news?

Read about them now!

Check out our Developer bios, too!

 


User Tag List

Like Tree7Likes

Thread: [REL] Bodyguard Script Source
  

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 14
  1. #1 [REL] Bodyguard Script Source 
    Colt's Avatar
    Colt is online now Developer
    Join Date
    Jun 2012
    Posts
    743
    Downloads
    0
    Uploads
    0
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    740
    Likes Received
    225
    Ok guys, a me and a friend made this script quite a while back and I thought I'd release it to you guys

    The Network names, Models and weapons of the peds can be changed to whatever you like along with the color of the names. (I believe).

    Note: I haven't done a lot of scripting lately and I really can't remember how to do much like this.
    I also did NOT make this all on my own, me and a friend made and edited it to our liking.

    Here it is, enjoy:

    Code:
        Ped gameped;
        float BGx,BGy,BGz;
        Group Bgroup;
        bool bg=0;
        int guard=0;
         
    	void BodyGuards(void)
    
    	{
        void Print(char *string)
        {
                PRINT_STRING_WITH_LITERAL_STRING_NOW("STRING", string, 5000, 1);
        }
         // Set this that the Gang will Follow you
            void Colt(void)
            {
                    if(bg==0)
                    {
                            GET_PLAYER_GROUP(GetPlayerIndex(), &Bgroup);
                    if(!DOES_GROUP_EXIST(Bgroup))
                    {
                            CREATE_GROUP(0, Bgroup, TRUE);
                            SET_GROUP_LEADER(Bgroup, GetPlayerPed());
                            SET_GROUP_SEPARATION_RANGE(Bgroup, 9999.9);
                            SET_GROUP_FORMATION(Bgroup, 2);
                                                bg=1;
                    }
                    }
            }
             
            // Alows you to choose options when spawning your ped
            void Setup(uint model, char *name, uint weapon ,float offset_y, uint Rcol, uint Gcol , uint Bcol)
            {
             
                    REQUEST_MODEL(model);
                    while (!HAS_MODEL_LOADED(model)) WAIT(0);
                   
                    Ped Pped = GetPlayerPed();
               
                   
                    GET_OFFSET_FROM_CHAR_IN_WORLD_COORDS(Pped, 0, offset_y , 0, &BGx, &BGy, &BGz);
                    CREATE_CHAR(26, model, BGx,BGy,BGz, &gameped, true);
             
                   
                    SET_GROUP_MEMBER(Bgroup, gameped); // Ped as Bodyguard
                    SET_CHAR_NEVER_LEAVES_GROUP(gameped, TRUE); // Keeps the Group together
                   
                    SET_CHAR_ACCURACY(gameped, 100);   // Ped Options
                    SET_CHAR_SHOOT_RATE(gameped, 100);
                                SET_CHAR_WILL_DO_DRIVEBYS(gameped, true);
                                SET_CHAR_SIGNAL_AFTER_KILL(gameped, true);
                                SET_CHAR_WILL_USE_CARS_IN_COMBAT(gameped, true);
                                SET_CHAR_WILL_FLY_THROUGH_WINDSCREEN(gameped, true);
                                SET_CHAR_INVINCIBLE(gameped, false);
                                SET_CHAR_PROVIDE_COVERING_FIRE(gameped, true);
                                SET_CHAR_CANT_BE_DRAGGED_OUT(gameped, true);
                                SET_CHAR_STAY_IN_CAR_WHEN_JACKED(gameped, true);
                                SET_PED_DONT_DO_EVASIVE_DIVES(gameped, false);
                    SET_PED_PATH_MAY_DROP_FROM_HEIGHT(gameped, true);
                    SET_PED_PATH_MAY_USE_CLIMBOVERS(gameped, true);
                    SET_PED_PATH_MAY_USE_LADDERS(gameped, true);
                   
             
                    UpdateWeaponOfPed(gameped, weapon); //uint weapon for ped
                    SET_CURRENT_CHAR_WEAPON(gameped, weapon, true); // uint weapon for ped
                   
            }
             
            // Allows you to choose options when spawning your ped and will only spawn 5
            void Group(void)
              {
                if(IS_GAME_KEYBOARD_KEY_JUST_PRESSED(24, O)) // O = what button to spawn on the keyboard
                {
                    GET_GROUP_SIZE(Group group, uint *pStartIndex, uint *pCount);
                    uint amount,pCount;
                    GET_GROUP_SIZE(Bgroup, &amount, &pCount);
                    if (pCount < 10)// Checks the size and if under 5 will spawn 1 dude
                                {
                            if(guard==0)
                            {
                                    homies(MODEL_IG_*******_X ,"******* X",WEAPON_MICRO_UZI, 2, 226, 65, 215);
                                    guard=1;
                            }
                            else if(guard==1)
                            {
                                    homies(MODEL_IG_DWAYNE,"Dwayne",WEAPON_DEAGLE,4, 226, 65, 215);
                                    guard=2;
                            }
                            else if(guard==2)
                            {
                                    homies(MODEL_IG_LILJACOB,"Lil Jacob",WEAPON_M4, 5, 255, 0, 0);
                                    guard=3;
                            }
                            else if(guard==3)
                            {
                                    homies(MODEL_IG_PACKIE_MC,"Packie",WEAPON_M4,6, 255, 0, 0);
                                    guard=4;
                            }
                            else if(guard==4)
                            {
                                    homies(MODEL_IG_JOHNNYBIKER,"Johnny",WEAPON_SHOTGUN, 8, 255, 0, 0);
                                    guard=5;
                            }
                            else if(guard==5)
                            {
                                    homies(MODEL_IG_PHILL_BELL,"Phill",WEAPON_BERETTA, 14, 255, 0, 0);
                                    guard=6;
                            }
                            else if(guard==6)
                            {
                                    homies(MODEL_IG_ROMAN,"Roman",WEAPON_MP5, 15, 255, 0, 0);
                                    guard=7;
                            }
                            else if(guard==7)
                            {
                                    homies(MODEL_IG_BRUCIE,"Brucie",WEAPON_DEAGLE,16, 255, 0, 0);
                                    guard=8;
                            }
                            else if(guard==8)
                            {
                                    homies(MODEL_IG_FRANCIS_MC,"Francis",WEAPON_MICRO_UZI, 18, 255, 0, 0);
                                    guard=0;
                            }
    						else if(guard==9)
                            {
                                    homies(MODEL_CS_ELIZABETA,"Elizabeta",WEAPON_MP5, 19, 255, 0, 0);
                                    guard=0;
                            }
                    Print("Your Story Friends Have Come To Help.");
                                }}
                }
                            THIS_SCRIPT_IS_SAFE_FOR_NETWORK_GAME();
                    while(1)
                    {
                        Group();
                                Colt();
                            WAIT(0);
    				}
    				}
    If there are any errors or anything please tell me below.

    This can obviously be changed to go into a Menu or for Controller Use.
    Last edited by Colt; 09-28-2012 at 10:20 AM.
    Reply With Quote  

  2. #2  
    keredor's Avatar
    keredor is offline Developer
    Join Date
    Mar 2012
    Posts
    180
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    136
    Likes Received
    123
    cool. thanks for this.
    Colt likes this.
    Reply With Quote  

  3. #3  
    Colt's Avatar
    Colt is online now Developer
    Join Date
    Jun 2012
    Posts
    743
    Downloads
    0
    Uploads
    0
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    740
    Likes Received
    225
    Quote Originally Posted by keredor View Post
    cool. thanks for this.
    Glad you like it.
    Reply With Quote  

  4. #4  
    JDMAlex's Avatar
    JDMAlex is offline & developer
    Join Date
    Nov 2010
    Posts
    723
    Downloads
    5
    Uploads
    1
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    190
    Likes Received
    442
    the following native:

    GIVE_PED_FAKE_NETWORK_NAME(gameped, name, Rcol, Gcol, Bcol, 255);

    will freeze in the updates and in elfc incase you are having these issues
    Reply With Quote  

  5. #5  
    Colt's Avatar
    Colt is online now Developer
    Join Date
    Jun 2012
    Posts
    743
    Downloads
    0
    Uploads
    0
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    740
    Likes Received
    225
    Quote Originally Posted by JDMAlex View Post
    the following native:

    GIVE_PED_FAKE_NETWORK_NAME(gameped, name, Rcol, Gcol, Bcol, 255);

    will freeze in the updates and in elfc incase you are having these issues
    Is that on PS3?


    I have an Xbox so I don't really know how PS3 mods work with the updates/patches etc. Feel free to correct it for PS3.
    Reply With Quote  

  6. #6  
    nativesith's Avatar
    nativesith is offline Moderator
    Join Date
    Jun 2011
    Location
    Los Santos
    Posts
    1,362
    Downloads
    12
    Uploads
    7
    Mentioned
    37 Post(s)
    Tagged
    1 Thread(s)
    Likes Given
    960
    Likes Received
    647
    Ah dat ol chestnut , ye olde Fake Network Name, what a pain lol.
    We don't get down with fake azz labels ere son!
    RandQalan likes this.
    Reply With Quote  

  7. #7  
    RandQalan's Avatar
    RandQalan is online now Wanabe Beta Tester
    Join Date
    May 2010
    Location
    USA
    Posts
    3,654
    Downloads
    17
    Uploads
    37
    Mentioned
    18 Post(s)
    Tagged
    4 Thread(s)
    Likes Given
    737
    Likes Received
    413
    Quote Originally Posted by nativesith View Post
    Ah dat ol chestnut , ye olde Fake Network Name, what a pain lol.
    We don't get down with fake azz labels ere son!
    Love the yokal

    V10 SCPH-50001 with Network adapter SCPH-10281 500 G HD
    PSP 3000 9G 6.20 PRO CFW Perm
    Unofficial FMCB v1.8C OPL self compiled HD and SMB preferred
    Is how all good gaming systems came to be
    Reply With Quote  

  8. #8  
    nativesith's Avatar
    nativesith is offline Moderator
    Join Date
    Jun 2011
    Location
    Los Santos
    Posts
    1,362
    Downloads
    12
    Uploads
    7
    Mentioned
    37 Post(s)
    Tagged
    1 Thread(s)
    Likes Given
    960
    Likes Received
    647
    Ye olde lol, yeah dat is because Fake Network name is really is a pain in the side of the GTA Team for a long time. Anytime anyone (myself included lol) made a script with it everyone was up in arms. Like YOU DINNA KNOW!?
    I do IV ISH not EFLC lol, The only EFLC ish I did was the visual and modded weapons. IV is always mo moddable than EFLC and this is justa another example, pahtnah! Even with a package like Evil's latest, which does ave da latest update, will cause madd freezin.
    This is totally off topic(someting dats goin round a lot ere lately) I noticed at PS3SceneFiless a GTA IV Complete internal fix made by PatrickBatman. I was gonna try it with a modded update image for IV later, let yall know how dat goes.
    Thanks Batman lol!
    RandQalan likes this.
    Reply With Quote  

  9. #9  
    Colt's Avatar
    Colt is online now Developer
    Join Date
    Jun 2012
    Posts
    743
    Downloads
    0
    Uploads
    0
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    740
    Likes Received
    225
    I'm 99% sure it works on Xbox though, sorry but I don't have a PS3 so I don't know what does and doesn't work with it lol :/

    What is it that should be there instead?
    Reply With Quote  

  10. #10  
    bigfish500's Avatar
    bigfish500 is offline Registered User
    Join Date
    Sep 2012
    Posts
    2
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    1
    Likes Received
    0
    how would one setup this for controller use?
    Reply With Quote  

Page 1 of 2 1 2 LastLast
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •