Player teams & 3D messages

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

Moderator: Core Staff

Post Reply
exsolved
CJ Wannabe
CJ Wannabe
Posts: 1
Joined: April 9th, 2008, 10:18 pm

Player teams & 3D messages

Post by exsolved » April 9th, 2008, 10:33 pm

Hey CodJumper.com

I require a little help with scripting here, I am modifying war.gsc to create a new game type, and would like to know the command to call to force a player to another/opposite team. It's currently laid out like so:

Code: Select all

_infectLifeMath()
{
if( self.pers["team"] == "allies" && self.pers["deaths"] > 0 )
{
//Make em move to axis
}
}
And I need to replace "//Make em move to axis" with the code or function to force the player to the Axis team.

Other than that, can any of you help me... I'm trying to create text to appear on screen. However, I don't want the normal 2d text you can get with IPrintLnBold, but that cool looking text that appears letter by letter, and disappears in the same way.

Thank you all!
~ eXsolved

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

Re: Player teams & 3D messages

Post by Drofder2004 » April 10th, 2008, 3:15 am

the info you seek, should be found in the IW gscs.

Take a look at the menus.gsc
In there, look for where the option to switch team is called, once you have found that, you will find the code ;)
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 0 guests