Usage:
ObjectTemplate.RepairFactor
number
Argument values:
argument 1: | range is -0.15 to 0.15; most commonly 0.15 |
Description: The repair factor is for the engineer's repair kit. For example
objectTemplate.RepairFactor 0.15
gives is how much is repaired per 1/30th of a second, i.e. 4.5 Hitpoints per second.
Related properties: Hitpoints
Used in object types (and how often in each type): HandFireArms (4%)
Used in a total of 5 .con files: Commonsoldierdata.inc, Objects.con
Parent directory of these .con files: objects/Soldiers
Example: (from objects/Soldiers/Common/CommonSoldierData.inc) Go to the ObjectTemplate properties list page, ObjectTemplate page, All Properties list, or Main scripting page.
rem **** Filename: CommonSoldierData.inc
rem ** Make soldier be visible 3 times the normal culling distance
ObjectTemplate.CullRadiusScale 3.0
ObjectTemplate.HasDynamicShadow 1
rem .setSkeletonCollisionBone
ObjectTemplate.SetSkeletonCollisionBone Bip01_Head 0.02 2 40
ObjectTemplate.SetSkeletonCollisionBone Bip01_Spine2 0.08 -0.45 41
ObjectTemplate.SetSkeletonCollisionBone Bip01_L_Forearm 0.02 0.0 42
ObjectTemplate.SetSkeletonCollisionBone Bip01_R_Forearm 0.02 0.0 42
ObjectTemplate.SetSkeletonCollisionBone Bip01_L_Calf 0.03 0.3 42
ObjectTemplate.SetSkeletonCollisionBone Bip01_R_Calf 0.03 0.3 42
ObjectTemplate.SetSkeletonCollisionBone Bip01_L_Foot 0.035 0 42
ObjectTemplate.SetSkeletonCollisionBone Bip01_R_Foot 0.035 0 42
rem *** Different camera positions for different soldier poses.
ObjectTemplate.Center1pHands -0.12/-1.56/0.1
ObjectTemplate.SetPoseCameraPos c_BfSoldierStanding 0/0.65/0
ObjectTemplate.SetPoseCameraPos c_BfSoldierCrouching 0/0.12/0
ObjectTemplate.SetPoseCameraPos c_BfSoldierLying 0/-0.7/0
ObjectTemplate.SetCharacterHeight -1.00
ObjectTemplate.Geometry BodyCollision
ObjectTemplate.SetParachuteDrag 24.00
ObjectTemplate.SetParachuteSpeed 30.00
ObjectTemplate.HasArmor 1
ObjectTemplate.ExplosionForceMax 600
ObjectTemplate.ExplosionDamage 0.0
ObjectTemplate.Hitpoints 30
ObjectTemplate.Maxhitpoints 30
ObjectTemplate.TimeToLiveAfterDeath 10
ObjectTemplate.SpeedMod 0.5
ObjectTemplate.AngleMod 1
ObjectTemplate.Material 40
ObjectTemplate.HasMobilePhysics 1
ObjectTemplate.Drag 1.0
ObjectTemplate.Mass 100
ObjectTemplate.HasCollisionPhysics 1
ObjectTemplate.HasResponsePhysics 1
rem ObjectTemplate.Grip 20
ObjectTemplate.SetAnimationState 0 Lb_Stand
ObjectTemplate.SetAnimationState 1 Ub_StandAim
ObjectTemplate.SetTurnLeftRightAngle 20.0 14.0
ObjectTemplate.SetPointUpDownAngle 38.0 38.0
ObjectTemplate.SetLiePointUpDownAngle 0.0 -6.0
ObjectTemplate.Set1pFov 0.47
ObjectTemplate.NetworkableInfo NetSoldierInfo
ObjectTemplate.HpLostWhileDamageFromWater 1
ObjectTemplate.WaterDamageDelay 90
ObjectTemplate.DamageFromWater 1
ObjectTemplate.IsPortalPassing 1
ObjectTemplate.PortalPassingPosition 0/0/0
ObjectTemplate.AiTemplate Soldier
ObjectTemplate.AddTemplate SoldierEntry
ObjectTemplate.AddTemplate SoldierCamera
ObjectTemplate.SetIsFirstPersonPart 2
ObjectTemplate.AddTemplate Parachute
ObjectTemplate.SetPosition 0/0.3/0
ObjectTemplate.RepairDistance 2.0
ObjectTemplate.DisarmMinesDistance 2.0
ObjectTemplate.HealDistance 10.0
ObjectTemplate.ExplosionForceMod 75
rem *** Medic ***
ObjectTemplate.HealFactor 0.25
ObjectTemplate.SelfHealFactor 0.15
rem *** engineer repair ***
ObjectTemplate.RepairFactor 0.15