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 Tree37Likes

Thread: K3R3D0RS script's
  

Page 2 of 5 FirstFirst 1 2 3 4 ... LastLast
Results 11 to 20 of 45
  1. #11  
    nativesith's Avatar
    nativesith is offline Moderator
    Join Date
    Jun 2011
    Location
    Los Santos
    Posts
    1,363
    Downloads
    12
    Uploads
    7
    Mentioned
    37 Post(s)
    Tagged
    1 Thread(s)
    Likes Given
    962
    Likes Received
    648
    Please add to the mega script thread , But this a good release. On ps3 the skylift has been done, but not the towtruck.
    Also, I know I added you to the team(I last as the team recruiter)and still no badge? You will get it ...eventually.
    keredor likes this.
    Reply With Quote  

  2. #12  
    cp619's Avatar
    cp619 is offline Member
    Join Date
    Jul 2012
    Location
    SoCal
    Posts
    96
    Downloads
    10
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    76
    Likes Received
    24
    Working for EFLC. Lots of fun. Thanks Keredor!
    keredor likes this.
    Reply With Quote  

  3. #13  
    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
    Quote Originally Posted by nativesith View Post
    Please add to the mega script thread , But this a good release. On ps3 the skylift has been done, but not the towtruck.
    Also, I know I added you to the team(I last as the team recruiter)and still no badge? You will get it ...eventually.
    Cool i will add it later man. Does the skylift on ps3 work for online players? I was of the understanding it uses get_closest_car, which would not work for players cars.
    Reply With Quote  

  4. #14  
    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
    Quote Originally Posted by cp619 View Post
    Working for EFLC. Lots of fun. Thanks Keredor!
    Thank you. I'm happy to hear that.
    Reply With Quote  

  5. #15  
    creighton is online now OhManMyBad
    Join Date
    Aug 2012
    Posts
    207
    Downloads
    2
    Uploads
    0
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    151
    Likes Received
    173
    Quote Originally Posted by keredor View Post
    Cool i will add it later man. Does the skylift on ps3 work for online players? I was of the understanding it uses get_closest_car, which would not work for players cars.
    Haha what a coincidence, I actually wrote Skylift pickup code that works for online players' vehicles two days ago. You have to get control of their network id of course. I got rid of the get_closest_car method because I wasn't sure that it included other player's cars (just game ped/parked ones). Instead mine works by selecting the username manually, then it teleports them to me and attaches.

    I integrated this into my menu's online player loop with it's own option to enable/disable. It's already been tested as working.

    Code:
    if(DOES_CHAR_EXIST(players[index].ped)){
    	if(IS_CHAR_IN_ANY_CAR(pPlayer)){
    		if(IS_CHAR_IN_ANY_CAR(players[index].ped)){
    			float heading,px,py,pz,pheight;
    			float offset_y = -2.8, offset_z = 0.65;
    			int nvid,tick,driver;
    			GET_CAR_CHAR_IS_USING(players[index].ped,&pveh);
    			GET_CAR_CHAR_IS_USING(pPlayer,&paveh);
    			GET_DRIVER_OF_CAR(paveh,&driver);
    			if((driver == pPlayer) && (IS_CHAR_IN_MODEL(pPlayer, MODEL_SKYLIFT))){
    				GET_NETWORK_ID_FROM_VEHICLE(pveh,&nvid);
    				REQUEST_CONTROL_OF_NETWORK_ID(nvid);
    				while(!HAS_CONTROL_OF_NETWORK_ID(nvid)){
    					tick++;
    					REQUEST_CONTROL_OF_NETWORK_ID(nvid);
    					if(tick >= 200){
    						print("Error");
    						return;
    					}
    					WAIT(0);
    				}
    				if(!IS_CAR_ATTACHED(pveh)){
    					pheight = GET_HEIGHT_OF_VEHICLE(pveh,px,py,pz,false,true);
    					if (IS_BIG_VEHICLE(pveh)){
    						offset_y = -3.5;
    						offset_z = 0.90;
    					}
    					GET_CAR_HEADING(paveh,&heading);
    					GET_CHAR_COORDINATES(pPlayer,&x,&y,&z);
    					SET_CAR_HEADING(pveh,heading);
    					teleport_char(players[index].ped,x,y,z);
    					FREEZE_CAR_POSITION(pveh,true);
    					ATTACH_CAR_TO_CAR(pveh,paveh,0,0.0,offset_y,pheight-offset_z,0.0,0.0,0.0);
    					LOCK_CAR_DOORS(paveh,4);
    					LOCK_CAR_DOORS(pveh,4);
    					print_long("Vehicle attached to magnet.");
    					return;
    				}
    				else if(IS_CAR_ATTACHED(pveh)){
    					LOCK_CAR_DOORS(paveh,1);
    					LOCK_CAR_DOORS(pveh,1);
    					FREEZE_CAR_POSITION(pveh,false);
    					DETACH_CAR(pveh);
    					print("Vehicle detached from magnet.");
    					return;
    				}
    			}
    			else print("You must driving a Skylift.");
    		}
    		else print("Player is not in a vehicle.");
    	}
    	else print("You are not in a Skylift.");
    }
    Obvious thanks here goes to Three-Socks and EmmanuelU.

    Edit: And for the record, someone attached me to their Skylift something like three months ago in a multiplayer game. They had all kinds of 'advanced' stuff for that time, including some things I still have yet to see or hear about. Wouldn't tell me what menu they were using other than it was private.
    Reply With Quote  

  6. #16  
    nativesith's Avatar
    nativesith is offline Moderator
    Join Date
    Jun 2011
    Location
    Los Santos
    Posts
    1,363
    Downloads
    12
    Uploads
    7
    Mentioned
    37 Post(s)
    Tagged
    1 Thread(s)
    Likes Given
    962
    Likes Received
    648
    I ave not tried the Skylift online, but it does give I problems sometimes. Most times it picks up a car I did not want to pick up.
    Reply With Quote  

  7. #17  
    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
    Quote Originally Posted by creighton View Post
    Haha what a coincidence, I actually wrote Skylift pickup code that works for online players' vehicles two days ago. You have to get control of their network id of course. I got rid of the get_closest_car method because I wasn't sure that it included other player's cars (just game ped/parked ones). Instead mine works by selecting the username manually, then it teleports them to me and attaches.

    I integrated this into my menu's online player loop with it's own option to enable/disable. It's already been tested as working.

    Code:
    if(DOES_CHAR_EXIST(players[index].ped)){
    	if(IS_CHAR_IN_ANY_CAR(pPlayer)){
    		if(IS_CHAR_IN_ANY_CAR(players[index].ped)){
    			float heading,px,py,pz,pheight;
    			float offset_y = -2.8, offset_z = 0.65;
    			int nvid,tick,driver;
    			GET_CAR_CHAR_IS_USING(players[index].ped,&pveh);
    			GET_CAR_CHAR_IS_USING(pPlayer,&paveh);
    			GET_DRIVER_OF_CAR(paveh,&driver);
    			if((driver == pPlayer) && (IS_CHAR_IN_MODEL(pPlayer, MODEL_SKYLIFT))){
    				GET_NETWORK_ID_FROM_VEHICLE(pveh,&nvid);
    				REQUEST_CONTROL_OF_NETWORK_ID(nvid);
    				while(!HAS_CONTROL_OF_NETWORK_ID(nvid)){
    					tick++;
    					REQUEST_CONTROL_OF_NETWORK_ID(nvid);
    					if(tick >= 200){
    						print("Error");
    						return;
    					}
    					WAIT(0);
    				}
    				if(!IS_CAR_ATTACHED(pveh)){
    					pheight = GET_HEIGHT_OF_VEHICLE(pveh,px,py,pz,false,true);
    					if (IS_BIG_VEHICLE(pveh)){
    						offset_y = -3.5;
    						offset_z = 0.90;
    					}
    					GET_CAR_HEADING(paveh,&heading);
    					GET_CHAR_COORDINATES(pPlayer,&x,&y,&z);
    					SET_CAR_HEADING(pveh,heading);
    					teleport_char(players[index].ped,x,y,z);
    					FREEZE_CAR_POSITION(pveh,true);
    					ATTACH_CAR_TO_CAR(pveh,paveh,0,0.0,offset_y,pheight-offset_z,0.0,0.0,0.0);
    					LOCK_CAR_DOORS(paveh,4);
    					LOCK_CAR_DOORS(pveh,4);
    					print_long("Vehicle attached to magnet.");
    					return;
    				}
    				else if(IS_CAR_ATTACHED(pveh)){
    					LOCK_CAR_DOORS(paveh,1);
    					LOCK_CAR_DOORS(pveh,1);
    					FREEZE_CAR_POSITION(pveh,false);
    					DETACH_CAR(pveh);
    					print("Vehicle detached from magnet.");
    					return;
    				}
    			}
    			else print("You must driving a Skylift.");
    		}
    		else print("Player is not in a vehicle.");
    	}
    	else print("You are not in a Skylift.");
    }
    Obvious thanks here goes to Three-Socks and EmmanuelU.

    Edit: And for the record, someone attached me to their Skylift something like three months ago in a multiplayer game. They had all kinds of 'advanced' stuff for that time, including some things I still have yet to see or hear about. Wouldn't tell me what menu they were using other than it was private.
    Skylift for online players has been available in some of the "premium menus" for a long time. I have seen how they work through the menu selecting the players name and so on. This quite simply picks up the closest players car. Saves all the messing about with menus!
    Reply With Quote  

  8. #18  
    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
    Quote Originally Posted by nativesith View Post
    I ave not tried the Skylift online, but it does give I problems sometimes. Most times it picks up a car I did not want to pick up.
    I think it will not get players cars. this one is pretty good at picking up the car you want, but some times if there is more than one car in range it will pick them all up. I could lower the distance that it will pick up cars, but that would make it a lot harder to pick up cars at all.
    Reply With Quote  

  9. #19  
    cp619's Avatar
    cp619 is offline Member
    Join Date
    Jul 2012
    Location
    SoCal
    Posts
    96
    Downloads
    10
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    76
    Likes Received
    24
    It's pretty funny when it grabs all the cars in the area. Everybody is like... what the heck? hehe
    Reply With Quote  

  10. #20  
    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
    Quote Originally Posted by cp619 View Post
    It's pretty funny when it grabs all the cars in the area. Everybody is like... what the heck? hehe
    I have one in my menu that just picks up every car in the game. Thats pretty funny, but would get extremely annoying for other players if it were abused.
    Reply With Quote  

Page 2 of 5 FirstFirst 1 2 3 4 ... 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
  •