Page 1 of 1

[TuT] Capture The Flag For Cod 1

Posted: August 22nd, 2006, 2:56 am
by creator
well i just figured out how to add ctf to a call of duty 1 map.
this is just a small tut verry easy

Requirements:
cod 1 + radiant (duh :roll: ), and awe mod.

Mapping:
ok here we go:
make 2 or more team-deathmatch spawns
and 1 team-deathmatch intermission

add 2 script_models (script_models, right click on 2d grid) and find: stalingrad_flag
open it to add it to ur map and place it in where u want it.

Select 1 flag and press 'N'
type this in it:

Code: Select all

key: targetname
value: axis_flag_home
press enter
Do the same with the other flag,
only change

Code: Select all

key: axis_flag_home to: 
value: allies_flag_home
put them a little bit in the floors or else u need to jump to get them

then u are done for the mapping

make a script called: urmap.gsc and add this in it:
Scripting:

Code: Select all

			game["allies"] = "american";
			game["axis"] = "german";
			This sets the nationalities of the teams. Allies can be american, british, or russian. Axis can be german.
	
		If using minefields or exploders:
			maps\mp\_load::main();
		
	Optional level script settings
	------------------------------
		Soldier Type and Variation:
			game["american_soldiertype"] = "airborne";
			game["american_soldiervariation"] = "normal";
			game["german_soldiertype"] = "wehrmacht";
			game["german_soldiervariation"] = "normal";
			This sets what models are used for each nationality on a particular map.
			
			Valid settings:
				american_soldiertype		airborne
				american_soldiervariation	normal, winter
				
				british_soldiertype		airborne, commando
				british_soldiervariation	normal, winter
				
				russian_soldiertype		conscript, veteran
				russian_soldiervariation	normal, winter
				
				german_soldiertype		waffen, wehrmacht, fallschirmjagercamo, fallschirmjagergrey, kriegsmarine
				german_soldiervariation		normal, winter
example:

Code: Select all

main()
{

	maps\mp\_load::main();
	maps\mp\mp_carentan_fx::main();

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

	game["american_soldiertype"] = "airborne";
	game["american_soldiervariation"] = "normal";
	game["german_soldiertype"] = "fallschirmjagergrey";
	game["german_soldiervariation"] = "normal";

	game["attackers"] = "allies";
	game["defenders"] = "axis";
}
compile ur map make a pk3 and test it
warning: u need to have awe mod on and type before u test:

Code: Select all

g_gametype actf
dont type ctf cause that doesnt excist in cod1 unless a other mod
actf: Awe Capture The Flag

if any problems please post here and i try to help :)

Posted: August 22nd, 2006, 1:30 pm
by Drofder2004
Adapted and reposted in the turoail section with credit.
thanks...

viewtopic.php?t=3778
Locked, plese refer to above for comments/suggestions/questions