This page is under construction
Archives/bf1942/levels/aragon-1938.rfa
bf1942/levels/aragon-1938/Objects/maxim/Objects.con
Var v_is_coop
console.useRelativePaths 0
run bf1942/game/is_coop.con
console.useRelativePaths 1


rem ******************* maxim **************************
ObjectTemplate.create PlayerControlObject maxim
ObjectTemplate.setNetworkableInfo maximBodyInfo
ObjectTemplate.saveInSeparateFile 1
ObjectTemplate.cullRadiusScale 5
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
ObjectTemplate.explosionRadius 5
ObjectTemplate.explosionDamage 1
ObjectTemplate.explosionForceMod 15
ObjectTemplate.hasArmor 1
ObjectTemplate.hitpoints 100
ObjectTemplate.maxhitpoints 100
ObjectTemplate.material 33
ObjectTemplate.addArmorEffect 35 e_richoSandbag 0/0/0.5
ObjectTemplate.addArmorEffect 0 e_Scrappak38 0/1.2/0
ObjectTemplate.addArmorEffect 0 e_ScrapMetal 0/1.2/0
ObjectTemplate.aiTemplate maxim
ObjectTemplate.timetoliveafterdeath 30
ObjectTemplate.fadeAtTimeToLiveAfterDeath 0
rem -------------------------------------
ObjectTemplate.addTemplate lodmaxim
ObjectTemplate.setPosition 0/0.65/0
rem -------------------------------------
ObjectTemplate.setSoldierExitLocation -2/0.5/0 0/0/0
ObjectTemplate.GUIIndex 19
ObjectTemplate.setVehicleIcon "Vehicle/icon_maxim.tga"
ObjectTemplate.setVehicleIconPos 75/75
ObjectTemplate.setNumberOfWeaponIcons 1
ObjectTemplate.setPrimaryAmmoIcon "Ammo/icon_maximammo.tga"
ObjectTemplate.setPrimaryAmmoBar ABAmmoBarReloadBar
ObjectTemplate.setPrimaryAmmoBar ABAmmoBarHeatBar
ObjectTemplate.setCrossHairType CHTNone
ObjectTemplate.setVehicleCategory VCLand
ObjectTemplate.setVehicleType VTArtillery
ObjectTemplate.setToolTipType TTArtillery
ObjectTemplate.setMinimapIcon "Minimap/minimap_icon_maxim_16x16.tga"

ObjectTemplate.create LodObject lodmaxim
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
rem -------------------------------------
ObjectTemplate.addTemplate maximComplex
ObjectTemplate.addTemplate maximSimple
ObjectTemplate.addTemplate maximWreck
rem -------------------------------------
ObjectTemplate.lodSelector maximLodSelector

ObjectTemplate.create RotationalBundle maximComplex
ObjectTemplate.setNetworkableInfo maximBodyInfo
ObjectTemplate.geometry maxim_carriage_m1
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
rem -------------------------------------
ObjectTemplate.addTemplate maximEntry
ObjectTemplate.addTemplate maximCrank
ObjectTemplate.setPosition 0/0/0
ObjectTemplate.addTemplate maximWheelR
ObjectTemplate.setPosition 0/0/0
ObjectTemplate.addTemplate maximWheelL
ObjectTemplate.setPosition 0/0/0
rem -------------------------------------
if v_is_coop == False
ObjectTemplate.setMaxSpeed 5/0/0
ObjectTemplate.setAcceleration 100/0/0
ObjectTemplate.setInputToYaw c_PIYaw
else
ObjectTemplate.setMaxSpeed 13/0/0
ObjectTemplate.setAcceleration 100/0/0
ObjectTemplate.setInputToYaw c_PIMouseLookX
endIf

ObjectTemplate.create SimpleObject maximWheelR
ObjectTemplate.geometry maxim_wheelR_m1

ObjectTemplate.create SimpleObject maximWheelL
ObjectTemplate.geometry maxim_wheelL_m1

ObjectTemplate.create EntryPoint maximEntry
ObjectTemplate.setEntryRadius 3.2

ObjectTemplate.create RotationalBundle maximCrank
ObjectTemplate.geometry maxim_crank_m1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.setNetworkableInfo maximBodyInfo
ObjectTemplate.loadSoundScript Sounds/pak38Carriage.ssc
rem -------------------------------------
ObjectTemplate.addTemplate maximGun
ObjectTemplate.setPosition 0/0/0
rem ObjectTemplate.setPosition 0/0/0
ObjectTemplate.addTemplate maximSeat
ObjectTemplate.setPosition 0/0.25797/-1.0
rem -------------------------------------
if v_is_coop == False
ObjectTemplate.setMinRotation -26/0/0
ObjectTemplate.setMaxRotation 26/0/0
ObjectTemplate.setMaxSpeed 20/0/0
ObjectTemplate.setAcceleration 100/0/0
ObjectTemplate.setInputToYaw c_PIMouseLookX
endIf

