MODSon[line.com] Wiki - Beta 1.0

Call of Duty: Script - mapname.gsc

From MODSonline Wiki

Revision as of 20:12, 5 September 2008 by Tourist.tam (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

Contents

[edit] Example

An example of mapname.gsc script's content is as follow:

main()
{
setCullFog (0, 8000, 0.8, 0.8, 0.8, 0);
ambientPlay("ambient_mp_railyard");

maps\mp\_load::main();

game["allies"] = "russian";
game["axis"] = "german";

game["russian_soldiertype"] = "veteran";
game["russian_soldiervariation"] = "winter";
game["german_soldiertype"] = "wehrmacht";
game["german_soldiervariation"] = "winter";

game["attackers"] = "allies";
game["defenders"] = "axis";

game["layoutimage"] = "mp_railyard";

}

[edit] Explanation

[edit] setCullFog

The amount of fog and the colouring of it (near distance, far distance, Red, Green, Blue, transition time).

  • Near distance - units from the player before the fog is drawn
  • Far distance - units from the player the fog culls out geometry
  • Red, Green, Blue - RGB value for fog color, on a scale of 0 to 1 (see inset below)
  • Transition time – roughly equivalent to the overall density of the fog.

[edit] ambientPlay

The ambiance sound. List of stock ambiant sound as follow:

  • amb_berlin
  • amb_brecourt
  • amb_burnville
  • amb_chateau
  • amb_dam
  • amb_factory
  • amb_harbor
  • amb_night
  • amb_ocean
  • amb_pegasusnight
  • amb_powcamp
  • amb_sewer
  • amb_ship
  • amb_snowy
  • amb_stalingrad
  • amb_training

[edit] game["allies"] OR game["axis"]

The teams. The option for allies are: american, british, russian, where as the axis will always be german.

Allied american
british
russian
Axis german

[edit] game["russian_soldiertype"] and game["russian_soldiervariation"]

Those are as follow:

american_soldiertype airborne normal
winter
british_soldiertype commando normal
winter
russian_soldiertype conscript normal
winter
russian_soldiertype veteran normal
winter
german_soldiertype waffen normal
winter
fallschirmjagercamo normal
wehrmacht normal
winter
kriegsmarine normal

[edit] game["attackers"] OR game["defenders"]

The setup of the teams relatively to the spawnpoint and the objectives on the map, if any (see Call of Duty: Multiplayer Gametypes and Call of Duty: Script - Arena).

[edit] game["layoutimage"]

The image for the loadscreen. See Call of Duty: Layoutimage.

[edit] External Links

the mapname.gsc file explained