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

Members Online

»
0 Active | 19 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
Category: CoDUO Mapping
CoD United Offensive mapping and level design.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked
Page
Next Page
subscribe
Author Topic: Found a rifle mod...trying to edit it now.....
Wayne16
General Member
Since: Apr 30, 2005
Posts: 112
Last: Nov 27, 2008
[view latest posts]
Level 4
Im a fan of MODSonair
Category: CoDUO Mapping
Posted: Wednesday, Jul. 23, 2008 02:50 am
Hey everyone i have found a really nice bolt rifle mod.

On the selection menu for all teams German, American, Russian, and British it shows just three rifles. The Kar98, nagant, and the Enfield....

So my question is. I would like to add the Russian Sniper, German Sniper, and the American Sniper. I have done everything i need to in the scriptmenus folder for all teams. But when i go into game, select a team the selection menu goes blank, then when i hit esc to go to it to select something it takes me to the main menu.....how can i fix this so it shows the weapons and i can get them to work right thanks wayne...
Share |
general99
General Member
Since: Oct 31, 2004
Posts: 323
Last: Dec 18, 2013
[view latest posts]
Level 5
Category: CoDUO Mapping
Posted: Wednesday, Jul. 23, 2008 05:47 am
Sounds like you've missed a curly bracket or semicolon somewhere.

You will also have to edit _teams.gsc to precache the extra weapons for each nationality.
Share |
Wayne16
General Member
Since: Apr 30, 2005
Posts: 112
Last: Nov 27, 2008
[view latest posts]
Level 4
Im a fan of MODSonair
Category: CoDUO Mapping
Posted: Wednesday, Jul. 23, 2008 04:18 pm
This is the weapon_german.menu that i re-did for the mod....

This is just the part with the weapons and below....nothing above was changed..

// MENU CHOICES
itemDef
{
name "button_nagant"
visible 1
rect WEAPON_BUTTON_RECT_FIRST
origin ORIGIN_MENUWINDOW
forecolor 1 1 1 1
type ITEM_TYPE_BUTTON
text "@MPMENU_1_MOSINNAGANT"
textfont UI_FONT_NORMAL
textscale .24
textalignx 8
textaligny 16
cvartest "ui_allow_nagant"
hideCvar { "0" }
action
{
play "mouse_click";
scriptMenuResponse "mosin_nagant_mp";
close weapon_german;
}
onFocus
{
hide kar98k_info;
hide enfield_info;
hide kar98ksniper_info;
hide springfield_info;
hide nagantsniper_info;
play "mouse_over";
show nagant_info;
show weapon_propertiestext;
}
}
execKey "1" { play "mouse_click"; scriptMenuResponse "mosin_nagant_mp"; close weapon_german }

itemDef
{
name "button_kar98k"
visible 1
rect WEAPON_BUTTON_RECT_SECOND
origin ORIGIN_MENUWINDOW
forecolor 1 1 1 1
type ITEM_TYPE_BUTTON
text "@2. Kar98K"
textfont UI_FONT_NORMAL
textscale .24
textalignx 8
textaligny 16
cvartest "ui_allow_kar98k"
hideCvar { "0" }
action
{
play "mouse_click";
scriptMenuResponse "kar98k_mp";
close weapon_german;
}
onFocus
{
hide nagant_info;
hide enfield_info;
hide kar98ksniper_info;
hide springfield_info;
hide nagantsniper_info;
play "mouse_over";
show kar98k_info;
show weapon_propertiestext;
}
}
execKey "2" { play "mouse_click"; scriptMenuResponse "kar98k_mp"; close weapon_german }

itemDef
{
name "button_enfield"
visible 1
rect WEAPON_BUTTON_RECT_THIRD
origin ORIGIN_MENUWINDOW
forecolor 1 1 1 1
type ITEM_TYPE_BUTTON
text "@3. Lee Enfield"
textfont UI_FONT_NORMAL
textscale .24
textalignx 8
textaligny 16
cvartest "ui_allow_enfield"
hideCvar { "0" }
action
{
play "mouse_click";
scriptMenuResponse "enfield_mp";
close weapon_german;
}
onFocus
{
hide nagant_info;
hide kar98k_info;
hide kar98ksniper_info;
hide springfield_info;
hide nagantsniper_info;
play "mouse_over";
show enfield_info;
show weapon_propertiestext;
}
}
execKey "3" { play "mouse_click"; scriptMenuResponse "enfield_mp"; close weapon_german }

itemDef
{
name "button_kar98ksniper"
visible 1
rect WEAPON_BUTTON_RECT_FIFTH
origin ORIGIN_MENUWINDOW
forecolor 1 1 1 1
type ITEM_TYPE_BUTTON
text "@GMI_MPMENU_5_SCOPED_KAR98K"
textfont UI_FONT_NORMAL
textscale .24
textalignx 8
textaligny 16
cvartest "ui_allow_kar98ksniper"
hideCvar { "0" }
action
{
play "mouse_click";
scriptMenuResponse "kar98k_sniper_mp";
close weapon_german;
}
onFocus
{
hide nagant_info;
hide kar98k_info;
hide enfield_info;
hide springfield_info;
hide nagantsniper_info;
play "mouse_over";
show kar98ksniper_info;
show weapon_propertiestext;
}
}
execKey "4" { play "mouse_click"; scriptMenuResponse "kar98k_sniper_mp"; close weapon_german }

