TDM spawn logic problem

Have questions about CoD4 mapping that aren't covered in the tutorials section? Post here!

Moderator: Core Staff

Post Reply
User avatar
Gagarin
CJ Worshipper
CJ Worshipper
Posts: 256
Joined: November 2nd, 2005, 10:43 am
Location: Moscow, Russian Federation

TDM spawn logic problem

Post by Gagarin » February 5th, 2008, 10:55 pm

guys, I'm created aim map, but i have tdm spawn bug. So, i must create 3 tdm spawns (axis,alies and general tdm spawn). I'm create spawn so:

Image

3 alies, 3 axis and 2 general

But sometimes axis respawn behind alies. And syn

What's wrong ? How I must plased my spawns ?
Image
Image
Image

User avatar
Drofder2004
Core Staff
Core Staff
Posts: 13315
Joined: April 13th, 2005, 8:22 pm
Location: UK, London

Post by Drofder2004 » February 6th, 2008, 12:51 am

Not much you can do to be honest, except use a mod...
Image
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010

User avatar
Gagarin
CJ Worshipper
CJ Worshipper
Posts: 256
Joined: November 2nd, 2005, 10:43 am
Location: Moscow, Russian Federation

Post by Gagarin » February 6th, 2008, 8:52 am

which mod ? We are using PAM and have this bug...


Hm, so anyway, I can't fix this error ?
Image
Image
Image

User avatar
Drofder2004
Core Staff
Core Staff
Posts: 13315
Joined: April 13th, 2005, 8:22 pm
Location: UK, London

Post by Drofder2004 » February 6th, 2008, 5:24 pm

Gagarin wrote:which mod ? We are using PAM and have this bug...


Hm, so anyway, I can't fix this error ?
Thats the problem, its not an error, its logic. The game has to determine where it thinks the most suitable place for spawning a player is, often you will find it will spawn players away from where people are dying, and if the allies move far from one of the spawns, axis will spawn there instead.

You could code it I suppose...

Put a trigger_multiple on the floor,

Code: Select all

while(1)
{
   trig waittill("trigger", user);
   if(user.pers["team"] == "allies")
      user setOrigin(org.origin);

   wait 0.5;
Put 1 trigger on each side of the map, then place 1 script_origin on each side.
Now make two loops, 1 will send allies in the axis area back to an script_origin and vice versa.
Image
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010

User avatar
Gagarin
CJ Worshipper
CJ Worshipper
Posts: 256
Joined: November 2nd, 2005, 10:43 am
Location: Moscow, Russian Federation

Post by Gagarin » February 7th, 2008, 4:15 pm

thx, I create triggers + increased distance between bases
Image
Image
Image

mattfish234
CJ Wannabe
CJ Wannabe
Posts: 3
Joined: May 8th, 2008, 8:33 pm

Re: TDM spawn logic problem

Post by mattfish234 » May 10th, 2008, 6:33 pm

I think its because of the general spawns either side, Try making only 1 not sure tho :|

User avatar
Drofder2004
Core Staff
Core Staff
Posts: 13315
Joined: April 13th, 2005, 8:22 pm
Location: UK, London

Re: TDM spawn logic problem

Post by Drofder2004 » May 11th, 2008, 2:58 am

Oh noes, he just played the thread necromancy card, what shall I do!!!

Image
Image
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests