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

Members Online

»
1 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 MP Mapping
CoD 2 mapping and level design.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked
Page
Next Page
subscribe
Author Topic: ugh, yes me again.
Ethnik_Man
General Member
Since: Jul 27, 2005
Posts: 417
Last: Feb 1, 2008
[view latest posts]
Level 5
Category: CoD2 MP Mapping
Posted: Tuesday, May. 2, 2006 06:14 am
thanks [FR] Sparks for your reply to my old post about that script compie error [thumbs_up]

i have yet another weird thing [sad]

Quote:
#include maps\_utility;
#include maps\_anim;
#include maps\_ambient;
#using_animtree("generic_human");

main()
{
maps\_load::main();
maps\_sherman::main("xmodel/vehicle_american_sherman");

level.player takeallweapons();
level.player giveWeapon("BAR");
level.player giveWeapon("colt");
level.player giveWeapon("fraggrenade");
level.player switchToWeapon("BAR");

precacheshader("black");

precacheString(&"HEDGEROWS_TITLE");
precacheString(&"HEDGEROWS_LOCATION");
precacheString(&"HEDGEROWS_DATE");
precacheString(&"HEDGEROWS_ADDITIONAL");
maps\_introscreen::introscreen_delay(&"HEDGEROWS_TITLE", &"HEDGEROWS_LOCATION", &"HEDGEROWS_DATE", &"HEDGEROWS_ADDITIONAL");
}


thats my .gsc file

now heres the problem:
when i go in my map and run it, the game gives me default weapon set (sten, enfield, smoke, and british frag), this also takes away the exploding barrels and popping helmets.

[banghead] wat could possibly be causing this problem?

[rocking][rocking]
Share |
Ethnik_Man
General Member
Since: Jul 27, 2005
Posts: 417
Last: Feb 1, 2008
[view latest posts]
Level 5
Category: CoD2 MP Mapping
Posted: Tuesday, May. 2, 2006 06:22 am
FYI
i have 3 shermans in my map (they always cause some problems for some reason[cry])

this site has yet to fail in helping me out!
[thumbs_up]

[rocking]
Share |
The_Caretaker
General Member
Since: Jun 8, 2004
Posts: 11625
Last: Jul 7, 2009
[view latest posts]
Level 10
Category: CoD2 MP Mapping
Posted: Tuesday, May. 2, 2006 12:06 pm
Does this also happen when you call the sherman function AFTER the weapons assignment?
Does your intro screen work?
Share |
Bodger2
General Member
Since: Sep 4, 2004
Posts: 132
Last: Aug 5, 2006
[view latest posts]
Level 4
Category: CoD2 MP Mapping
Posted: Tuesday, May. 2, 2006 01:45 pm
This is a weird problem.After reading this topic, I decide to give this a go.The script is all ok.

I first added the weapon stuff to my test map.Tested it, and got my loadout as per the script, great. Then I added a script_vehicle sherman tank just like you guys.Then added the tank line to my script.And bingo the weapon loadout has changed to the default. I didn't have the introscreen thing in there.There are no script errors and the map loads fine.

So I then commented out the tank line in my gsc.That will fix the problem right.Nope even with no scripting at all it gave me the default weapon loadout.

So I removed the script_vehicle from the test map and tested again.Bang, my weapon loadout is as it should be.It seems the problem is related to having a script_vehicle in the map.I tested it with other models as well same thing.

There has been a change from the way we use to do it.And I haven't had time to fully understand what is needed to get it to work.
Share |
The_Caretaker
General Member
Since: Jun 8, 2004
Posts: 11625
Last: Jul 7, 2009
[view latest posts]
Level 10
Category: CoD2 MP Mapping
Posted: Tuesday, May. 2, 2006 02:03 pm
Did you take a look at the script_vehicles in Neuvillers and try to see how they did it there?
Share |
Bodger2
General Member
Since: Sep 4, 2004
Posts: 132
Last: Aug 5, 2006
[view latest posts]
Level 4
Category: CoD2 MP Mapping
Posted: Tuesday, May. 2, 2006 02:27 pm
No need to now Andewii from the GFM has added a tut for vehicles in SP to the .Map tuts. All though he didn't have the player weapon loadouts in his test map, and I haven't tested his tut out yet.But I'm 90% sure it should be fine.

Anyway if you guys would like to run over to .Map and have a look.Your more than welcome to.I'm sure my friend StrYdeR will be carrying the tut over here soon.[lol]

Vehicles in SP tutorial by Andewii

edited on May. 2, 2006 10:27 am by Bodger2
Share |
Ethnik_Man
General Member
Since: Jul 27, 2005
Posts: 417
Last: Feb 1, 2008
[view latest posts]
Level 5
Category: CoD2 MP Mapping
Posted: Wednesday, May. 3, 2006 04:11 am
@bodger2

thanks for the link, ill give it a go!

@caretaker

bodger2 pretty much explained it, but thank you!

[rocking][rocking]
Share |
Ethnik_Man
General Member
Since: Jul 27, 2005
Posts: 417
Last: Feb 1, 2008
[view latest posts]
Level 5
Category: CoD2 MP Mapping
Posted: Wednesday, May. 3, 2006 05:08 am
ok - ive added a trigger_multiple with the same script_vehiclespawngroup as my halftrack and my sherman, which really didn't change anything.[banghead]

[mad]

arghhh this is makin me mad

[cry]
Share |
Ethnik_Man
General Member
Since: Jul 27, 2005
Posts: 417
Last: Feb 1, 2008
[view latest posts]
Level 5
Category: CoD2 MP Mapping
Posted: Wednesday, May. 3, 2006 06:09 am
ok, i followed his tut, and put in the sherman and i also put in a halftrack. I STILL GET DEFAULT LOADOUT, no introscreen, no exploding objects, etc etc.

here's my revised script.

Quote:
#include maps\_utility;
#include maps\_anim;
#include maps\_ambient;
#using_animtree("generic_human");

main()
{
maps\_load::main();
maps\_sherman::main("xmodel/vehicle_american_sherman");
maps\_halftrack::main("xmodel/vehicle_halftrack_mg_woodland");

level.player takeallweapons();
level.player giveWeapon("BAR");
level.player giveWeapon("colt");
level.player giveWeapon("fraggrenade");
level.player switchToWeapon("BAR");

precacheshader("black");

precacheString(&"HEDGEROWS_TITLE");
precacheString(&"HEDGEROWS_LOCATION");
precacheString(&"HEDGEROWS_DATE");
precacheString(&"HEDGEROWS_ADDITIONAL");
maps\_introscreen::introscreen_delay(&"HEDGEROWS_TITLE", &"HEDGEROWS_LOCATION", &"HEDGEROWS_DATE", &"HEDGEROWS_ADDITIONAL");

thread sherman1();
thread halftrack1();
}

sherman1()
{
level.vehicle = getent("sherman1", "script_noteworthy");
path1 = getvehiclenode ("sherman_start_path1", "script_noteworthy");


level.vehicle attachPath(path1);
level.vehicle startPath();
level.vehicle waittill("reached_end_node");
level.vehicle notify ("unload");
}

halftrack1()
{
halftrack = getent("halftrack1", "script_noteworthy");
path = getvehiclenode ("halftrack_start_path", "script_noteworthy");

maps\_vehicle::scripted_spawn(2);

halftrack attachPath(path);

halftrack startPath();

halftrack waittill("reached_end_node");
halftrack notify ("unload");
}


[wave]

something's gotta be wrong with my map cuz i got no script compile or runtime errors...
Share |
Ethnik_Man
General Member
Since: Jul 27, 2005
Posts: 417
Last: Feb 1, 2008
[view latest posts]
Level 5
Category: CoD2 MP Mapping
Posted: Wednesday, May. 3, 2006 06:42 am
ok i tried searching for miscellaneous things that i didnt need, and also i hav setup area portals for faster fps.


[rocking]
Share |
Restricted Access Topic is Locked
Page
Next Page
subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 MP 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

»