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

Members Online

»
0 Active | 8 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: World at War
Category: CoDWW SP Mapping
Call of Duty: World at War single player mapping, scripting and everything single player.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername, novemberdobby
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: Simple question about _Loadout
RedFlag
General Member
Since: Apr 10, 2010
Posts: 1
Last: Apr 10, 2010
[view latest posts]
Level 0
Category: CoDWW SP Mapping
Posted: Saturday, Apr. 10, 2010 11:26 am
Hey Modsonline!
Good to see that modding comunity like you develop :)

So, here is my prob.
I decided to create a single-player map for Cod waw, but have problems with my ?mapname.gsc?, campaign should be russian,
I change then
maps\_loadout::add_weapon( "colt");
to
maps\_loadout::add_weapon( "tokarev");
and other weapons... then I update my zone file, and add all weapons what I need. But when I test my map, player still have colt, garand, fraggrenade, smoke and also have tokarev, mosin_rifle etc.
How could I remove garand, colt and other weapons which is used to be in american campaign?

oh! And also, sometimes when my map loading, activision load screen stuck and cant do anything.

Here is my gsc

#include maps\_utility; #include common_scripts\utility; #using_animtree( "generic_human" ); main() { level.dodgeloadout = false; maps\sp_heinzau_fx::main(); maps\_load::main(); set_loadout(); maps\sp_heinzau_amb::main(); maps\sp_heinzau_anim::main(); } set_loadout() { // Precache's / sets the list of weapons to give to the player when he spawns in maps\_loadout::add_weapon( "tokarev"); maps\_loadout::add_weapon( "mosin_rifle" ); maps\_loadout::add_weapon( "stick_grenade" ); maps\_loadout::add_weapon( "molotov" ); maps\_loadout::set_secondary_offhand( "smoke" ); maps\_loadout::set_laststand_pistol( "tokarev" ); maps\_loadout::set_player_viewmodel( "viewmodel_rus_guard_arms"); maps\_loadout::set_player_interactive_hands( "viewmodel_rus_guard_player" ); maps\_loadout::set_switch_weapon( "mosin_rifle" ); level.campaign = "russian"; }

Any suggestions?

Ty :)


Share |
starkk
General Member
Since: Aug 8, 2008
Posts: 216
Last: Apr 5, 2012
[view latest posts]
Level 4
Category: CoDWW SP Mapping
Posted: Tuesday, May. 18, 2010 08:52 pm
I had this issue as well when I was creating my sp map...what happens is in the gsc _loadout you will notice that there is an entry for all the dev sp maps and their gun loadouts. There is also a script in there for any maps that dont have their own entry in the _loadout and this script tells the map to give you the default american weapons. To fix this you can either in your own gsc scripts for your map so that it removes those american weapons or you can add an entry for your own map in _loadout.gsc .

Hope that helps,
starkk
Share |
zeroy
General Member
Since: Nov 26, 2007
Posts: 1060
Last: Mar 12, 2014
[view latest posts]
Level 8
Category: CoDWW SP Mapping
Posted: Monday, Jan. 10, 2011 12:04 pm
starkk writes...
Quote:
I had this issue as well when I was creating my sp map...what happens is in the gsc _loadout you will notice that there is an entry for all the dev sp maps and their gun loadouts. There is also a script in there for any maps that dont have their own entry in the _loadout and this script tells the map to give you the default american weapons. To fix this you can either in your own gsc scripts for your map so that it removes those american weapons or you can add an entry for your own map in _loadout.gsc .


I have a similar issue, i cant get rid of the Garand despite using this after _load::init();

Code:

	maps\_loadout::add_weapon( "colt" );
	maps\_loadout::add_weapon( "thompson" );
	maps\_loadout::add_weapon( "fraggrenade" );
	maps\_loadout::set_switch_weapon( "thompson" );
	maps\_loadout::set_player_viewmodel( "viewmodel_usa_raider_arms");
	maps\_loadout::set_player_interactive_hands( "viewmodel_usa_raider_player" );

	players = get_players();
	for( i = 0; i < players.size; i++ )
	{
		players[i] takeweapon("m1garand");
	}


I also tried modding the _loadout.gsc by adding my own level + custom loadout but the modded file isnt used by the Level - i think it may work by adding it to a small mod.ff instead of in the Map Level but havent tried....
Share |
TexasRebel
General Member
Since: May 1, 2006
Posts: 373
Last: Aug 20, 2013
[view latest posts]
Level 5
Category: CoDWW SP Mapping
Posted: Tuesday, Jan. 11, 2011 04:30 am
not sure if this is entirely accurate but works in cod4 inside main().

Code:

level.player takeallweapons();
level.player giveWeapon ("fraggrenade");
level.player giveWeapon ("flash_grenade");


thats for a test map where u pick up your primary and secondary.

and this is for actually giving weapons then switching to one you want them to see when they first get in:

Code:

level.player takeallweapons();
level.player giveweapon ("m4_silencer");
level.player giveweapon ("usp_silencer");
level.player giveWeapon ("fraggrenade");
level.player giveWeapon ("flash_grenade");

level.player SwitchToWeapon( "m4_silencer" );


I know different games, but shouldn't the functions be the same?

*If this doesnt help at all, then I would just delete this comment as may confuse some.
Share |
zeroy
General Member
Since: Nov 26, 2007
Posts: 1060
Last: Mar 12, 2014
[view latest posts]
Level 8
Category: CoDWW SP Mapping
Posted: Tuesday, Jan. 11, 2011 10:03 am
TexasRebel writes...
Quote:
not sure if this is entirely accurate but works in cod4 inside main().

Code:

level.player takeallweapons();
level.player giveWeapon ("fraggrenade");
level.player giveWeapon ("flash_grenade");


thats for a test map where u pick up your primary and secondary.

and this is for actually giving weapons then switching to one you want them to see when they first get in:

Code:

level.player takeallweapons();
level.player giveweapon ("m4_silencer");
level.player giveweapon ("usp_silencer");
level.player giveWeapon ("fraggrenade");
level.player giveWeapon ("flash_grenade");

level.player SwitchToWeapon( "m4_silencer" );


I know different games, but shouldn't the functions be the same?

*If this doesnt help at all, then I would just delete this comment as may confuse some.


A number of things make that this doesnt work anymore. level.player is the first thing! With coop on WAW you need to use get_players array result, etc.... the solution remains as i thought the modding of _loadout.gsc and inclusion into a mod.ff

Thanks!
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty: World at War : CoDWW SP 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

»