This page is under construction
Archives/bf1942/levels/ABF_Moon.rfa
bf1942/levels/ABF_Moon/objects/Soldiers/Common/CommonSoldierDataUS.inc
rem **** Filename: CommonSoldierDataUS.inc
rem ** Make soldier be visible 3 times the normal culling distance
ObjectTemplate.cullRadiusScale 3.0
ObjectTemplate.hasDynamicShadow 1

rem .setSkeletonCollisionBone <bonename> <bone radius in meters> <up/down adjustment> <material>
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

*************************
physics.gravity -1
*************************

ObjectTemplate.setParachuteDrag 24.00
ObjectTemplate.setParachuteSpeed 30.00

ObjectTemplate.HasArmor 1
ObjectTemplate.explosionForceMax 600
ObjectTemplate.explosionDamage 0.0
ObjectTemplate.HitPoints 35
ObjectTemplate.MaxHitPoints 50
ObjectTemplate.timeToLiveAfterDeath 30

ObjectTemplate.SpeedMod 0.05
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_StandRaiseWeaponKnifeAllies
rem was Ub_StandAim
ObjectTemplate.setTurnLeftRightAngle 20.0 14.0
ObjectTemplate.setPointUpDownAngle 38.0 38.0
ObjectTemplate.setLiePointUpDownAngle 10.0 -8.0
ObjectTemplate.set1pFov 0.45
ObjectTemplate.networkableInfo NetSoldierInfo
ObjectTemplate.hpLostWhileDamageFromWater 2
ObjectTemplate.WaterDamageDelay 120
ObjectTemplate.DamageFromWater 1
ObjectTemplate.criticalDamage 10
ObjectTemplate.hpLostWhileCriticalDamage 1
ObjectTemplate.addArmorEffect 25 e_bloodloop 0/0.4/0
ObjectTemplate.addArmorEffect 5 e_bloodloop2 0/0.4/0

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 150

rem *** Medic ***
objectTemplate.healFactor 0.25
objectTemplate.selfHealFactor 0.15

rem *** engineer repair ***
objectTemplate.repairFactor 0.15