itemDef
{
name "button_springfield"
visible 1
rect WEAPON_BUTTON_RECT_FIFTH
origin ORIGIN_MENUWINDOW
forecolor 1 1 1 1
type ITEM_TYPE_BUTTON
text "@MPMENU_5_SPRINGFIELD"
textfont UI_FONT_NORMAL
textscale .24
textalignx 8
textaligny 16
cvartest "ui_allow_springfield"
hideCvar { "0" }
action
{
play "mouse_click";
scriptMenuResponse "springfield_mp";
close weapon_american;
}
onFocus
{
hide nagant_info;
hide kar98k_info;
hide enfield_info;
hide kar98ksniper_info;
hide nagantsniper_info;
play "mouse_over";
show springfield_info;
show weapon_propertiestext;
}
}
execKey "5" { play "mouse_click"; scriptMenuResponse "springfield_mp"; close weapon_american }

itemDef
{
name "button_nagantsniper"
visible 1
rect WEAPON_BUTTON_RECT_FOURTH
origin ORIGIN_MENUWINDOW
forecolor 1 1 1 1
type ITEM_TYPE_BUTTON
text "@GMI_MPMENU_4_SCOPED_MOSINNAGANT"
textfont UI_FONT_NORMAL
textscale .24
textalignx 8
textaligny 16
cvartest "ui_allow_nagantsniper"
hideCvar { "0" }
action
{
play "mouse_click";
scriptMenuResponse "mosin_nagant_sniper_mp";
close weapon_russian;
}
onFocus
{
hide nagant_info;
hide kar98k_info;
hide enfield_info;
hide kar98ksniper_info;
hide springfield_info;
play "mouse_over";
show nagantsniper_info;
show weapon_propertiestext;
}
}
execKey "6" { play "mouse_click"; scriptMenuResponse "mosin_nagant_sniper_mp"; close weapon_russian }

// WEAPON IMAGES
itemDef
{
name "nagant_info"
visible 0
rect 0 0 224 112
origin ORIGIN_WEAPONIMAGE
style WINDOW_STYLE_SHADER
background "ui_mp/assets/hud@nagant.tga"
decoration
}
itemDef
{
name "kar98k_info"
visible 0
rect 0 0 224 112
origin ORIGIN_WEAPONIMAGE
style WINDOW_STYLE_SHADER
background "ui_mp/assets/hud@kar98.tga"
decoration
}
itemDef
{
name "enfield_info"
visible 0
rect 0 -2 224 112
origin ORIGIN_WEAPONIMAGE
style WINDOW_STYLE_SHADER
background "ui_mp/assets/hud@enfield.tga"
decoration
}
itenDef
{
name "kar98ksniper_info"
visible 0
rect 0 0 224 112
origin ORIGIN_WEAPONIMAGE
style WINDOW_STYLE_SHADER
background "ui_mp/assets/hud@kar98scoped.tga"
decoration
}
itemDef
{
name "springfield_info"
visible 0
rect 0 4 224 112
origin ORIGIN_WEAPONIMAGE
style WINDOW_STYLE_SHADER
background "ui_mp/assets/hud@springfield.tga"
decoration
}
itemDef
{
name "nagantsniper_info"
visible 0
rect 0 0 224 112
origin ORIGIN_WEAPONIMAGE
style WINDOW_STYLE_SHADER
background "ui_mp/assets/hud@nagantscoped.tga"
decoration
}

// WEAPON DESCRIPTIONS
itemDef
{
name "kar98k_info"
visible 0
rect 0 0 224 64
origin ORIGIN_WEAPONTEXT
forecolor 1 1 1 1
autowrapped
text "@MPMENU_THE_KAR98K_IS_THE_STANDARD"
textfont UI_FONT_NORMAL
textscale .24
decoration
}
itemDef
{
name "enfield_info"
visible 0
rect 0 0 224 64
origin ORIGIN_WEAPONTEXT
forecolor 1 1 1 1
autowrapped
text "@MPMENU_THE_LEEENFIELD_RIFLE"
textfont UI_FONT_NORMAL
textscale .24
decoration
}
itemDef
{
name "nagant_info"
visible 0
rect 0 0 224 64
origin ORIGIN_WEAPONTEXT
forecolor 1 1 1 1
autowrapped
text "@MPMENU_THE_MOSINNAGANT_IS_A"
textfont UI_FONT_NORMAL
textscale .24
decoration
}
itenDef
{
name "kar98ksniper_info"
visible 0
rect 0 0 224 64
origin ORIGIN_WEAPONTEXT
forecolor 1 1 1 1
autowrapped
text "@MPMENU_THIS_KAR98K_VARIANT_USES"
textfont UI_FONT_NORMAL
textscale .24
decoration
}
itemDef
{
name "springfield_info"
visible 0
rect 0 0 224 64
origin ORIGIN_WEAPONTEXT
forecolor 1 1 1 1
autowrapped
text "@MPMENU_THIS_IS_A_SNIPER_RIFLE"
textfont UI_FONT_NORMAL
textscale .24
decoration
}
itemDef
{
name "nagantsniper_info"
visible 0
rect 0 0 224 64
origin ORIGIN_WEAPONTEXT
forecolor 1 1 1 1
autowrapped
text "@MPMENU_THE_SCOPED_MOSINNAGANT"
textfont UI_FONT_NORMAL
textscale .24
decoration
}

