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 4
Category: CoD4 Scripting
Scripting and coding with Call of Duty 4.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername, novemberdobby
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: Moving players to other teams on command.
exsolvedh3
General Member
Since: Jan 23, 2008
Posts: 18
Last: Jul 9, 2008
[view latest posts]
Level 1
Category: CoD4 Scripting
Posted: Wednesday, Apr. 9, 2008 10:00 pm
Hey

Here's what I have:

Quote:
_infectLifeMath()
{
if( self.pers["team"] == "allies" && self.pers["deaths"] > 0 )
{
//Make em move to axis
}
}


Do any of you know what I have to replace "//Make em move to axis" with to forcefully move the player to the axis team, and preferably not allow them to return to Allies until a new game has started (which I am thinking the self.pers["deaths"] > 0 will do the trick?)

Thank you all very much!
~eXsolvedh3
Share |
novemberdobby
General Member
Since: Sep 17, 2006
Posts: 1965
Last: Oct 13, 2013
[view latest posts]
Level 8
Forum Moderator
Category: CoD4 Scripting
Posted: Wednesday, Apr. 9, 2008 10:06 pm
Try:

self maps\mp\gametypes\_globallogic::menuaxis();

it might work [lol]
Share |
exsolvedh3
General Member
Since: Jan 23, 2008
Posts: 18
Last: Jul 9, 2008
[view latest posts]
Level 1
Category: CoD4 Scripting
Posted: Wednesday, Apr. 9, 2008 11:31 pm
oooo [casanova] !

That definitely worked, thank you. A little buggy, but its a start... Got anything else up your sleeves ? (got xfire?)

Also, is there a function or code snippet anyone has that can produce the text that objectives are shown in, know what I mean? The text that appears letter by letter, like a type writer, and has the cool effects on it like a background shadow, etc.

Thank you! [jumping]
Share |
novemberdobby
General Member
Since: Sep 17, 2006
Posts: 1965
Last: Oct 13, 2013
[view latest posts]
Level 8
Forum Moderator
Category: CoD4 Scripting
Posted: Thursday, Apr. 10, 2008 08:10 am
I'll be on xfire when I get back from school: novemberdobby (long day today [sad])

edited on Apr. 10, 2008 04:11 am by NovemberDobby
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty 4 : CoD4 Scripting

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

»