This page is under construction
archives/bf1942/levels/fht_siege_of_zeeland-1940.rfa
bf1942/levels/fht_siege_of_zeeland-1940/Objects/Wz36/Objects.con
Var v_is_coop
console.useRelativePaths 0
run bf1942/game/is_coop.con
console.useRelativePaths 1


rem *** Wz36 ***
ObjectTemplate.create PlayerControlObject Wz36
ObjectTemplate.setNetworkableInfo Wz36BodyInfo
ObjectTemplate.saveInSeparateFile 1
objectTemplate.cullRadiusScale 5
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
ObjectTemplate.hasDynamicShadow 1
ObjectTemplate.explosionRadius 4
ObjectTemplate.explosionDamage 1
ObjectTemplate.hasArmor 1
ObjectTemplate.hitpoints 100
ObjectTemplate.maxhitpoints 100
ObjectTemplate.material 33
ObjectTemplate.addArmorEffect 30 e_PanzDamage 0/1/-1.4
ObjectTemplate.addArmorEffect 0 e_ExplGas 0/0/0
ObjectTemplate.addArmorEffect 0 e_scrapmetal 0/0/0
ObjectTemplate.aiTemplate Wz36
ObjectTemplate.timetoliveafterdeath 0
rem -------------------------------------
ObjectTemplate.addTemplate lodWz36
ObjectTemplate.setPosition 0/0.4/0
rem -------------------------------------
ObjectTemplate.setSoldierExitLocation -2/0.5/0 0/0/0
ObjectTemplate.GUIIndex 19
ObjectTemplate.setVehicleIcon "Vehicle/Icon_Wz36.tga"
ObjectTemplate.setVehicleIconPos 51/69
ObjectTemplate.setNumberOfWeaponIcons 1
ObjectTemplate.setPrimaryAmmoIcon "Ammo/Icon_cannon.tga"
ObjectTemplate.setPrimaryAmmoBar ABAmmoBarReloadBar
ObjectTemplate.setCrossHairType CHTIcon
ObjectTemplate.setVehicleCategory VCLand
ObjectTemplate.setVehicleType VTArtillery
ObjectTemplate.setToolTipType TTArtillery
ObjectTemplate.setMinimapIcon "Minimap/minimap_icon_artillery_16x16.tga"
ObjectTemplate.artPos 1
ObjectTemplate.DirBarXScale 25
ObjectTemplate.DirBarYScaleAbove 40
ObjectTemplate.DirBarYScaleBelow 0
ObjectTemplate.DirBarYScaleMin -90
ObjectTemplate.DirBarYScaleMax -50



rem *** lodWz36 ***
ObjectTemplate.create LodObject lodWz36
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
rem -------------------------------------
ObjectTemplate.addTemplate Wz36Complex
ObjectTemplate.addTemplate Wz36Simple
rem -------------------------------------
ObjectTemplate.lodSelector Wz36LodSelector


rem *** Wz36Complex ***
ObjectTemplate.create RotationalBundle Wz36Complex
ObjectTemplate.setNetworkableInfo Wz36TurretInfo
ObjectTemplate.geometry Wz36_carriage_M1
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
rem -------------------------------------
ObjectTemplate.addTemplate Wz36Entry
ObjectTemplate.setPosition 0/0.0/1.2
ObjectTemplate.addTemplate Wz36GunBase
ObjectTemplate.setPosition 0/0.3/0.15
ObjectTemplate.addTemplate Wz36_RotatingCrank
ObjectTemplate.setPosition -0.29/0.27/-0.115
ObjectTemplate.addTemplate Wz36Gunner_Seat
ObjectTemplate.setPosition -0.53/0.4/-0.9
ObjectTemplate.addTemplate Wz36GunnerCameraHolder
ObjectTemplate.setPosition -0.275/0.725/-0.3
rem -------------------------------------
if v_is_coop == False
ObjectTemplate.setMaxSpeed 5/0/0
ObjectTemplate.setAcceleration 100/0/0
ObjectTemplate.setInputToYaw c_PIYaw
else
ObjectTemplate.setMaxSpeed 8/0/0
ObjectTemplate.setAcceleration 100/0/0
ObjectTemplate.setInputToYaw c_PIMouseLookX
endIf