// WEAPON PROPERTIES
itemDef
{
name "weapon_propertiestext"
visible 0
origin ORIGIN_WEAPONPROPERTIESTEXT
forecolor 1 1 1 1
autowrapped
text "@MPMENU_ACCURACY_DAMAGE_MOBILITY"
textfont UI_FONT_NORMAL
textscale .24
decoration
}

itemDef
{
name "kar98k_info"
visible 0
rect 0 0 128 10
origin ORIGIN_WEAPONACCURACY
backcolor 1 1 1 .125
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "kar98k_info"
visible 0
rect 0 0 90 10
origin ORIGIN_WEAPONACCURACY
backcolor 1 1 1 1
style WINDOW_STYLE_FILLED
decoration
}

itemDef
{
name "kar98k_info"
visible 0
rect 0 0 128 10
origin ORIGIN_WEAPONDAMAGE
backcolor 1 1 1 .125
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "kar98k_info"
visible 0
rect 0 0 128 10
origin ORIGIN_WEAPONDAMAGE
backcolor 1 1 1 1
style WINDOW_STYLE_FILLED
decoration
}

itemDef
{
name "kar98k_info"
visible 0
rect 0 0 128 10
origin ORIGIN_WEAPONMOBILITY
backcolor 1 1 1 .125
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "kar98k_info"
visible 0
rect 0 0 114 10
origin ORIGIN_WEAPONMOBILITY
backcolor 1 1 1 1
style WINDOW_STYLE_FILLED
decoration
}

itemDef
{
name "enfield_info"
visible 0
rect 0 0 128 10
origin ORIGIN_WEAPONACCURACY
backcolor 1 1 1 .125
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "enfield_info"
visible 0
rect 0 0 90 10
origin ORIGIN_WEAPONACCURACY
backcolor 1 1 1 1
style WINDOW_STYLE_FILLED
decoration
}

itemDef
{
name "enfield_info"
visible 0
rect 0 0 128 10
origin ORIGIN_WEAPONDAMAGE
backcolor 1 1 1 .125
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "enfield_info"
visible 0
rect 0 0 128 10
origin ORIGIN_WEAPONDAMAGE
backcolor 1 1 1 1
style WINDOW_STYLE_FILLED
decoration
}

itemDef
{
name "enfield_info"
visible 0
rect 0 0 128 10
origin ORIGIN_WEAPONMOBILITY
backcolor 1 1 1 .125
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "enfield_info"
visible 0
rect 0 0 114 10
origin ORIGIN_WEAPONMOBILITY
backcolor 1 1 1 1
style WINDOW_STYLE_FILLED
decoration
}

itemDef
{
name "nagant_info"
visible 0
rect 0 0 128 10
origin ORIGIN_WEAPONACCURACY
backcolor 1 1 1 .125
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "nagant_info"
visible 0
rect 0 0 104 10
origin ORIGIN_WEAPONACCURACY
backcolor 1 1 1 1
style WINDOW_STYLE_FILLED
decoration
}

itemDef
{
name "nagant_info"
visible 0
rect 0 0 128 10
origin ORIGIN_WEAPONDAMAGE
backcolor 1 1 1 .125
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "nagant_info"
visible 0
rect 0 0 128 10
origin ORIGIN_WEAPONDAMAGE
backcolor 1 1 1 1
style WINDOW_STYLE_FILLED
decoration
}

itemDef
{
name "nagant_info"
visible 0
rect 0 0 128 10
origin ORIGIN_WEAPONMOBILITY
backcolor 1 1 1 .125
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "nagant_info"
visible 0
rect 0 0 114 10
origin ORIGIN_WEAPONMOBILITY
backcolor 1 1 1 1
style WINDOW_STYLE_FILLED
decoration
}

itenDef
{
name "kar98ksniper_info"
visible 0
rect 0 0 128 10
origin ORIGIN_WEAPONACCURACY
backcolor 1 1 1 .125
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "kar98ksniper_info"
visible 0
rect 0 0 128 10
origin ORIGIN_WEAPONACCURACY
backcolor 1 1 1 1
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "kar98ksniper_info"
visible 0
rect 0 0 128 10
origin ORIGIN_WEAPONDAMAGE
backcolor 1 1 1 .125
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "kar98ksniper_info"
visible 0
rect 0 0 128 10
origin ORIGIN_WEAPONDAMAGE
backcolor 1 1 1 1
style WINDOW_STYLE_FILLED
decoration
}

itemDef
{
name "kar98ksniper_info"
visible 0
rect 0 0 128 10
origin ORIGIN_WEAPONMOBILITY
backcolor 1 1 1 .125
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "kar98ksniper_info"
visible 0
rect 0 0 72 10
origin ORIGIN_WEAPONMOBILITY
backcolor 1 1 1 1
style WINDOW_STYLE_FILLED
decoration
}

itemDef
{
name "springfield_info"
visible 0
rect 0 0 128 10
origin ORIGIN_WEAPONACCURACY
backcolor 1 1 1 .125
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "springfield_info"
visible 0
rect 0 0 128 10
origin ORIGIN_WEAPONACCURACY
backcolor 1 1 1 1
style WINDOW_STYLE_FILLED
decoration
}

