Call of Duty 5: MP - Adding Turrets

From COD Modding & Mapping Wiki
Revision as of 17:25, 20 May 2009 by Zeroy (talk | contribs)
Jump to navigation Jump to search

Tutorial on how to add a Turret (mounted MG) to your Levels.

Static Turrets

In World At War there are several static turrets that players and AI can both use (in sp and mp). Turrets are normally machine guns 'fixed' to a wall via a bipod or tripod.

Radiant:

Below is a list of SP and MP turrets with typical turret keys and values: (crouch can be replaced with PRONE or STAND for all turrets).

Singleplayer Turrets

German

MG42 Heavy Machine Gun:

model mounted_ger_mg42_bipod_mg
weaponinfo mg42_bipod_stand
classname misc_turret

FG42 Light Machine Gun:

weaponinfo fg42_bipod_stand
model mounted_ger_fg42_bipod_lmg
classname misc_turret

American

30cal Light Machine Gun:

model mounted_usa_30cal_bipod_lmg
weaponinfo 30cal_bipod_stand
classname misc_turret

Bar Light Machine Gun:

model mounted_usa_bar_bipod_lmg
weaponinfo bar_bipod_crouch
classname misc_turret

Japanese

Type99 Light Machine Gun:

model mounted_jap_type99_bipod_lmg
weaponinfo type99_bipod_lmg
classname misc_turret

Type99 Light Machine Gun(nobipod):

//testing these two

model mounted_jap_type99_lmg
weaponinfo type99_lmg
classname misc_turret


Russian

model mounted_rus_dp28_bipod_lmg
weaponinfo dp28_bipod_stand
classname misc_turret

//\\

Multiplayer Turrets

German

MG42 Heavy Machine Gun:

model mounted_ger_mg42_bipod_mg
weaponinfo mg42_bipod_stand_mp
classname misc_turret

FG42 Light Machine Gun:

weaponinfo fg42_bipod_stand_mp
model mounted_ger_fg42_bipod_lmg
classname misc_turret

American

30cal Light Machine Gun:

model mounted_usa_30cal_bipod_lmg
weaponinfo 30cal_bipod_stand_mp
classname misc_turret

Bar Light Machine Gun:

model mounted_usa_bar_bipod_lmg
weaponinfo bar_bipod_stand_mp
classname misc_turret

Japanese

Type92 Light Machine Gun:

code

Russian

DP28 Light Machine Gun:

code

Deployable Turrets

A deployable turret is a weapon that the player can carry, shoot, reload while moving, and then place (by folding out a bipod/tripod) on an obstacle to turn it into a static turret until they wish to dismount it again.

A deployable turret must have a matching static turret in the level, so if you have a deployable mg42 there must be at least one static turret mg42 in the level, see above

Radiant

In radiant we define the places where we can mount our deployable_turrets by using tool textures:

Mount

(you can mount the turret and also climb over these walls, saves using the mantle texture separately)

Mount_mantle_on

Mount_mantle_over

Usual Placement: Place a mount_mantle texture 32 units high, 16 units wide. This is an ideal crouch height for most deployable turrets to 'look right'. The actual wall that the mount texture is 'on' should be overlapped by the mount texture. So the actual wall would be only 8 units wide by 30 units high in this case.

Weapons

Deployable turrets start their life as normal weapons that the player can pick-up and use.

Weapons in Radiant

(Ticking 'Suspend' in the Entity dialogue will keep the weapon for falling to the ground during compiling)

From the weapons menu the bipods are (mp is multiplayer):

mg42_bipod or mg42_bipod_mp

bar_bipod or bar_bipod_mp

dp28_bipod or dp28_bipod_mp

fg42_bipod or fg42_bipod_mp

Zone_source

Zone_Source Content for yourmapname.csv (file located in codwaw/zone_source/yourmapname.csv):

// Bipods Setup
// MG42
weapon,sp/mg42_bipod_crouch
weapon,sp/mg42_bipod_stand
weapon,sp/mg42_bipod_prone
weapon,sp/mg42_bipod
weapon,sp/50cal_turret_technical
xmodel,mounted_ger_mg42_bipod_mg
xmodel,mounted_ger_mg42_mg
xmodel,viewmodel_ger_mg42_mg
xmodel,viewmodel_ger_mg42_bipod_mg
xmodel,weapon_ger_mg42_mg
xmodel,weapon_ger_mg42_bipod_mg
xmodel,weapon_ger_mg_mg42
// Bar
weapon,sp/bar_bipod_crouch
weapon,sp/bar_bipod_prone
weapon,sp/bar_bipod_stand
weapon,sp/bar_bipod
xmodel,mounted_usa_bar_bipod_lmg
xmodel,mounted_usa_bar_lmg
xmodel,viewmodel_usa_bar_bipod_lmg
xmodel,viewmodel_usa_bar_lmg
xmodel,weapon_usa_bar_bipod_lmg
xmodel,weapon_usa_bar_lmg
// FG42
weapon,sp/fg42_bipod
weapon,sp/fg42_bipod_prone
weapon,sp/fg42_bipod_crouch
weapon,sp/fg42_bipod_stand
xmodel,mounted_ger_fg42_bipod_lmg
xmodel,mounted_ger_fg42_lmg
xmodel,viewmodel_ger_fg42_bipod_lmg
xmodel,viewmodel_ger_fg42_lmg
xmodel,weapon_ger_fg42_bipod_lmg
xmodel,weapon_ger_fg42_lmg
// 30Cal
weapon,sp/30cal_bipod
weapon,sp/30cal_bipod_prone
weapon,sp/30cal_bipod_crouch
weapon,sp/30cal_bipod_stand
xmodel,mounted_usa_30cal_bipod_lmg
xmodel,mounted_usa_30cal_lmg
xmodel,viewmodel_usa_30cal_bipod_lmg
xmodel,viewmodel_usa_30cal_lmg
xmodel,weapon_usa_30cal_bipod_lmg
xmodel,weapon_usa_30cal_lmg
// Type99
weapon,sp/type99_lmg_bipod
weapon,sp/type99_lmg_bipod_stand
weapon,sp/type99_lmg_bipod_crouch
weapon,sp/type99_lmg_bipod_prone
weapon,sp/type99_lmg_bipod_wet
Only copy to your maps zone source the needed files for the particular bipod in your level

Sources: ModsonWiki