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

Members Online

»
0 Active | 54 Guests
Online:

LATEST FORUM THREADS

»
CoD: Battle Royale
CoD+UO Map + Mod Releases
Damaged .pk3's
CoD Mapping
heli to attack ai
CoD4 SP Mapping

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 subscribe
Author Topic: All Weapon problem, weapons don't load
paulb39
General Member
Since: Jan 3, 2006
Posts: 492
Last: Oct 16, 2011
[view latest posts]
Level 5
Category: CoD2 Scripting
Posted: Friday, Oct. 14, 2011 01:40 am
Hello,

I have awe running on my home server.

I found an all weapon mod that I want to add to it.

The all weapon mod lets any team select any weapon, for example, a german can select a ppsh.

Having the awe files and the all weapon mod in the fs_game together didnt work ( it loaded but the all weapon mod didnt work)

So I mixed the mods, I replaced the AWE weapon menus with the ones from the all weapon mod.

That works, all the weapons come up as selectable, but say I'm on carentan where the allies are american, I can only select american and german guns.

I can select a ppsh, but when I spawn I have no weapon.

If I go to a map where the allies are russian, the russian and german weapons work, but other teams weapons won't load.

Sadly there are no errors in console, even with developer and developer_script on.

Any ideas?

I thought maybe the guns weren't being precached but they seem like they are.

Here are the files

http://dl.dropbox.com/u/9600536/z_awe_svr_3.4.iwd

http://dl.dropbox.com/u/9600536/b2.iwd

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: Friday, Oct. 14, 2011 02:47 am
i am not going to download those files but i do know that the problems are. it is not the menus it is the _weapons.gsc file. and what you need to do is open up a stock _weapons.gsc and simply

Code:
switch(game["allies"])
	{
	case "american":
		precacheItem("frag_grenade_american_mp");
		precacheItem("smoke_grenade_american_mp");
		precacheItem("colt_mp");
		precacheItem("m1carbine_mp");
		precacheItem("m1garand_mp");
		precacheItem("thompson_mp");
		precacheItem("bar_mp");
		precacheItem("springfield_mp");
		precacheItem("greasegun_mp");
		precacheItem("shotgun_mp");
		//precacheItem("30cal_mp");
		//precacheItem("M9_Bazooka");
		break;

	case "british":
		precacheItem("frag_grenade_british_mp");
		precacheItem("smoke_grenade_british_mp");
		precacheItem("webley_mp");
		precacheItem("enfield_mp");
		precacheItem("sten_mp");
		precacheItem("bren_mp");
		precacheItem("enfield_scope_mp");
		precacheItem("m1garand_mp");
		precacheItem("thompson_mp");
		precacheItem("shotgun_mp");
		//precacheItem("30cal_mp");
		//precacheItem("M9_Bazooka");
		break;

	case "russian":
		precacheItem("frag_grenade_russian_mp");
		precacheItem("smoke_grenade_russian_mp");
		precacheItem("TT30_mp");
		precacheItem("mosin_nagant_mp");
		precacheItem("SVT40_mp");
		precacheItem("PPS42_mp");
		precacheItem("ppsh_mp");
		precacheItem("mosin_nagant_sniper_mp");
		precacheItem("shotgun_mp");
		//precacheItem("dp28_mp");
		//precacheItem("M9_Bazooka");
		break;
	}

	precacheItem("frag_grenade_german_mp");
	precacheItem("smoke_grenade_german_mp");
	precacheItem("luger_mp");
	precacheItem("kar98k_mp");
	precacheItem("g43_mp");
	precacheItem("mp40_mp");
	precacheItem("mp44_mp");
	precacheItem("kar98k_sniper_mp");
	precacheItem("shotgun_mp");
	//precacheItem("dp28_mp");
	//precacheItem("panzerfaust_mp");
	//precacheItem("panzerschreck_mp");


take that and change it to

Code:
precacheItem("frag_grenade_american_mp");
	precacheItem("smoke_grenade_american_mp");
	precacheItem("colt_mp");
	precacheItem("m1carbine_mp");
	precacheItem("bar_mp");
	precacheItem("springfield_mp");
	precacheItem("greasegun_mp");

	precacheItem("webley_mp");
	precacheItem("enfield_mp");
	precacheItem("sten_mp");
	precacheItem("bren_mp");
	precacheItem("enfield_scope_mp");
	precacheItem("m1garand_mp");
	precacheItem("thompson_mp");

	precacheItem("TT30_mp");
	precacheItem("mosin_nagant_mp");
	precacheItem("SVT40_mp");
	precacheItem("PPS42_mp");
	precacheItem("ppsh_mp");
	precacheItem("mosin_nagant_sniper_mp");

	precacheItem("frag_grenade_german_mp");
	precacheItem("smoke_grenade_german_mp");
	precacheItem("luger_mp");
	precacheItem("kar98k_mp");
	precacheItem("g43_mp");
	precacheItem("mp40_mp");
	precacheItem("mp44_mp");
	precacheItem("kar98k_sniper_mp");
	precacheItem("shotgun_mp");
	//precacheItem("dp28_mp");
	//precacheItem("panzerfaust_mp");
	//precacheItem("panzerschreck_mp");


to that. in that way all weapons are then precached for all teams.
Share |
paulb39
General Member
Since: Jan 3, 2006
Posts: 492
Last: Oct 16, 2011
[view latest posts]
Level 5
Category: CoD2 Scripting
Posted: Friday, Oct. 14, 2011 03:14 am
Here is what it was before

https://docs.google.com/document/pub?id=10G1os9aDuS0jGt4fiFZXgnTqdUYMfbA9xbGT-ySGqRc

Here is what I changed it to

https://docs.google.com/document/pub?id=1fuTeZIR8U639RfFO7tSg5xta9bhxKtaMcak-d5lBX2g

Has same problem.

I'm using google docs since it said my post was too large when I tried to copy the code here.

Share |
IzNoGoD
General Member
Since: Nov 29, 2008
Posts: 694
Last: Nov 10, 2012
[view latest posts]
Level 6
Category: CoD2 Scripting
Posted: Friday, Oct. 14, 2011 03:23 am
awe has a strange script in it which prevents ppl from selecting other weapons.

Find it and remove it.
Share |
paulb39
General Member
Since: Jan 3, 2006
Posts: 492
Last: Oct 16, 2011
[view latest posts]
Level 5
Category: CoD2 Scripting
Posted: Friday, Oct. 14, 2011 04:31 pm
*face palm*

I don't know how I missed this.

It's a native feature of awe.

awe_all_weapons 1

thanks for the help



edited on Oct. 14, 2011 12:35 pm by paulb39
Share |
Restricted Access Topic is Locked 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

»