rem ***Wz36_RotatingCrank***
ObjectTemplate.create RotationalBundle Wz36_RotatingCrank
ObjectTemplate.geometry wz36_crank
rem ---------------------------------------------------
rem ---------------------------------------------------
ObjectTemplate.setMaxSpeed 800/0/0
ObjectTemplate.setAcceleration 1000/0/0
ObjectTemplate.setInputToYaw c_PIMouseLookY


rem *** Wz36Entry ***
ObjectTemplate.create EntryPoint Wz36Entry
ObjectTemplate.setEntryRadius 3.8

rem *** Wz36GunBase ***
ObjectTemplate.create RotationalBundle Wz36GunBase
ObjectTemplate.setNetworkableInfo Wz36TurretInfo
ObjectTemplate.loadSoundScript Sounds/Wz36Turret.ssc
rem -------------------------------------
ObjectTemplate.addTemplate Wz36CannonBase
rem -------------------------------------
if v_is_coop == False
ObjectTemplate.setMinRotation -5/0/0
ObjectTemplate.setMaxRotation 5/0/0
ObjectTemplate.setMaxSpeed 10/0/0
ObjectTemplate.setAcceleration 100/0/0
ObjectTemplate.setInputToYaw c_PIMouseLookX
endIf

rem *** Wz36CannonBase ***
ObjectTemplate.create RotationalBundle Wz36CannonBase
ObjectTemplate.setNetworkableInfo Wz36GunInfo
ObjectTemplate.loadSoundScript Sounds/Wz36gunbase.ssc
ObjectTemplate.geometry Wz36_gun_base
ObjectTemplate.hasCollisionPhysics 1
rem -------------------------------------
ObjectTemplate.addTemplate Wz36Cannon
ObjectTemplate.setPosition 0/0.05/-0.75
rem -------------------------------------
ObjectTemplate.setMinRotation 0/-25/0
ObjectTemplate.setMaxRotation 0/10/0
ObjectTemplate.setMaxSpeed 0/10/0
ObjectTemplate.setAcceleration 0/100/0
ObjectTemplate.setInputToPitch c_PIMouseLookY

rem *** Wz36GunnerCameraHolder ***
ObjectTemplate.create RotationalBundle Wz36GunnerCameraHolder
ObjectTemplate.setNetworkableInfo Wz36GunInfo
rem -------------------------------------
ObjectTemplate.addTemplate Wz36GunnerCamera
rem -------------------------------------
if v_is_coop == False
ObjectTemplate.setMinRotation -5/-25/0
ObjectTemplate.setMaxRotation 5/10/0
ObjectTemplate.setMaxSpeed 10/10/0
ObjectTemplate.setAcceleration 100/100/0
ObjectTemplate.setInputToYaw c_PIMouseLookX
ObjectTemplate.setInputToPitch c_PIMouseLookY
else
ObjectTemplate.setMinRotation 0/-25/0
ObjectTemplate.setMaxRotation 0/10/0
ObjectTemplate.setMaxSpeed 0/10/0
ObjectTemplate.setAcceleration 0/100/0
ObjectTemplate.setInputToPitch c_PIMouseLookY
endIf

rem *** Wz36GunnerCamera ***
ObjectTemplate.create Camera Wz36GunnerCamera
ObjectTemplate.CVMExternTrace 1


rem *** Wz36GunnerSeat ***
ObjectTemplate.create SeatObject Wz36Gunner_Seat
ObjectTemplate.seatFlags c_SeatShowFullBodySoldier
ObjectTemplate.seatFlags c_SeatIsOutside



rem *** Wz36Simple ***
ObjectTemplate.create SimpleObject Wz36Simple
ObjectTemplate.geometry Wz36_low

rem *** Wz36LodSelector***
LodSelectorTemplate.create DistCompareSelector2 Wz36LodSelector
LodSelectorTemplate.hasDestroyedLod 0
LodSelectorTemplate.addLodDistance 200