Forum: Grand Theft Auto Series Modding - Our GTA Modding Team is the best around. Tutorials & Topics related to modding your GTA games, trophies, and save files! Discuss GTA game modding with the knowledgeable members of PSX-Scene and the Official GTA IV Mod Team.


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 Tree228Likes

Thread: General Help
  

Page 2 of 102 FirstFirst 1 2 3 4 12 52 ... LastLast
Results 11 to 20 of 1016
  1. #11 Question How do i make a bodyguard mod? 
    Connor977 is offline Member
    Join Date
    Oct 2012
    Posts
    33
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    10
    Likes Received
    0
    Hi, i want to make or change a bodyguard mod.
    I want the guards to be the runner ped with his hood on, two of them with mac 10's and one with a glock.

    Or if it's possible could some one tell/show me how to make a sco script? i would like a list of people who will protect you and you could choose what weapon they spawn with, it would be pretty nice.

    -Thanks.
    Reply With Quote  

  2. #12  
    Colt's Avatar
    Colt is offline Developer
    Join Date
    Jun 2012
    Posts
    832
    Downloads
    0
    Uploads
    0
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    804
    Likes Received
    293
    Personally I'd suggest that you got to grips more with scripting by looking at the sources available to you here so you know what it is you're looking for, and what it is that you're changing etc.

    Also, you'll need a list of weapons/player models so you can customize it exactly how you want it.

    Player Models

    Weapon Models

    Hope this helps.
    Mod Videos: http://www.youtube.com/DontGetAngryBro
    Reply With Quote  

  3. #13  
    Connor977 is offline Member
    Join Date
    Oct 2012
    Posts
    33
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    10
    Likes Received
    0
    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_M_Y_RUNNER,"Runner",WEAPON_MICRO_UZI, 4, 226, 65, 215);
    guard=2;
    }
    else if(guard==2)
    {
    homies(MODEL_M_Y_RUNNER,"Runner",WEAPON_glock, 5, 255, 0, 0);
    guard=3;
    }
    else if(guard==3)
    {
    homies(MODEL_M_Y_GAFR_LO_1,"Gangster",WEAPON_M4,6, 255, 0, 0);
    guard=4;
    }
    else if(guard==4)
    {
    homies(MODEL_M_Y_GJAM_LO_1,"Jam",WEAPON_MICRO_UZI , 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);
    }
    }


    I changed the peds and weapons, how do i make controls for it like LB + RB to spawn one guard. How do i make it into a SCO file?.
    Reply With Quote  

  4. #14  
    Colt's Avatar
    Colt is offline Developer
    Join Date
    Jun 2012
    Posts
    832
    Downloads
    0
    Uploads
    0
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    804
    Likes Received
    293
    To change a source into an SCO file, you need to compile it using either a batch file or the cmd.exe.
    (You can find the cmd.exe in "Start - Search - cmd").

    Also, you can't copy and paste stuff like this, as sometimes it just won't work. You'll have missing ends and scripts that will make your PC think
    "Da fuq he tryna do to me?!" lol.

    Have a look through some of the sources on here such as MaxSpeed's menu source to learn the way it's done.

    Also, try and get your hands on a program such as Notepad++.
    (I personally use Microsoft Visual Studio C++ 2010).
    Both are free.
    Last edited by Colt; 10-30-2012 at 02:40 AM.
    Mod Videos: http://www.youtube.com/DontGetAngryBro
    Reply With Quote  

  5. #15  
    Connor977 is offline Member
    Join Date
    Oct 2012
    Posts
    33
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    10
    Likes Received
    0
    Thanks bud, i have notepad++ just haven't learnt how to script yet
    Reply With Quote  

  6. #16  
    Colt's Avatar
    Colt is offline Developer
    Join Date
    Jun 2012
    Posts
    832
    Downloads
    0
    Uploads
    0
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    804
    Likes Received
    293
    No problem, sorry I couldn't help more last night, it was about 6am when I was replying to you.

    If you look closely in that script there, you'll see you have around 11 guards (I think, can't see it from here) so you'll still be spawning 5 I think it is each time, not just the three.

    Edit: ..200th post! Lol
    Mod Videos: http://www.youtube.com/DontGetAngryBro
    Reply With Quote  

  7. #17  
    Connor977 is offline Member
    Join Date
    Oct 2012
    Posts
    33
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    10
    Likes Received
    0
    Okay cheers for the help, do you know how i could make a guard mod?
    Reply With Quote  

  8. #18  
    keredor's Avatar
    keredor is offline Developer
    Join Date
    Mar 2012
    Posts
    187
    Downloads
    0
    Uploads
    0
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    151
    Likes Received
    141
    Quote Originally Posted by Colt View Post
    No problem, sorry I couldn't help more last night, it was about 6am when I was replying to you.

    If you look closely in that script there, you'll see you have around 11 guards (I think, can't see it from here) so you'll still be spawning 5 I think it is each time, not just the three.

    Edit: ..200th post! Lol
    Quote Originally Posted by Connor977 View Post
    Okay cheers for the help, do you know how i could make a guard mod?
    try codeblocks 10.5 for writing your scripts in
    Colt likes this.
    Reply With Quote  

  9. #19  
    Colt's Avatar
    Colt is offline Developer
    Join Date
    Jun 2012
    Posts
    832
    Downloads
    0
    Uploads
    0
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    804
    Likes Received
    293
    Quote Originally Posted by keredor View Post
    try codeblocks 10.5 for writing your scripts in
    Yeah I tried that, could never compile with it though (Didn't realize you needed scocl etc. back then).

    Codeblocks is good though. I'd recommend it.
    Mod Videos: http://www.youtube.com/DontGetAngryBro
    Reply With Quote  

  10. #20  
    Colt's Avatar
    Colt is offline Developer
    Join Date
    Jun 2012
    Posts
    832
    Downloads
    0
    Uploads
    0
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    804
    Likes Received
    293
    Code:
    Ped gameped;
    float BGx,BGy,BGz;
    Group Bgroup;
    bool bg=0;
    int guard=0;
    
    void PrintFunction(void){
    	void Print(char *string){
    		PRINT_STRING_WITH_LITERAL_STRING_NOW("STRING", string, 5000, 1);
    	}
    
    	void GroupSettings(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_SEPERATION_RANGE(Bgroup, 9999.9);
    				SET_GROUP_FORMATION(Bgroup, 2);
    				bg=1;
    			}
    		}
    	}
    
    	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); //Finds your coords
    		CREATE_CHAR(26, model, BGx, BGy, BGz, &gameped, true); //Creates the bodyguard
    
    		SET_GROUP_MEMBER(Bgroup, gameped);
    		SET_CHAR_NEVER_LEAVES_GROUP(gameped, true);
    
    		SET_CHAR_ACCURACY(gameped, 100); //Accuracy of the bodyguard
    		SET_CHAR_SHOOT_RATE(gameped, 100); //Speed the bodyguard fires
    		SET_CHAR_WILL_DO_DRIVEBYS(gameped, true); //Sets the bodyguard to shoot from a passenger seat
    		SET_CHAR_SIGNAL_AFTER_KILL(gameped, true); //Tells you when someone is dead?
    		SET_CHAR_WILL_USE_CARS_IN_COMBAT(gameped, true); //Sets the bodyguard to use cars?
    		SET_CHAR_WILL_FLY_THROUGH_WINDSCREEN(gameped, false); //Sets the bodyguard to stay in the vehicle after collosion
    		SET_CHAR_INVINCIBLE(gameped, false); //sets bodyguard to godmode or not
    		SET_CHAR_PROVIDE_COVERING_FIRE(gameped, true); //Provides covering fire?
    		SET_CHAR_CANT_BE_DRAGGED_OUT(gameped, true); //Sets boduguard to not be dragged from a vehicle
    		SET_CHAR_STAY_IN_CAR_WHEN_JACKED(gameped, true); //Sets bodyguard not to be jacked from a vehicle
    		SET_PED_DONT_DO_EVASIVE_DIVES(gameped, false); //Sets bodyguard to roll, wallhug (Not proper term, but my term lol) etc.
    		SET_PED_PATH_MAY_DROP_FROM_HEIGHT(gameped, true); //Ped follows you from drops
    		SET_PED_PATH_MAY_USE_CLIMBOVERS(gameped, true); //Ped follows you and climbs over things
    		SET_PED_PATH_MAY_USE_LADDERS(gameped, true); //Ped climbs ladders
    
    		UpdateWeaponOfPed(gameped, weapon);
    		SET_CURRENT_CHAR_WEAPON(gameped, weapon, true);
    	}
    
    	void GuardGroup(void){
    		GET_GROUP_SIZE(Group group, uint *pStartIndex, uint *pCount);
    		uint amount, pCount;
    		GET_GROUP_SIZE(Bgroup, *amount, &pCount);
    		if (pCount < 10){
    			if(guard==0){
    				BGuard(MODEL_M_Y_RUNNER,"Runner",WEAPON_MICRO_UZI, 2, 226, 65, 215); //Guard 1
    				guard=1;
    			}
    			else if(guard==1){
    				BGuard(MODEL_M_Y_RUNNER,"Runner",WEAPON_MICRO_UZI, 2, 226, 65, 215); //Guard 2
    				guard=2;
    			}
    			PRINT_STRING_WITH_LITERAL_STRING_NOW("STRING", "Whatever you want it to say on the screen when spawned", 5000, 1); //What it says when you spawn the guards
    		}
    	}
    	THIS_SCRIPT_IS_SAFE_FOR_NETWORK_GAME();
    	while(1){
    		GuardGroup();
    		GroupSettings();
    		WAIT (0);
    	}
    }
    That could work.
    Mod Videos: http://www.youtube.com/DontGetAngryBro
    Reply With Quote  

Page 2 of 102 FirstFirst 1 2 3 4 12 52 ... LastLast
Tags for this Thread

View Tag Cloud

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •