Have questions about CoD4 mapping that aren't covered in the tutorials section? Post here!
	Moderator: Core Staff
			
		
		
			- 
				
																			
								xScreamz								  
			 
						- CJ Wannabe

 			
		- Posts: 4
 		- Joined: May 2nd, 2010, 10:49 pm
 		
		
						
						
		
		
						
						
													
							
						
									
						Post
					
								by xScreamz » May 2nd, 2010, 11:02 pm
			
			
			
			
			Well ive recently been trying to make a teleporter in cod4 radiant. I have been following the tutorial from Modsonline.com and i have done everything correctly
so far. But i get a problem. Here is what my .gsc file looks like for my map....
Code: Select all
main()
{
	maps\mp\teleport::main();
	//maps\mp\mp_crash_fx::main();
	//maps\createart\mp_crash_art::main();
	maps\mp\_load::main();
	
	maps\mp\_compass::setupMiniMap("compass_map_mp_scream");
	game["allies"] = "marines";
	game["axis"] = "opfor";
	game["attackers"] = "allies";
	game["defenders"] = "axis";
	game["allies_soldiertype"] = "desert";
	game["axis_soldiertype"] = "desert";
	
	setdvar( "r_specularcolorscale", "1" );
	
	setdvar("compassmaxrange","1600");
}
 
And here is what is in my mp_teleport.gsc
Code: Select all
 main()
{
  entTransporter = getentarray("enter","targetname");
  if(isdefined(entTransporter))
  {
    for(lp=0;lp < entTransporter.size; lp++)
      entTransporter[lp] thread Transporter();
  }
}
Transporter()
{
  while(true)
  {
    self waittill("trigger",other);
    entTarget = getent(self.target, "targetname");
    wait(0.10);
    other setorigin(entTarget.origin);
    other setplayerangles(entTarget.angles);
    //iprintlnbold ("You have been teleported !!!");
    wait(0.10);
  }
}
 
And here what my .csv file looks like.
And when i try to build my fast file....I get this
And Finally, when i actually test my map, i get this:
Can anyone help?!
 
			
			
									
									
						 
		 
				
		
		 
	 
	
				
		
		
			- 
				
																			
								Pedsdude								  
			 
						- Site Admin

 			
		- Posts: 15914
 		- Joined: October 15th, 2004, 7:18 pm
 		
		
											- Location: UK
 
							
						
		
		
						
						
													
							
						
									
						Post
					
								by Pedsdude » May 2nd, 2010, 11:16 pm
			
			
			
			
			You've got 'teleportenter.gsc' in your csv file, shouldn't that be 'mp_teleport.gsc'?
			
			
									
									
						 
		 
				
		
		 
	 
	
				
		
		
			- 
				
																			
								xScreamz								  
			 
						- CJ Wannabe

 			
		- Posts: 4
 		- Joined: May 2nd, 2010, 10:49 pm
 		
		
						
						
		
		
						
						
													
							
						
									
						Post
					
								by xScreamz » May 3rd, 2010, 12:34 am
			
			
			
			
			Pedsdude wrote:You've got 'teleportenter.gsc' in your csv file, shouldn't that be 'mp_teleport.gsc'?
Well I did that and I still get these two errors.

 
			
			
									
									
						 
		 
				
		
		 
	 
	
				
		
		
			- 
				
																			
								Pedsdude								  
			 
						- Site Admin

 			
		- Posts: 15914
 		- Joined: October 15th, 2004, 7:18 pm
 		
		
											- Location: UK
 
							
						
		
		
						
						
													
							
						
									
						Post
					
								by Pedsdude » May 3rd, 2010, 1:31 am
			
			
			
			
			Hmm, shouldn't you have "maps\mp\mp_teleport::main();" instead of "maps\mp\teleport::main();"?
			
			
									
									
						 
		 
				
		
		 
	 
	
				
		
		
			- 
				
																			
								xScreamz								  
			 
						- CJ Wannabe

 			
		- Posts: 4
 		- Joined: May 2nd, 2010, 10:49 pm
 		
		
						
						
		
		
						
						
													
							
						
									
						Post
					
								by xScreamz » May 3rd, 2010, 2:10 am
			
			
			
			
			Once again, ANOTHER error >.<

 
			
			
									
									
						 
		 
				
		
		 
	 
	
				
		
		
			- 
				
																			
								Pedsdude								  
			 
						- Site Admin

 			
		- Posts: 15914
 		- Joined: October 15th, 2004, 7:18 pm
 		
		
											- Location: UK
 
							
						
		
		
						
						
													
							
						
									
						Post
					
								by Pedsdude » May 3rd, 2010, 2:59 am
			
			
			
			
			Tbh stick it all in one .gsc file to avoid this happening.
Code: Select all
main()
{
   //maps\mp\mp_crash_fx::main();
   //maps\createart\mp_crash_art::main();
   maps\mp\_load::main();
   
   maps\mp\_compass::setupMiniMap("compass_map_mp_scream");
   game["allies"] = "marines";
   game["axis"] = "opfor";
   game["attackers"] = "allies";
   game["defenders"] = "axis";
   game["allies_soldiertype"] = "desert";
   game["axis_soldiertype"] = "desert";
   
   setdvar( "r_specularcolorscale", "1" );
   setdvar("compassmaxrange","1600");
  entTransporter = getentarray("enter","targetname");
  if(isdefined(entTransporter))
  {
    for(lp=0;lp < entTransporter.size; lp++)
      entTransporter[lp] thread Transporter();
  }
}
Transporter()
{
  while(true)
  {
    self waittill("trigger",other);
    entTarget = getent(self.target, "targetname");
    wait(0.10);
    other setorigin(entTarget.origin);
    other setplayerangles(entTarget.angles);
    //iprintlnbold ("You have been teleported !!!");
    wait(0.10);
  }
}
mp_scream.gsc
(edit csv accordingly)
 
			
			
									
									
						 
		 
				
		
		 
	 
	
				
		
		
			- 
				
																			
								xScreamz								  
			 
						- CJ Wannabe

 			
		- Posts: 4
 		- Joined: May 2nd, 2010, 10:49 pm
 		
		
						
						
		
		
						
						
													
							
						
									
						Post
					
								by xScreamz » May 3rd, 2010, 3:19 am
			
			
			
			
			Well...that worked perfectly. Cept' for one thing. The actual teleport didn't work! =/
			
			
									
									
						 
		 
				
		
		 
	 
	
				
		
		
			- 
				
								Rezil								  
			
 
						- Core Staff

 			
		- Posts: 2030
 		- Joined: July 24th, 2006, 11:21 am
 		
		
											- Location: Cramped in a small cubicle/making another jump map
 
							
						
		
		
						
						
													
							
						
									
						Post
					
								by Rezil » May 3rd, 2010, 12:46 pm
			
			
			
			
			The hell is wrong with this guy seriously? 

 
			
			
									
									Drofder2004: Drofder's rules for reviewing a map
[...]
#5 If your name is Rezil, minimum 5/5.
---
<LT>YosemiteSam[NL]:
I heard somewhere that the best way to start is juggling 2 balls with one hand, so you will get a feel for it.