Usage:
ObjectTemplate.SpeedMod
number
Argument values:
argument 1: | range is 0.05 to 3; most commonly 2 |
Description: This property modifies the amount of damage due to a collision. Setting this value lower means the vehicle will take less damage from collisions. In general, tanks tend to use a value of 0.75, while some (but not all) lighter vehicles and planes use 2.
See the Damage Tutorial for more information.
Related properties: AddArmorEffect, CriticalDamage, ExplosionDamage, ExplosionForceMod, HasArmor, HasCollisionPhysics, HasResponsePhysics, Hitpoints, HpLostWhileCriticalDamage, HpLostWhileUpSideDown, Material
Used in object types (and how often in each type): PlayerControlObject (30%)
Used in a total of 94 .con files: Commonsoldierdata.inc, Objects.con
Parent directories of these .con files: objects/Vehicles, objects/Soldiers, Bf1942/Levels
Example: (from objects/Vehicles/Land/Schwimmwagen/Objects.con)
rem *** Schwimmwagen ***
ObjectTemplate.Create PlayerControlObject Schwimmwagen
ObjectTemplate.NameTagOffset 0/-0.2/0
ObjectTemplate.SetNetworkableInfo SchwimmwagenBodyInfo
ObjectTemplate.SaveInSeparateFile 1
ObjectTemplate.CullRadiusScale 2.5
ObjectTemplate.HasMobilePhysics 1
ObjectTemplate.HasDynamicShadow 1
ObjectTemplate.ExplosionRadius 8
ObjectTemplate.ExplosionDamage 5
ObjectTemplate.Drag 1.5
ObjectTemplate.Mass 2500
ObjectTemplate.HasCollisionPhysics 1
ObjectTemplate.HasResponsePhysics 1
rem ObjectTemplate.damageFromWater 1
ObjectTemplate.HasArmor 1
ObjectTemplate.SpeedMod 1
ObjectTemplate.ExitTimer 0.75
ObjectTemplate.Hitpoints 50
ObjectTemplate.Maxhitpoints 50
ObjectTemplate.Material 45
ObjectTemplate.CriticalDamage 6
ObjectTemplate.ExplosionForceMod 20
ObjectTemplate.HpLostWhileCriticalDamage 2
ObjectTemplate.HpLostWhileUpSideDown 5
rem ObjectTemplate.hpLostWhileDamageFromWater 5
ObjectTemplate.AddArmorEffect 25 e_Kubeldamage 0/1.2/0
ObjectTemplate.AddArmorEffect 6 e_KubelFire 0/1.2/0
ObjectTemplate.AddArmorEffect 0 e_scrapmetal_willy 0/0/0
ObjectTemplate.AddArmorEffect 0 e_ExplGas 0/1.2/0
ObjectTemplate.AddArmorEffect -1 WaterWaterExplosion 0/0/0
ObjectTemplate.AiTemplate Schwimm
rem -------------------------------------
ObjectTemplate.AddTemplate lodSchwimmwagen
ObjectTemplate.AddTemplate Schwimmwagen_Rudder_Stern
ObjectTemplate.SetPosition 0/-1.25/2
ObjectTemplate.SetRotation 0/0/-90
ObjectTemplate.AddTemplate Schwimmwagen_Rudder_Aft
ObjectTemplate.SetPosition 0/-1.25/-2
ObjectTemplate.SetRotation 0/0/-90
ObjectTemplate.AddTemplate Schwimmwagen_Floater
ObjectTemplate.SetPosition 1.2/0.6/-1.499
ObjectTemplate.AddTemplate Schwimmwagen_Floater
ObjectTemplate.SetPosition -1.199/0.6/-1.499
ObjectTemplate.AddTemplate Schwimmwagen_Floater
ObjectTemplate.SetPosition 1.2/0.6/1.5
ObjectTemplate.AddTemplate Schwimmwagen_Floater2
ObjectTemplate.SetPosition -1.199/0.6/1.5
rem -------------------------------------
ObjectTemplate.SetSoldierExitLocation -1.5/0/0 0/0/0
ObjectTemplate.GUIIndex 71
ObjectTemplate.SetVehicleIcon "Vehicle/Icon_Schwimmwagen.tga"
ObjectTemplate.SetVehicleIconPos 50/80
ObjectTemplate.SetPrimaryAmmoBar ABNone
ObjectTemplate.SetCrossHairType CHTNone
ObjectTemplate.SetVehicleCategory VCLand
ObjectTemplate.SetVehicleType VTScoutCar
ObjectTemplate.SetToolTipType TTSchwimmwagen
ObjectTemplate.HasRestrictedExit 1
Go to the ObjectTemplate properties list page, ObjectTemplate page, All Properties list, or Main scripting page.