itemDef
{
name "springfield_info"
visible 0
rect 0 0 128 10
origin ORIGIN_WEAPONDAMAGE
backcolor 1 1 1 .125
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "springfield_info"
visible 0
rect 0 0 128 10
origin ORIGIN_WEAPONDAMAGE
backcolor 1 1 1 1
style WINDOW_STYLE_FILLED
decoration
}

itemDef
{
name "nagantsniper_info"
visible 0
rect 0 0 128 10
origin ORIGIN_WEAPONACCURACY
backcolor 1 1 1 .125
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "nagantsniper_info"
visible 0
rect 0 0 128 10
origin ORIGIN_WEAPONACCURACY
backcolor 1 1 1 1
style WINDOW_STYLE_FILLED
decoration
}

itemDef
{
name "nagantsniper_info"
visible 0
rect 0 0 128 10
origin ORIGIN_WEAPONDAMAGE
backcolor 1 1 1 .125
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "nagantsniper_info"
visible 0
rect 0 0 128 10
origin ORIGIN_WEAPONDAMAGE
backcolor 1 1 1 1
style WINDOW_STYLE_FILLED
decoration
}

itemDef
{
name "nagantsniper_info"
visible 0
rect 0 0 128 10
origin ORIGIN_WEAPONMOBILITY
backcolor 1 1 1 .125
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "nagantsniper_info"
visible 0
rect 0 0 72 10
origin ORIGIN_WEAPONMOBILITY
backcolor 1 1 1 1
style WINDOW_STYLE_FILLED
decoration
}

}
}
Share |
s4ntiago
General Member
Since: Dec 18, 2006
Posts: 151
Last: Feb 10, 2011
[view latest posts]
Level 4
Category: CoDUO Mapping
Posted: Wednesday, Jul. 23, 2008 04:58 pm
that looks right for the most part, but i didnt' check every bracket and stuff.

but if you look at the old mod, you will see other files that are included in the mod besides the scriptmenus. there should be a file called _teams like general was saying.

/maps/mp/gametypes/_teams.gsc (i think)

scroll through that file till you find this part. sorry i dont have a clean file. i'm working on my sisters computer with a downloaded mod i made.

Code:
	case "american":
		game["headicon_allies"] = "gfx/hud/headicon@american.tga";
		//precacheShader("gfx/hud/hud@mpflag_american.tga");
		precacheItem("fraggrenade_mp");
		precacheItem("smokegrenade_mp");
		precacheItem("flashgrenade_mp");
		precacheItem("colt_mp");
		precacheItem("m1carbine_mp");
		precacheItem("m1garand_mp");
		precacheItem("thompson_mp");
		precacheItem("bar_mp");
		precacheItem("springfield_mp");
		precacheItem("mg30cal_mp");
		precacheItem("binoculars_mp");
		precacheItem("binoculars_artillery_mp");
		precacheItem("satchelcharge_mp");
		precacheItem("mosin_nagant_mp");
		precacheItem("kar98k_mp");
		break;



if you notice you have to precache all the weapons you want the specified team to be able to use. so you need to add the snipers to the precache list for the americans, russians, british and germans. just copy and paste ones you need.


further down through _teams.gsc you find this part.

