Usage:
MaterialManager.SetEffectTemplate
name
Argument values:
argument 1: | BazookaCascadesMetal, BazookaCascadesStone, BazookaCascadesWood, BombBigNS_Expl, BombBig_Expl, BombSmallNS_Expl, BombSmall_Expl, Exp2CascadesMetal, Exp2CascadesStone, Exp2CascadesWood, GranadeExplDirt, ... |
Description: This property specifies what effect happens when a particular attacking Material hits an object's Material. For example, a bullethole could appear, or a piece of cement could fly off.
To give a more in-depth example, a Thompson SMG shooting at heavy armor (file Game/damage_system/thomson.con) has the entry:
MaterialManager.AttGroup 216 MaterialManager.DefGroup 50 MaterialManager.DamageMod 0 MaterialManager.SetEffectTemplate e_RichoMetal
This last line specifies the e_RichoMetal effect, which is defined in objects/Effects/e_RichoMetal/Effects.con:
ObjectTemplate.Create EffectBundle e_RichoMetal ...property definitions follow...
See the Damage Tutorial for more information.
Related properties: AttGroup, DefGroup, DamageMod
This property is not a part of any defined type of object.
Used in a total of 89 .con files: Aa_guns.con, Airplanes.con, Ak47.con, At.con, Bar.con, Battleship.con, Bayonet.con, Bazooka.con, Bf110.con, Big_bombs.con, Bombs.con, Browning.con, C47.con, Carro_armato_gun.con, Carroarmato_mg.con, Claymore.con, Colt.con, Commandoknife.con, Destroyer.con, Dp.con, Exppack.con, Grant_gun.con, Grant_mg.con, Grenadeallies.con, Greyhound.con, Heavyarmor.con, Helicopter.con, K98.con, Knife.con, Lightarmor.con, M10.con, M16.con, M1garand.con, M3gmc_gun.con, Mg42.con, Mines.con, Mosquito.con, Mp40.con, Napalmfire.con, No4.con, Noarmor.con, Objectivearmor.con, Objects.con, P38.con, Panzeriv.con, Planearmor.con, Priest.con, Raftarmor.con, Sg44.con, Sherman.con, Shotgun.con, Sniper.con, Sturmgeschutz.con, Thomson.con, Throwknife.con, Tiger.con, Torpedo.con, Wasserfall.con, Wespe.con
Parent directories of these .con files: Bf1942/Levels, Bf1942/Game
Example: (from Bf1942/Levels/Liberation_of_Caen/Bf1942/Game/damage_system/AT.con)
REM **** ALLIED LIGHT TANK ********
MaterialManager.Material 134
MaterialManager.MaterialAttGroup 134
MaterialManager.MaterialDefGroup 134
MaterialManager.MaterialDamage 10
REM **** ALLIED LIGHT TANK ********
MaterialManager.Material 129
MaterialManager.MaterialAttGroup 129
MaterialManager.MaterialDefGroup 129
MaterialManager.MaterialDamage 10
rem *
rem * ***** AT gun explosion SPLASH DAMAGE*****
rem *
rem * *************************************************
rem * Infantry target
rem * *************************************************
MaterialManager.AttGroup 134
MaterialManager.DefGroup 40
MaterialManager.DamageMod 8
MaterialManager.AttGroup 134
MaterialManager.DefGroup 41
MaterialManager.DamageMod 8
MaterialManager.AttGroup 134
MaterialManager.DefGroup 42
MaterialManager.DamageMod 8
rem * *************************************************
rem * scout cars target
rem * *************************************************
MaterialManager.AttGroup 134
MaterialManager.DefGroup 43
MaterialManager.DamageMod 3
MaterialManager.AttGroup 134
MaterialManager.DefGroup 44
MaterialManager.DamageMod 3
rem * *************************************************
rem * Planes target
rem * *************************************************
MaterialManager.AttGroup 134
MaterialManager.DefGroup 60
MaterialManager.DamageMod 5
MaterialManager.AttGroup 134
MaterialManager.DefGroup 61
MaterialManager.DamageMod 5
MaterialManager.AttGroup 134
MaterialManager.DefGroup 62
MaterialManager.DamageMod 5
rem * *************************************************
rem * Default
rem * *************************************************
MaterialManager.AttGroup 134
MaterialManager.DefGroup 0
MaterialManager.DamageMod 0.0
MaterialManager.AttGroup 134
MaterialManager.DefGroup 1
MaterialManager.DamageMod 0.0
rem ***************************************************
rem * ***** AT gun explosion - DIRECT DAMAGE *****
rem ***************************************************
rem * *************************************************
rem * Infantry target
rem * *************************************************
MaterialManager.AttGroup 129
MaterialManager.DefGroup 40
MaterialManager.DamageMod 10
MaterialManager.SetEffectTemplate e_ExplSmall2
MaterialManager.AttGroup 129
MaterialManager.DefGroup 41
MaterialManager.DamageMod 10
MaterialManager.SetEffectTemplate e_ExplSmall2
MaterialManager.AttGroup 129
MaterialManager.DefGroup 42
MaterialManager.DamageMod 10
MaterialManager.SetEffectTemplate e_ExplSmall2
rem * *************************************************
rem * scout cars target
rem * *************************************************
MaterialManager.AttGroup 129
MaterialManager.DefGroup 43
MaterialManager.DamageMod 5
MaterialManager.SetEffectTemplate Exp2CascadesMetal
MaterialManager.AttGroup 129
MaterialManager.DefGroup 44
MaterialManager.DamageMod 5
MaterialManager.SetEffectTemplate Exp2CascadesMetal
rem * *************************************************
rem * Light Vehicle target
rem * *************************************************
MaterialManager.AttGroup 129
MaterialManager.DefGroup 45
MaterialManager.DamageMod 4
MaterialManager.SetEffectTemplate e_ExplArmor
MaterialManager.AttGroup 129
MaterialManager.DefGroup 46
MaterialManager.DamageMod 3.5
MaterialManager.SetEffectTemplate e_ExplArmor
MaterialManager.AttGroup 129
MaterialManager.DefGroup 47
MaterialManager.DamageMod 3
MaterialManager.SetEffectTemplate e_ExplArmor
MaterialManager.AttGroup 129
MaterialManager.DefGroup 48
MaterialManager.DamageMod 2.5
MaterialManager.SetEffectTemplate e_ExplArmor
MaterialManager.AttGroup 129
MaterialManager.DefGroup 49
MaterialManager.DamageMod 1.5
MaterialManager.SetEffectTemplate e_ExplArmor
rem * *************************************************
rem * Heavy Vehicle target
rem * *************************************************
MaterialManager.AttGroup 129
MaterialManager.DefGroup 50
MaterialManager.DamageMod 10
MaterialManager.SetEffectTemplate e_ExplArmor
MaterialManager.AttGroup 129
MaterialManager.DefGroup 51
MaterialManager.DamageMod 5
MaterialManager.SetEffectTemplate e_ExplArmor
MaterialManager.AttGroup 129
MaterialManager.DefGroup 52
MaterialManager.DamageMod 4
MaterialManager.SetEffectTemplate e_ExplArmor
MaterialManager.AttGroup 129
MaterialManager.DefGroup 53
MaterialManager.DamageMod 2.5
MaterialManager.SetEffectTemplate e_ExplArmor
MaterialManager.AttGroup 129
MaterialManager.DefGroup 54
MaterialManager.DamageMod 1
MaterialManager.SetEffectTemplate e_ExplArmor
rem * *************************************************
rem * Ship target
rem * *************************************************
MaterialManager.AttGroup 129
MaterialManager.DefGroup 55
MaterialManager.DamageMod 4.0
MaterialManager.SetEffectTemplate e_ExplArmor
MaterialManager.AttGroup 129
MaterialManager.DefGroup 56
MaterialManager.DamageMod 2.0
MaterialManager.SetEffectTemplate e_ExplArmor
MaterialManager.AttGroup 129
MaterialManager.DefGroup 57
MaterialManager.DamageMod 2.0
MaterialManager.SetEffectTemplate e_ExplArmor
MaterialManager.AttGroup 129
MaterialManager.DefGroup 58
MaterialManager.DamageMod 1.0
MaterialManager.SetEffectTemplate e_ExplArmor
MaterialManager.AttGroup 129
MaterialManager.DefGroup 59
MaterialManager.DamageMod 1.0
MaterialManager.SetEffectTemplate e_ExplArmor
rem * *************************************************
rem * Planes target
rem * *************************************************
MaterialManager.AttGroup 129
MaterialManager.DefGroup 60
MaterialManager.DamageMod 20
MaterialManager.SetEffectTemplate e_ExplArmor
MaterialManager.AttGroup 129
MaterialManager.DefGroup 61
MaterialManager.DamageMod 20
MaterialManager.SetEffectTemplate e_ExplArmor
MaterialManager.AttGroup 129
MaterialManager.DefGroup 62
MaterialManager.DamageMod 20
MaterialManager.SetEffectTemplate e_ExplArmor
MaterialManager.AttGroup 129
MaterialManager.DefGroup 63
MaterialManager.DamageMod 20
MaterialManager.SetEffectTemplate e_ExplArmor
MaterialManager.AttGroup 129
MaterialManager.DefGroup 64
MaterialManager.DamageMod 20
MaterialManager.SetEffectTemplate e_ExplArmor
rem * *************************************************
rem * Default
rem * *************************************************
MaterialManager.AttGroup 129
MaterialManager.DefGroup 0
MaterialManager.DamageMod 0.0
MaterialManager.SetEffectTemplate e_ExplAni01
MaterialManager.AttGroup 129
MaterialManager.DefGroup 1
MaterialManager.DamageMod 0.0
MaterialManager.SetEffectTemplate e_waterimpact
rem * *************************************************
rem * Material Effects
rem * *************************************************
rem * *************************************************
rem * Other Materials
rem * *************************************************
rem * *** Dry Grass (yellow) ***
MaterialManager.AttGroup 129
MaterialManager.DefGroup 2
MaterialManager.DamageMod 0.0
MaterialManager.SetEffectTemplate e_ExplAni01
rem * *** Juicy Grass (Green) ***
MaterialManager.AttGroup 129
MaterialManager.DefGroup 3
MaterialManager.DamageMod 0.0
MaterialManager.SetEffectTemplate e_ExplAni01
rem * *** Dry Dirt ***
MaterialManager.AttGroup 129
MaterialManager.DefGroup 4
MaterialManager.DamageMod 0.0
MaterialManager.SetEffectTemplate e_ExplAni01
rem * *** Wet Dirt ***
MaterialManager.AttGroup 129
MaterialManager.DefGroup 5
MaterialManager.DamageMod 0.0
MaterialManager.SetEffectTemplate e_ExplAni01
rem * *** Mud ***
MaterialManager.AttGroup 129
MaterialManager.DefGroup 6
MaterialManager.DamageMod 0.0
MaterialManager.SetEffectTemplate e_ExplAni01
rem * *** Deep Mud ***
MaterialManager.AttGroup 129
MaterialManager.DefGroup 7
MaterialManager.DamageMod 0.0
MaterialManager.SetEffectTemplate e_ExplAni01
rem * *** Gravel ***
MaterialManager.AttGroup 129
MaterialManager.DefGroup 8
MaterialManager.DamageMod 0.0
MaterialManager.SetEffectTemplate e_ExplAni01
rem * *** Frozen ground ***
MaterialManager.AttGroup 129
MaterialManager.DefGroup 9
MaterialManager.DamageMod 0.0
MaterialManager.SetEffectTemplate e_ExplFrozenSnow
rem * *** Dry Sand ***
MaterialManager.AttGroup 129
MaterialManager.DefGroup 10
MaterialManager.DamageMod 0.0
MaterialManager.SetEffectTemplate GroundExplDry
rem * *** Wet Sand ***
MaterialManager.AttGroup 129
MaterialManager.DefGroup 11
MaterialManager.DamageMod 0.0
MaterialManager.SetEffectTemplate e_ExplAni01
rem * *** Rock ***
MaterialManager.AttGroup 129
MaterialManager.DefGroup 12
MaterialManager.DamageMod 0.0
MaterialManager.SetEffectTemplate e_ExplAni01
rem * *** Forest Floor ***
MaterialManager.AttGroup 129
MaterialManager.DefGroup 13
MaterialManager.DamageMod 0.0
MaterialManager.SetEffectTemplate GroundExplDry
rem * *** Dirt Road ***
MaterialManager.AttGroup 129
MaterialManager.DefGroup 14
MaterialManager.DamageMod 0.0
MaterialManager.SetEffectTemplate e_ExplAni01
rem * *** Paved Road ***
MaterialManager.AttGroup 129
MaterialManager.DefGroup 15
MaterialManager.DamageMod 0.0
MaterialManager.SetEffectTemplate Exp2CascadesStone
rem * *** Solid Wood ***
MaterialManager.AttGroup 129
MaterialManager.DefGroup 80
MaterialManager.DamageMod 0.0
MaterialManager.SetEffectTemplate Exp2CascadesWood
rem * *** Wood ***
MaterialManager.AttGroup 129
MaterialManager.DefGroup 81
MaterialManager.DamageMod 0.0
MaterialManager.SetEffectTemplate Exp2CascadesWood
rem * *** Thin Wood ***
MaterialManager.AttGroup 129
MaterialManager.DefGroup 82
MaterialManager.DamageMod 0.0
MaterialManager.SetEffectTemplate Exp2CascadesWood
rem * *** Hollow Wood ***
MaterialManager.AttGroup 129
MaterialManager.DefGroup 83
MaterialManager.DamageMod 0.0
MaterialManager.SetEffectTemplate e_ExplSmall2
rem * *** Solid Metal ***
MaterialManager.AttGroup 129
MaterialManager.DefGroup 84
MaterialManager.DamageMod 0.0
MaterialManager.SetEffectTemplate Exp2CascadesMetal
rem * *** Metal ***
MaterialManager.AttGroup 129
MaterialManager.DefGroup 85
MaterialManager.DamageMod 0.0
MaterialManager.SetEffectTemplate Exp2CascadesMetal
rem * *** Thin Metal ***
MaterialManager.AttGroup 129
MaterialManager.DefGroup 86
MaterialManager.DamageMod 0.0
MaterialManager.SetEffectTemplate e_ExplSmall2
rem * *** Hollow Metal ***
MaterialManager.AttGroup 129
MaterialManager.DefGroup 87
MaterialManager.DamageMod 0.0
MaterialManager.SetEffectTemplate e_ExplSmall2
rem * *** Solid Stone (Rock) ***
MaterialManager.AttGroup 129
MaterialManager.DefGroup 88
MaterialManager.DamageMod 0.0
MaterialManager.SetEffectTemplate Exp2CascadesStone
rem * *** Concrete ***
MaterialManager.AttGroup 129
MaterialManager.DefGroup 92
MaterialManager.DamageMod 0.0
MaterialManager.SetEffectTemplate Exp2CascadesStone
rem * *** Reinforced Concrete ***
MaterialManager.AttGroup 129
MaterialManager.DefGroup 93
MaterialManager.DamageMod 0.0
MaterialManager.SetEffectTemplate Exp2CascadesStone
rem * *** Flesh ***
MaterialManager.AttGroup 129
MaterialManager.DefGroup 94
MaterialManager.DamageMod 0.0
MaterialManager.SetEffectTemplate e_ExplSmall2
rem * *** Exterior Stone Wall ***
MaterialManager.AttGroup 129
MaterialManager.DefGroup 100
MaterialManager.DamageMod 0.0
MaterialManager.SetEffectTemplate Exp2CascadesStone
rem * *** Interior Stone Wall ***
MaterialManager.AttGroup 129
MaterialManager.DefGroup 101
MaterialManager.DamageMod 0.0
MaterialManager.SetEffectTemplate Exp2CascadesStone
rem * *** Exterior brick Wall ***
MaterialManager.AttGroup 129
MaterialManager.DefGroup 102
MaterialManager.DamageMod 0.0
MaterialManager.SetEffectTemplate Exp2CascadesStone
rem * *** Interior brick Wall ***
MaterialManager.AttGroup 129
MaterialManager.DefGroup 103
MaterialManager.DamageMod 0.0
MaterialManager.SetEffectTemplate Exp2CascadesStone
rem * *** Exterior wooden Wall ***
MaterialManager.AttGroup 129
MaterialManager.DefGroup 104
MaterialManager.DamageMod 0.0
MaterialManager.SetEffectTemplate Exp2CascadesWood
rem * *** Interior wooden Wall ***
MaterialManager.AttGroup 129
MaterialManager.DefGroup 105
MaterialManager.DamageMod 0.0
MaterialManager.SetEffectTemplate Exp2CascadesWood
rem * *** Wooden Fence ***
MaterialManager.AttGroup 129
MaterialManager.DefGroup 106
MaterialManager.DamageMod 0.0
MaterialManager.SetEffectTemplate Exp2CascadesWood
rem * *** Sandbags ***
MaterialManager.AttGroup 129
MaterialManager.DefGroup 107
MaterialManager.DamageMod 0.0
MaterialManager.SetEffectTemplate e_ExplDrySand
rem * *** Grate ***
MaterialManager.AttGroup 129
MaterialManager.DefGroup 108
MaterialManager.DamageMod 0.0
MaterialManager.SetEffectTemplate e_ExplSmall2
rem * *** Wooden Fence ***
MaterialManager.AttGroup 129
MaterialManager.DefGroup 109
MaterialManager.DamageMod 0.0
MaterialManager.SetEffectTemplate Exp2CascadesWood
rem * *** Wire Fence ***
MaterialManager.AttGroup 129
MaterialManager.DefGroup 110
MaterialManager.DamageMod 0.0
MaterialManager.SetEffectTemplate e_ExplSmall2
rem * *** Grated Fence ***
MaterialManager.AttGroup 129
MaterialManager.DefGroup 111
MaterialManager.DamageMod 0.0
MaterialManager.SetEffectTemplate e_ExplSmall2
rem * *** Mesh Fence ***
MaterialManager.AttGroup 129
MaterialManager.DefGroup 112
MaterialManager.DamageMod 0.0
MaterialManager.SetEffectTemplate e_ExplSmall2
rem * *** Bamboo Exterior wall ***
MaterialManager.AttGroup 129
MaterialManager.DefGroup 113
MaterialManager.DamageMod 0.0
MaterialManager.SetEffectTemplate Exp2CascadesWood
rem * *** Bamboo Interior wall ***
MaterialManager.AttGroup 129
MaterialManager.DefGroup 114
MaterialManager.DamageMod 0.0
MaterialManager.SetEffectTemplate Exp2CascadesWood
rem * *** Bamboo Fence ***
MaterialManager.AttGroup 129
MaterialManager.DefGroup 115
MaterialManager.DamageMod 0.0
MaterialManager.SetEffectTemplate Exp2CascadesWood
rem * *** Bamboo Fence ***
MaterialManager.AttGroup 129
MaterialManager.DefGroup 116
MaterialManager.DamageMod 0.0
MaterialManager.SetEffectTemplate Exp2CascadesWood
rem * *** Wooden Floor ***
MaterialManager.AttGroup 129
MaterialManager.DefGroup 117
MaterialManager.DamageMod 0.0
MaterialManager.SetEffectTemplate Exp2CascadesWood
rem * *** Stone Floor ***
MaterialManager.AttGroup 129
MaterialManager.DefGroup 118
MaterialManager.DamageMod 0.0
MaterialManager.SetEffectTemplate Exp2CascadesStone
rem * *** Glass Pane ***
MaterialManager.AttGroup 129
MaterialManager.DefGroup 119
MaterialManager.DamageMod 0.0
MaterialManager.SetEffectTemplate e_ExplSmall2
rem * *** Tree Trunk ***
MaterialManager.AttGroup 129
MaterialManager.DefGroup 165
MaterialManager.DamageMod 0.0
MaterialManager.SetEffectTemplate Exp2CascadesWood
rem * *** Tree Trunk ***
MaterialManager.AttGroup 129
MaterialManager.DefGroup 166
MaterialManager.DamageMod 0.0
MaterialManager.SetEffectTemplate Exp2CascadesWood
rem * *************************************************
rem * Special items
rem * *************************************************
rem * *** Wooden door ***
MaterialManager.AttGroup 129
MaterialManager.DefGroup 190
MaterialManager.DamageMod 0.0
MaterialManager.SetEffectTemplate Exp2CascadesWood
rem * *** Metal Door ***
MaterialManager.AttGroup 129
MaterialManager.DefGroup 191
MaterialManager.DamageMod 0.0
MaterialManager.SetEffectTemplate Exp2CascadesMetal
rem * *** Wooden Ladder ***
MaterialManager.AttGroup 129
MaterialManager.DefGroup 192
MaterialManager.DamageMod 0.0
MaterialManager.SetEffectTemplate e_ExplSmall2
rem * *** Metal Ladder ***
MaterialManager.AttGroup 129
MaterialManager.DefGroup 193
MaterialManager.DamageMod 0.0
MaterialManager.SetEffectTemplate e_ExplSmall2
rem * *** Switch/control panel ***
MaterialManager.AttGroup 129
MaterialManager.DefGroup 194
MaterialManager.DamageMod 0.0
MaterialManager.SetEffectTemplate e_ExplSmall2
rem * *** Climbing net ***
MaterialManager.AttGroup 129
MaterialManager.DefGroup 195
MaterialManager.DamageMod 0.0
Go to the MaterialManager properties list page, MaterialManager page, All Properties list, or Main scripting page.