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

Members Online

»
0 Active | 11 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: Enhanced Quickmenu
liltc64
General Member
Since: Feb 12, 2007
Posts: 906
Last: Oct 22, 2012
[view latest posts]
Level 7
Im a fan of MODSonair
Category: CoD2 Scripting
Posted: Monday, Nov. 2, 2009 07:07 pm
its realy easy to allow a player to reset there own score... and the code u posted before is correct now u have to make use of it. so in ur quick messages say u wana press V4 and it resets the score. so should have somehting like this in ur wm_quickmessage.menu

Code:
		itemDef
		{
			name			"window"
			visible			1
			rect			16 52 0 0 // i didnt do the rect for you.
			origin			ORIGIN_QUICKMESSAGEWINDOW
			forecolor		1 1 1 1
			textfont		UI_FONT_NORMAL
			textscale		.24
			textaligny		8
			text			"Reset Score."
			decoration
		}
		execKey "4" { scriptMenuResponse "resetscore"; close quickmessage; }


now thats done. u need to have resetscore do something. now hear is where u go in the _menus.gsc add this bit of code under the endgame response (idk if endgame response is in the 1.3 _menus.gsc) so it should look like this
Code:
		// reset score
		if(response == "resetscore")
		{
				self.score = 0;
				self.pers["score"] = 0;
				self.deaths = 0;
				self.pers["deaths"] = 0;
		}
		// end of reset score stuff
Share |
n3BuL
General Member
Since: Nov 10, 2008
Posts: 44
Last: Jul 2, 2010
[view latest posts]
Level 2
Category: CoD2 Scripting
Posted: Monday, Nov. 2, 2009 10:15 pm
wow! I finally got it working !

Thanks a lot [thumbs_up]
Share |
liltc64
General Member
Since: Feb 12, 2007
Posts: 906
Last: Oct 22, 2012
[view latest posts]
Level 7
Im a fan of MODSonair
Category: CoD2 Scripting
Posted: Monday, Nov. 2, 2009 10:18 pm
no problem glad i could help
[pimp]
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

»