Code:
restrict(response)
{
	if(self.pers["team"] == "allies")
	{
		switch(game["allies"])		
		{
		case "american":
			switch(response)		
			{
			case "m1carbine_mp":
				if(!getcvar("scr_allow_m1carbine"))
				{
					self iprintln(&"MPSCRIPT_M1A1_CARBINE_IS_A_RESTRICTED");
					response = "restricted";
				}
				break;
				
			case "m1garand_mp":
				if(!getcvar("scr_allow_m1garand"))
				{
					self iprintln(&"MPSCRIPT_M1_GARAND_IS_A_RESTRICTED");
					response = "restricted";
				}
				break;
				
			case "thompson_mp":
				if(!getcvar("scr_allow_thompson"))
				{
					self iprintln(&"MPSCRIPT_THOMPSON_IS_A_RESTRICTED");
					response = "restricted";
				}
				break;
				
			case "bar_mp":
				if(!getcvar("scr_allow_bar"))
				{
					self iprintln(&"MPSCRIPT_BAR_IS_A_RESTRICTED_WEAPON");
					response = "restricted";
				}
				break;
				
			case "springfield_mp":
				if(!getcvar("scr_allow_springfield"))
				{
					self iprintln(&"MPSCRIPT_SPRINGFIELD_IS_A_RESTRICTED");
					response = "restricted";
				}
				break;
				
			case "mg30cal_mp":
				if(!getcvar("scr_allow_mg30cal"))
				{
					self iprintln(&"GMI_WEAPON_30CAL_IS_A_RESTRICTED");
					response = "restricted";
				}
				break;

			case "mosin_nagant_mp":
				if(!getcvar("scr_allow_nagant"))
				{
					self iprintln(&"MPSCRIPT_MOSINNAGANT_IS_A_RESTRICTED");
					response = "restricted";
				}
				break;

			case "kar98k_mp":
				if(!getcvar("scr_allow_kar98k"))
				{
					self iprintln(&"MPSCRIPT_KAR98K_IS_A_RESTRICTED");
					response = "restricted";
				}
				break;
			default:
				self iprintln(&"MPSCRIPT_UNKNOWN_WEAPON_SELECTED");
				response = "restricted";
			}
			break;



u can see that i added the kar and nagant to the american section. u need to add the weapons (sniper rifles) to each teams section. it should be pretty easy to figure out using the examples i posted.

i think the last thing to change is this part

Code:
isweaponavailable(team)
{
	if(team == "allies")
	{
		switch(game["allies"])		
		{
		case "american":
			if(level.allow_m1carbine == "1")
				return true;
			if(level.allow_m1garand == "1")
				return true;
			if(level.allow_thompson == "1")
				return true;
			if(level.allow_bar == "1")
				return true;
			if(level.allow_springfield == "1")
				return true;
			if(level.allow_mg30cal == "1")
				return true;
			if(level.allow_nagant  == "1")
				return true;
			if(level.allow_kar98k  == "1")
				return true;
	
			return false;
			break;



u should see the pattern now of what needs to be done. sorry my post waas so messy and fast. i'm at public internet and have limited time.

here is a mod i made you can look through if you need to for ideas or whatever. or you can just add your guns to it if you like. feel free use any part of it. i think general99 taught me how to make that mod. oh and eggbeast too. ;)

http://revolutionboy.com/cod/xm-mod/zz_xm_riflemod.pk3
Share |
Wayne16
General Member
Since: Apr 30, 2005
Posts: 112
Last: Nov 27, 2008
[view latest posts]
Level 4
Im a fan of MODSonair
Category: CoDUO Mapping
Posted: Wednesday, Jul. 23, 2008 06:58 pm
Thanks s4ntiago for the help, ill have to look into it cause i did what you said to do but i still got the blank menu once i pick a team....so ill have to look more..
Share |
general99
General Member
Since: Oct 31, 2004
Posts: 323
Last: Dec 18, 2013
[view latest posts]
Level 5
Category: CoDUO Mapping
Posted: Thursday, Jul. 24, 2008 01:25 am
itenDef
{
name "kar98ksniper_info"
visible 0
rect 0 0 128 10
origin ORIGIN_WEAPONACCURACY
backcolor 1 1 1 .125
style WINDOW_STYLE_FILLED
decoration
}

Fix misspelling first line itemdef not itendef - you have it at least 3 times.

You may find weapon firing sound not working on some maps - nagant sniper on "Arnhem" for instance. Various csv files will need to be edited also.

edited on Jul. 23, 2008 09:27 pm by general99

edited on Jul. 23, 2008 09:29 pm by general99
Share |
Wayne16
General Member
Since: Apr 30, 2005
Posts: 112
Last: Nov 27, 2008
[view latest posts]
Level 4
Im a fan of MODSonair
Category: CoDUO Mapping
Posted: Thursday, Jul. 24, 2008 04:31 am
Well i finally got the snipers added.....but now for some reason when you go to select a gun the menu dosent just dissapear like normal....why would that be??
Share |
general99
General Member
Since: Oct 31, 2004
Posts: 323
Last: Dec 18, 2013
[view latest posts]
Level 5
Category: CoDUO Mapping
Posted: Thursday, Jul. 24, 2008 04:40 am
Menu for all teams doing this? Or just Allies? Or just particular allies?

Have you done the precaching etc in _teams.gsc?

Is it all weapons or just the ones you added?

I just spotted another error in the code you posted above. You are obviously working with the German menu, yet you have this line.

execKey "5" { play "mouse_click"; scriptMenuResponse "springfield_mp"; close weapon_american }

Change weapon_american to weapon_german. And again in the execkey "6" statement.

Interestingly, the stock BEL weapon_britishgerman and weapon_russiangerman menu's also do this, for the same reason - they try to close the wrong menu!

Oh, if you play BEL, you'll need to alter those three BEL menu's as well.

edited on Jul. 24, 2008 12:48 am by general99
Share |
Wayne16
General Member
Since: Apr 30, 2005
Posts: 112
Last: Nov 27, 2008
[view latest posts]
Level 4
Im a fan of MODSonair
Category: CoDUO Mapping
Posted: Thursday, Jul. 24, 2008 04:53 am
also i get the 4 guns i want to show up with the info and everything, but when i go to select the Russian rifle....i spawn and can select my pistol grenade and smoke the the gun isn't there....??? where could i have messed that up at?

Its for all teams brits, Americans, Germans and Russians.....this happens with them all....

edited on Jul. 24, 2008 12:56 am by Wayne16
Share |
Wayne16
General Member
Since: Apr 30, 2005
Posts: 112
Last: Nov 27, 2008
[view latest posts]
Level 4
Im a fan of MODSonair
Category: CoDUO Mapping
Posted: Thursday, Jul. 24, 2008 04:57 am
This is the new code im working with...This is just the german one...

Code:
// MENU CHOICES
		itemDef 
		{
			name			"button_kar98k"
			visible			1
			rect			WEAPON_BUTTON_RECT_FIRST
			origin			ORIGIN_MENUWINDOW
			forecolor		1 1 1 1
			type			ITEM_TYPE_BUTTON
			text			"@MPMENU_1_KAR98K"
			textfont		UI_FONT_NORMAL
			textscale		.24
			textalignx		8
			textaligny		16
			cvartest		"ui_allow_kar98k"
			hideCvar		{ "0" }
			action
			{
				play "mouse_click";
				scriptMenuResponse "kar98k_mp";
				close weapon_german;
			}
			onFocus
			{
				hide kar98ksniper_info;
				hide nagant_info;
				hide nagantsniper_info;
				play "mouse_over";
				show kar98k_info;
				show weapon_propertiestext;
			}
		}
		execKey "1" { play "mouse_click"; scriptMenuResponse "kar98k_mp"; close weapon_german }

		itemDef 
		{
			name			"button_kar98ksniper"
			visible			1
			rect			WEAPON_BUTTON_RECT_FIFTH
			origin			ORIGIN_MENUWINDOW
			forecolor		1 1 1 1
			type			ITEM_TYPE_BUTTON
			text			"@GMI_MPMENU_5_SCOPED_KAR98K"
			textfont		UI_FONT_NORMAL
			textscale		.24
			textalignx		8
			textaligny		16
			cvartest		"ui_allow_kar98ksniper"
			hideCvar		{ "0" }
			action
			{
				play "mouse_click";
				scriptMenuResponse "kar98k_sniper_mp";
				close weapon_german;
			}
			onFocus
			{
				hide kar98k_info;
				hide nagant_info;
				hide nagantsniper_info;
				play "mouse_over";
				show kar98ksniper_info;
				show weapon_propertiestext;
			}
		}
		execKey "2" { play "mouse_click"; scriptMenuResponse "kar98k_sniper_mp"; close weapon_german }
		
		itemDef 
		{
			name			"button_nagant"
			visible			1
			rect			WEAPON_BUTTON_RECT_SECOND
			origin			ORIGIN_MENUWINDOW
			forecolor		1 1 1 1
			type			ITEM_TYPE_BUTTON
			text			"2. Mosin-Nagant"
			textfont		UI_FONT_NORMAL
			textscale		.24
			textalignx		8
			textaligny		16
			cvartest		"ui_allow_nagant"
			hideCvar		{ "0" }
			action
			{
				play "mouse_click";
				scriptMenuResponse "mosin_nagant_mp";
				close weapon_german;
			}
			onFocus
			{
				hide kar98k_info;
				hide kar98ksniper_info;
				hide nagantsniper_info;
				play "mouse_over";
				show nagant_info;
				show weapon_propertiestext;
			}
		}
		execKey "3" { play "mouse_click"; scriptMenuResponse "mosin_nagant_mp"; close weapon_german }
		
		itemDef 
		{
			name			"button_nagantsniper"
			visible			1
			rect			WEAPON_BUTTON_RECT_FOURTH
			origin			ORIGIN_MENUWINDOW
			forecolor		1 1 1 1
			type			ITEM_TYPE_BUTTON
			text			"@GMI_MPMENU_4_SCOPED_MOSINNAGANT"
			textfont		UI_FONT_NORMAL
			textscale		.24
			textalignx		8
			textaligny		16
			cvartest		"ui_allow_nagantsniper"
			hideCvar		{ "0" }
			action
			{
				play "mouse_click";
				scriptMenuResponse "mosin_nagant_sniper_mp";
				close weapon_russian;
			}
			onFocus
			{
				hide kar98k_info;
				hide kar98ksniper_info;
				hide nagant_info;
				play "mouse_over";
				show nagantsniper_info;
				show weapon_propertiestext;
			}
		}
		execKey "4" { play "mouse_click"; scriptMenuResponse "mosin_nagant_sniper_mp"; close weapon_german }

// WEAPON IMAGES
		itemDef
		{
			name			"kar98k_info"
			visible 		0
			rect			0 0 224 112
			origin			ORIGIN_WEAPONIMAGE
	 		style			WINDOW_STYLE_SHADER
			background		"ui_mp/assets/hud@kar98.tga"
			decoration
		}
                itemDef
		{
			name			"kar98ksniper_info"
			visible 		0
			rect			0 0 224 112
			origin			ORIGIN_WEAPONIMAGE
	 		style			WINDOW_STYLE_SHADER
			background		"ui_mp/assets/hud@kar98scoped.tga"
			decoration
		}
		itemDef
		{
			name			"nagant_info"
			visible 		0
			rect			0 0 224 112
			origin			ORIGIN_WEAPONIMAGE
	 		style			WINDOW_STYLE_SHADER
			background		"ui_mp/assets/hud@nagant.tga"
			decoration
		}
		itemDef
		{
			name			"nagantsniper_info"
			visible 		0
			rect			0 0 224 112
			origin			ORIGIN_WEAPONIMAGE
	 		style			WINDOW_STYLE_SHADER
			background		"ui_mp/assets/hud@nagantscoped.tga"
			decoration
		}

// WEAPON DESCRIPTIONS
		itemDef
		{
			name			"kar98k_info"
			visible 		0
			rect			0 0 224 64
			origin			ORIGIN_WEAPONTEXT
			forecolor		1 1 1 1
			autowrapped
			text			"@MPMENU_THE_KAR98K_IS_THE_STANDARD"
			textfont		UI_FONT_NORMAL
			textscale		.24
			decoration
		}
                itemDef
		{
			name			"kar98ksniper_info"
			visible 		0
			rect			0 0 224 64
			origin			ORIGIN_WEAPONTEXT
			forecolor		1 1 1 1
			autowrapped
			text			"@MPMENU_THIS_KAR98K_VARIANT_USES" 
			textfont		UI_FONT_NORMAL
			textscale		.24
			decoration
		}
		itemDef
		{
			name			"nagant_info"
			visible 		0
			rect			0 0 224 64
			origin			ORIGIN_WEAPONTEXT
			forecolor		1 1 1 1
			autowrapped
			text			"@MPMENU_THE_MOSINNAGANT_IS_A"
			textfont		UI_FONT_NORMAL
			textscale		.24
			decoration
		}
		itemDef
		{
			name			"nagantsniper_info"
			visible 		0
			rect			0 0 224 64
			origin			ORIGIN_WEAPONTEXT
			forecolor		1 1 1 1
			autowrapped
			text			"@MPMENU_THE_SCOPED_MOSINNAGANT"
			textfont		UI_FONT_NORMAL
			textscale		.24
			decoration
		}

// WEAPON PROPERTIES
		itemDef
		{
			name			"weapon_propertiestext"
			visible 		0
			origin			ORIGIN_WEAPONPROPERTIESTEXT
			forecolor		1 1 1 1
			autowrapped
			text			"@MPMENU_ACCURACY_DAMAGE_MOBILITY"
			textfont		UI_FONT_NORMAL
			textscale		.24
			decoration
		}

		itemDef
		{
			name			"kar98k_info"
			visible 		0
			rect			0 0 128 10
			origin			ORIGIN_WEAPONACCURACY
			backcolor		1 1 1 .125
	 		style			WINDOW_STYLE_FILLED
			decoration
		}
		itemDef
		{
			name			"kar98k_info"
			visible 		0
			rect			0 0 90 10
			origin			ORIGIN_WEAPONACCURACY
			backcolor		1 1 1 1
	 		style			WINDOW_STYLE_FILLED
			decoration
		}

		itemDef
		{
			name			"kar98k_info"
			visible 		0
			rect			0 0 128 10
			origin			ORIGIN_WEAPONDAMAGE
			backcolor		1 1 1 .125
	 		style			WINDOW_STYLE_FILLED
			decoration
		}
		itemDef
		{
			name			"kar98k_info"
			visible 		0
			rect			0 0 128 10
			origin			ORIGIN_WEAPONDAMAGE
			backcolor		1 1 1 1
	 		style			WINDOW_STYLE_FILLED
			decoration
		}

		itemDef
		{
			name			"kar98k_info"
			visible 		0
			rect			0 0 128 10
			origin			ORIGIN_WEAPONMOBILITY
			backcolor		1 1 1 .125
	 		style			WINDOW_STYLE_FILLED
			decoration
		}
		itemDef
		{
			name			"kar98k_info"
			visible 		0
			rect			0 0 114 10
			origin			ORIGIN_WEAPONMOBILITY
			backcolor		1 1 1 1
	 		style			WINDOW_STYLE_FILLED
			decoration
		}

                itemDef
		{
			name			"kar98ksniper_info"
			visible 		0
			rect			0 0 128 10
			origin			ORIGIN_WEAPONACCURACY
			backcolor		1 1 1 .125
	 		style			WINDOW_STYLE_FILLED
			decoration
		}
		itemDef
		{
			name			"kar98ksniper_info"
			visible 		0
			rect			0 0 128 10
			origin			ORIGIN_WEAPONACCURACY
			backcolor		1 1 1 1
	 		style			WINDOW_STYLE_FILLED
			decoration
		}
		itemDef
		{
			name			"kar98ksniper_info"
			visible 		0
			rect			0 0 128 10
			origin			ORIGIN_WEAPONDAMAGE
			backcolor		1 1 1 .125
	 		style			WINDOW_STYLE_FILLED
			decoration
		}
		itemDef
		{
			name			"kar98ksniper_info"
			visible 		0
			rect			0 0 128 10
			origin			ORIGIN_WEAPONDAMAGE
			backcolor		1 1 1 1
	 		style			WINDOW_STYLE_FILLED
			decoration
		}

		itemDef
		{
			name			"kar98ksniper_info"
			visible 		0
			rect			0 0 128 10
			origin			ORIGIN_WEAPONMOBILITY
			backcolor		1 1 1 .125
	 		style			WINDOW_STYLE_FILLED
			decoration
		}
		itemDef
		{
			name			"kar98ksniper_info"
			visible 		0
			rect			0 0 72 10
			origin			ORIGIN_WEAPONMOBILITY
			backcolor		1 1 1 1
	 		style			WINDOW_STYLE_FILLED
			decoration
		}

		itemDef
		{
			name			"nagant_info"
			visible 		0
			rect			0 0 128 10
			origin			ORIGIN_WEAPONACCURACY
			backcolor		1 1 1 .125
	 		style			WINDOW_STYLE_FILLED
			decoration
		}
		itemDef
		{
			name			"nagant_info"
			visible 		0
			rect			0 0 104 10
			origin			ORIGIN_WEAPONACCURACY
			backcolor		1 1 1 1
	 		style			WINDOW_STYLE_FILLED
			decoration
		}

		itemDef
		{
			name			"nagant_info"
			visible 		0
			rect			0 0 128 10
			origin			ORIGIN_WEAPONDAMAGE
			backcolor		1 1 1 .125
	 		style			WINDOW_STYLE_FILLED
			decoration
		}
		itemDef
		{
			name			"nagant_info"
			visible 		0
			rect			0 0 128 10
			origin			ORIGIN_WEAPONDAMAGE
			backcolor		1 1 1 1
	 		style			WINDOW_STYLE_FILLED
			decoration
		}

		itemDef
		{
			name			"nagant_info"
			visible 		0
			rect			0 0 128 10
			origin			ORIGIN_WEAPONMOBILITY
			backcolor		1 1 1 .125
	 		style			WINDOW_STYLE_FILLED
			decoration
		}
		itemDef
		{
			name			"nagant_info"
			visible 		0
			rect			0 0 114 10
			origin			ORIGIN_WEAPONMOBILITY
			backcolor		1 1 1 1
	 		style			WINDOW_STYLE_FILLED
			decoration
		}

		itemDef
		{
			name			"nagantsniper_info"
			visible 		0
			rect			0 0 128 10
			origin			ORIGIN_WEAPONACCURACY
			backcolor		1 1 1 .125
	 		style			WINDOW_STYLE_FILLED
			decoration
		}
		itemDef
		{
			name			"nagantsniper_info"
			visible 		0
			rect			0 0 128 10
			origin			ORIGIN_WEAPONACCURACY
			backcolor		1 1 1 1
	 		style			WINDOW_STYLE_FILLED
			decoration
		}

		itemDef
		{
			name			"nagantsniper_info"
			visible 		0
			rect			0 0 128 10
			origin			ORIGIN_WEAPONDAMAGE
			backcolor		1 1 1 .125
	 		style			WINDOW_STYLE_FILLED
			decoration
		}
		itemDef
		{
			name			"nagantsniper_info"
			visible 		0
			rect			0 0 128 10
			origin			ORIGIN_WEAPONDAMAGE
			backcolor		1 1 1 1
	 		style			WINDOW_STYLE_FILLED
			decoration
		}

		itemDef
		{
			name			"nagantsniper_info"
			visible 		0
			rect			0 0 128 10
			origin			ORIGIN_WEAPONMOBILITY
			backcolor		1 1 1 .125
	 		style			WINDOW_STYLE_FILLED
			decoration
		}
		itemDef
		{
			name			"nagantsniper_info"
			visible 		0
			rect			0 0 72 10
			origin			ORIGIN_WEAPONMOBILITY
			backcolor		1 1 1 1
	 		style			WINDOW_STYLE_FILLED
			decoration
		}

	}
}



And this is just a small area of my _teams.gsc file.....

Code:

isweaponavailable(team)
{
	if(team == "allies")
	{
		switch(game["allies"])		
		{
		case "american":
			if(level.allow_m1carbine == "1")
				return true;
			if(level.allow_m1garand == "1")
				return true;
			if(level.allow_thompson == "1")
				return true;
			if(level.allow_bar == "1")
				return true;
			if(level.allow_springfield == "1")
				return true;
			if(level.allow_mg30cal == "1")
				return true;
			if(level.allow_nagant  == "1")
				return true;
			if(level.allow_kar98k  == "1")
				return true;
			if(level.allow_nagantsniper == "1")
				return true;
			if(level.allow_kar98ksniper == "1")
				return true;
	
			return false;
			break;

		case "british":
			if(level.allow_enfield  == "1")
				return true;
			if(level.allow_sten == "1")
				return true;
			if(level.allow_bren == "1")
				return true;
			if(level.allow_springfield == "1")
				return true;
			if(level.allow_mg30cal == "1")
				return true;
			if(level.allow_nagant  == "1")
				return true;
			if(level.allow_kar98k  == "1")
				return true;
			if(level.allow_nagantsniper == "1")
				return true;
			if(level.allow_kar98ksniper == "1")
				return true;
	
			return false;
			break;
			
		case "russian":
			if(level.allow_nagant  == "1")
				return true;
			if(level.allow_svt40 == "1")
				return true;
			if(level.allow_ppsh == "1")
				return true;
			if(level.allow_nagantsniper == "1")
				return true;
			if(level.allow_dp28 == "1")
				return true;
			if(level.allow_kar98k  == "1")
				return true;
			if(level.allow_kar98ksniper == "1")
				return true;
	
			return false;
			break;
		}
	}
	else if(self.pers["team"] == "axis")
	{
		switch(game["axis"])		
		{
		case "german":
			if(level.allow_kar98k  == "1")
				return true;
			if(level.allow_gewehr43 == "1")
				return true;
			if(level.allow_mp40 == "1")
				return true;
			if(level.allow_mp44 == "1")
				return true;
			if(level.allow_kar98ksniper == "1")
				return true;
			if(level.allow_mg34 == "1")
				return true;
			if(level.allow_nagant  == "1")
				return true;
			if(level.allow_nagantsniper == "1")
				return true;
	
			return false;
			break;
		}			
	}
	return false;
}


edited on Jul. 24, 2008 01:00 am by Wayne16
Share |
Restricted Access Topic is Locked
Page
Next Page
subscribe
MODSonline.com Forums : Call of Duty : CoDUO Mapping

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

»