ObjectTemplate.create RotationalBundle maximGun
rem ObjectTemplate.geometry maxim_gun_m1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.setNetworkableInfo maximBodyInfo
ObjectTemplate.loadSoundScript Sounds/pak38GunBase.ssc
rem -------------------------------------
ObjectTemplate.addTemplate lodmaximCockpit
ObjectTemplate.addTemplate maximMG
ObjectTemplate.addTemplate maximCamera
rem ObjectTemplate.setPosition 0/0.285/0.162
ObjectTemplate.setPosition -0.0325/0.2081/-0.6809
ObjectTemplate.addTemplate maximShield
ObjectTemplate.setPosition 0/0/0
rem -------------------------------------
ObjectTemplate.setMinRotation 0/-20/0
ObjectTemplate.setMaxRotation 0/12/0
ObjectTemplate.setMaxSpeed 0/20/0
ObjectTemplate.setAcceleration 0/100/0
ObjectTemplate.setInputToPitch c_PIMouseLookY

ObjectTemplate.create SimpleObject maximShield
ObjectTemplate.geometry maxim_shield_m1
ObjectTemplate.hasResponsePhysics 1
ObjectTemplate.hasCollisionPhysics 1

ObjectTemplate.create LodObject lodmaximCockpit
rem -------------------------------------
ObjectTemplate.addTemplate maximCockpitExternal
ObjectTemplate.addTemplate maximCockpitInternal
rem ObjectTemplate.setPosition -0.0325/0.2081/-0.4809
rem -------------------------------------
ObjectTemplate.lodSelector maximCockpitSelector

ObjectTemplate.create SimpleObject maximCockpitExternal
ObjectTemplate.geometry maxim_gun_m1

ObjectTemplate.create SimpleObject maximCockpitInternal
rem ObjectTemplate.geometry 1P_maxim_gunsight

LodSelectorTemplate.create DistCompareSelector maximCockpitSelector
LodSelectorTemplate.addLodDistance 2
LodSelectorTemplate.addLodComparison 0.5

ObjectTemplate.create Camera maximCamera
ObjectTemplate.OutsideHudOffset 0/0.007/0.507

ObjectTemplate.create SeatObject maximSeat
ObjectTemplate.seatFlags c_SeatShowStandingSoldier
ObjectTemplate.seatFlags c_SeatIsOutside
ObjectTemplate.SeatAnimationUpperBody Ub_CrouchATgunGunner
ObjectTemplate.seatAnimationLowerBody Lb_CrouchTripodGunner

ObjectTemplate.create AnimatedBundle maximHandleGrip1
ObjectTemplate.addSkeletonIK Bip01_L_Hand -0.08/0/0.06 90/0/-90

ObjectTemplate.create AnimatedBundle maximHandleGrip2
ObjectTemplate.addSkeletonIK Bip01_R_Hand 0.0/0.1/-0.1 -90/180/0

ObjectTemplate.create SimpleObject maximSimple
ObjectTemplate.geometry maxim_gun_m1

ObjectTemplate.create SimpleObject maximWreck
ObjectTemplate.geometry wreck_maxim_m1
ObjectTemplate.hasCollisionPhysics 1

LodSelectorTemplate.create DistCompareSelector2 maximLodSelector
LodSelectorTemplate.hasDestroyedLod 1
LodSelectorTemplate.addLodDistance 200


ObjectTemplate.create SimpleObject maxim_Cannon_Toss
ObjectTemplate.geometry maxim_gun_m1
ObjectTemplate.setHasResponsePhysics 1
ObjectTemplate.destroyed 1
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.sinkInToLandAfterDeathSpeed 10

ObjectTemplate.create SimpleObject maxim_Mount_Toss
ObjectTemplate.geometry maxim_crank_m1
ObjectTemplate.setHasResponsePhysics 1
ObjectTemplate.destroyed 1
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.sinkInToLandAfterDeathSpeed 10

ObjectTemplate.create SimpleObject maxim_Carriage_Toss
ObjectTemplate.geometry maxim_carriage_m1
ObjectTemplate.setHasResponsePhysics 1
ObjectTemplate.destroyed 1
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.sinkInToLandAfterDeathSpeed 10