Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds

Members Online

»
0 Active | 7 Guests
Online:

LATEST FORUM THREADS

»
warfare
CoD4 Map + Mod Releases
Voting menu on maps
CoD+UO General
Hauling 911
CoDBO3 General

Forums

»

Welcome to the MODSonline.com forums. Looking for Frequently Asked Questions? Check out our FAQs section or search it out using the SEARCH link below. If you are new here, you may want to check out our rules and this great user's guide to the forums and the website.
For more mapping and modding information, see our Wiki: MODSonWiki.com

Jump To:
Forum: All Forums : Call of Duty 2
Category: CoD2 MP Mapping
CoD 2 mapping and level design.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked
Page
Previous Page
subscribe
Author Topic: teleport
The_Caretaker
General Member
Since: Jun 8, 2004
Posts: 11625
Last: Jul 7, 2009
[view latest posts]
Level 10
Category: CoD2 MP Mapping
Posted: Friday, Aug. 31, 2007 03:17 pm
the first lines in your .gsc file should be

main()
{
maps\mp\_load:main();

fix that, and your error should be fixed.
Share |
navysealsniper
General Member
Since: Jul 27, 2007
Posts: 68
Last: May 18, 2008
[view latest posts]
Level 3
Category: CoD2 MP Mapping
Posted: Friday, Aug. 31, 2007 06:50 pm
ok ty it did fix it so do you know why my teleport is like that.... was i suppost to make one of the portals a trigger texture? could that be why
Share |
The_Caretaker
General Member
Since: Jun 8, 2004
Posts: 11625
Last: Jul 7, 2009
[view latest posts]
Level 10
Category: CoD2 MP Mapping
Posted: Friday, Aug. 31, 2007 07:16 pm
Well.. I don't really understand your "teleport" question... because there is no "teleport" brush...

Try posting a bigger picture, because I can't see a thing on those.
Share |
navysealsniper
General Member
Since: Jul 27, 2007
Posts: 68
Last: May 18, 2008
[view latest posts]
Level 3
Category: CoD2 MP Mapping
Posted: Saturday, Sep. 1, 2007 01:26 am
ok all it is , is that i made a teleport foloing the tut. when i try to make another brush, you know the red like that connects the teleport, the red line goes to the new brush instead of the teleport portal
Share |
Sevenz
General Member
Since: Apr 24, 2006
Posts: 2390
Last: May 10, 2013
[view latest posts]
Level 8
Category: CoD2 MP Mapping
Posted: Saturday, Sep. 1, 2007 01:51 am
did you deselect everything before making a new brush (ESC)?

btw: put your code into a [ code]CodeBox[ /code] (without spaces)
Share |
ahoji
General Member
Since: May 16, 2006
Posts: 74
Last: Jun 27, 2008
[view latest posts]
Level 3
Category: CoD2 MP Mapping
Posted: Saturday, Sep. 1, 2007 05:53 pm
bad syntax = u have sth wrong in your scripr (usualy forget ; or more { } than needed)

but your script is all bad

Code:

main() 
{
maps\mp\_load:main();
setExpFog(0.0001, 0.55, 0.6, 0.55, 0);
// setCullFog(0, 16500, 0.55, 0.6, 0.55, 0);
//ambientPlay("ambient_france");

game["allies"] = "american";
game["axis"] = "german";
game["attackers"] = "allies";
game["defenders"] = "axis";
game["american_soldiertype"] = "normandy";
game["german_soldiertype"] = "normandy";

setCvar("r_glowbloomintensity0", ".25");
setCvar("r_glowbloomintensity1", ".25");
setCvar("r_glowskybleedintensity0",".3");

level.rasta_cod2_rain = loadfx ("fx/misc/snow_light.efx");
thread rasta_cod2_rain();

//calling all trigs named enter - your transporters
  entTransporter = getentarray("enter","targetname");
  if(isdefined(entTransporter))
  {
  for(lp=0;lp < entTransporter.size;lp++)
  entTransporter[lp] thread Transporter();
  }
}

//rasta's script - check if u pasted it correct
rasta_cod2_rain()
{
zufall = RandomInt(100);

while(1)
{
players = getentarray("player", "classname");

if(players.size > 0)
{
max_nodes = 20;
max_nodes_per_player = max_nodes/players.size;

for(ii = 0; ii < max_nodes_per_player; i++)
{
for(i = 0; i < players.size; i++)
{
player = players;

if(isAlive(player))
{
x= 350-randomfloat(700);
y= 350-randomfloat(700);

pos = player.origin +(x,y,200) ;
trace = bulletTrace(pos,pos +(0,0,-250), true, undefined);

if(trace["fraction"] != 1) playfx(level.rasta_cod2_rain,trace["position"]);
wait 0.05;
}
}
}
}

wait 0.05;
}
}

//your transporter script
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);
}
}


If bad correct me someone
Share |
navysealsniper
General Member
Since: Jul 27, 2007
Posts: 68
Last: May 18, 2008
[view latest posts]
Level 3
Category: CoD2 MP Mapping
Posted: Sunday, Sep. 2, 2007 02:23 am
aj is that all my cod thats fixed??
Share |
ahoji
General Member
Since: May 16, 2006
Posts: 74
Last: Jun 27, 2008
[view latest posts]
Level 3
Category: CoD2 MP Mapping
Posted: Sunday, Sep. 2, 2007 04:42 pm
specify more - i can't understand what u mean

*and also check if u have correctly named triggers and origins on your map (all triggers named -> targetname - enter and targeting to correct origin -> target - [origin targetname]
Share |
Restricted Access Topic is Locked
Page
Previous Page
subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 MP Mapping

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»