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

Members Online

»
0 Active | 6 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 Scripting
Scripting and coding with Call of Duty 2.
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: scoreboard
Grorigan
General Member
Since: Mar 26, 2011
Posts: 66
Last: Jun 23, 2013
[view latest posts]
Level 3
Category: CoD2 Scripting
Posted: Saturday, Apr. 23, 2011 03:38 pm
serthy writes...
Quote:
yh its a good question

and i have another one:
which settings i have to do for a custom statusicon? (I mean the image)

thanks


* make a 16x16 px image, with its material file (example : "MyIcon.iwi" and "MyIcon").

* add the image in the \images folder, and its material in \materials folder.

* in the "CodeCallback_StartGameType()" function, in the "_callbackupsetup.gsc" file, add :
Code:
level.MyHeadIcon = "MyIcon";
precacheStatusIcon(level.MyHeadIcon);


* in the "CodeCallback_PlayerConnect()" function, in the "_callbackupsetup.gsc" file, add (maybe you'll want adding also a guid test) :
Code:
self.statusicon = level.MyHeadIcon;


If you want to have this statusicon even in spectator mode, you have to add this in "menuSpectator()" function, in all "gametype".gsc (sd.gsc, tdm.gsc, etc):
Code:
self.statusicon = level.MyHeadIcon;


That's all [thumbs_up]

edited on Apr. 23, 2011 11:55 am by Grorigan
Share |
konrad12345678
General Member
Since: Aug 19, 2011
Posts: 9
Last: Feb 12, 2012
[view latest posts]
Level 0
Category: CoD2 Scripting
Posted: Friday, Dec. 30, 2011 03:18 pm
how or where i can change "Deaths" on "Rank" in TAB. Thanks a lot.
Share |
serthy
General Member
Since: Sep 8, 2010
Posts: 482
Last: Jun 28, 2013
[view latest posts]
Level 5
Im a fan of MODSonair
Category: CoD2 Scripting
Posted: Friday, Dec. 30, 2011 04:36 pm
only 1 way to do this:
-in the localizedstrings folder you have to change "Death" to "Rank"
-you have to set the player.rank to player.deaths (scoreboard only shows player.score & player.deaths)
Share |
IzNoGoD
General Member
Since: Nov 29, 2008
Posts: 694
Last: Nov 10, 2012
[view latest posts]
Level 6
Category: CoD2 Scripting
Posted: Friday, Dec. 30, 2011 05:26 pm
nwestenberg writes...
Quote:
Sorry for asking in your thread, hope u dont mind, but how can you enable chat when the scoreboard is shown up. Because when the scoreboards shows up, it looks like you have the spectatorpermissions, but in spec mode, you can still talk/chat.


Answering an old question: You cant. Normally, menus are opened by buttonpresses: this enables the chat, as normally you cannot chat when a menu is forced open for you.

At the end of the round, the menu (the scoreboard) is forced upon you by/opened from script, thus disabling the ability to chat while it is open. You might want to experiment with a menu in between, which opens the scoreboard onopen, and replacing the original scoreboard menu with said menu.
Share |
konrad12345678
General Member
Since: Aug 19, 2011
Posts: 9
Last: Feb 12, 2012
[view latest posts]
Level 0
Category: CoD2 Scripting
Posted: Saturday, Dec. 31, 2011 10:43 am
Ok, and Localized changed (Deaths to Rank). Now where i can find player.rank, or player.deaths?! I was looking everywhere, but nothing.

edited on Dec. 31, 2011 03:44 am by konrad12345678
Share |
IzNoGoD
General Member
Since: Nov 29, 2008
Posts: 694
Last: Nov 10, 2012
[view latest posts]
Level 6
Category: CoD2 Scripting
Posted: Saturday, Dec. 31, 2011 12:53 pm
konrad12345678 writes...
Quote:
Ok, and Localized changed (Deaths to Rank). Now where i can find player.rank, or player.deaths?! I was looking everywhere, but nothing.

edited on Dec. 31, 2011 03:44 am by konrad12345678



... the rank is not defined by default. The deaths are, they are in dm/tdm/randomgametype.gsc file in maps\mp\gametypes\ (iw07 if patch 1.0, iw15 if patch 1.2/1.3)
Share |
Restricted Access Topic is Locked
Page
Previous Page
subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 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

»