Usage:
ObjectTemplate.SetSniperSight
boolean
Argument values:
argument 1: | 0, 1; most commonly 1 |
Description: This property is a boolean that determines how the site appears when using binoculars or a sniper gun. If it is not used (set to 0), the reticle will appear as the circle with a dot in it, as in the binoculars. If set to 1, the reticle will be the horizontal line with a vertical line below (set with SetScopeIcon).
Related properties: SetScopeIcon
Used in object types (and how often in each type): HandFireArms (4%)
Used in a total of 4 .con files: Objects.con
Parent directory of these .con files: objects/HandWeapons
Example: (from objects/HandWeapons/Gewehr43_zf4/Objects.con)
rem ----------------------------------------------------------
rem Firearm: Gewehr43_zf4
rem ----------------------------------------------------------
ObjectTemplate.Create HandFireArms Gewehr43_zf4
ObjectTemplate.NetworkableInfo HandFireArmsInfo
ObjectTemplate.ItemIndex 3
ObjectTemplate.ZoomFov 0.2
ObjectTemplate.UnZoomBetweenFireTime 0
ObjectTemplate.UseScope 1
ObjectTemplate.ProjectileTemplate k98Projectile
ObjectTemplate.HasDynamicShadow 1
ObjectTemplate.ProjectilePosition 0/0/0
ObjectTemplate.MagSize 5
ObjectTemplate.NumOfMag 3
ObjectTemplate.MagType 0
ObjectTemplate.Reloadtime 3
ObjectTemplate.RoundOfFire 1.5
ObjectTemplate.FireOnce 1
ObjectTemplate.AltFireOnce 1
ObjectTemplate.GUIIndex 112
ObjectTemplate.SetHudAmmoType ATAmmoBar
ObjectTemplate.SetAmmoBar "Ingame/Magbar_Rifle_empty_32x64.tga"
ObjectTemplate.SetAmmoBarFill "Ingame/Magbar_Rifle_full_32x64.tga"
ObjectTemplate.SetAmmoBarSize 20
ObjectTemplate.SetScopeIcon "sniper.tga"
ObjectTemplate.SetSniperSight 1
ObjectTemplate.SetCrossHairType CHTNone
ObjectTemplate.AiTemplate Gewehr43_zf4AI
rem ObjectTemplate.positionalSpeedInDof CRD_NONE/800/0/0
ObjectTemplate.SoldierZoomFov 0.6
ObjectTemplate.SoldierZoomPosition 0/0/0
ObjectTemplate.SoldierCameraPosition 0.03/-0.05/0.1
ObjectTemplate.AddRootSpeed 0
ObjectTemplate.AmmoType 1
ObjectTemplate.TimeToNotAllowChange 0.25
Rem *** Deviation Begin *****
ObjectTemplate.Velocity 2500
ObjectTemplate.SetHasRecoilForce 1
ObjectTemplate.SetGoBackOnRecoil 1
ObjectTemplate.SetRecoilForceUp CRD_UNIFORM/1.3/2.6/0
ObjectTemplate.SetRecoilForceLeftRight CRD_UNIFORM/-0.1/-0.5/0
rem ** FireDev harge large a reticule/how quickly it expands/how quickly it returns
rem ** setDevMod(float devModStand, float devModCrouch, float devModLie)
rem ** Mindev sets the size of the reticule/deviation of bullets **
rem ** Turndev setTurnDev(float max, float addPitch, float addYaw, float sub)
rem ** SpeedDev setSpeedDev(float max, float addForward, float addStrafe, float sub)
rem ** MiscDev setMiscDev(float max, float addJump, float sub)
ObjectTemplate.SetFireDev 1.1 6 0.025
ObjectTemplate.SetDevMod 1.1 0.7 0.3
ObjectTemplate.SetMinDev 0.1
ObjectTemplate.SetTurnDev 0 0 0 0
ObjectTemplate.SetSpeedDev 1.1 0.2 0.1 0.1
ObjectTemplate.SetMiscDev 0 0 0
Rem *** Deviation End *****
ObjectTemplate.FireInCameraDof 1
ObjectTemplate.LoadSoundScript Sounds/k98.ssc
ObjectTemplate.CreateSkeleton animations/Gewehr43_zf4.ske
ObjectTemplate.UseSkeletonPartAsMain Base
ObjectTemplate.AddTemplate Gewehr43_zf4SniperLod
ObjectTemplate.AddTemplate e_MuzzSg44
rem ObjectTemplate.setInputId -1
ObjectTemplate.SetStartOnEffects 0
ObjectTemplate.SetPosition 0/0.05/0.84
ObjectTemplate.SetRotation 0/0/0
ObjectTemplate.AddTemplate e_shell792mm
rem ObjectTemplate.setInputId -1
ObjectTemplate.SetStartOnEffects 1
ObjectTemplate.SetPosition 0/0.05/0.41
ObjectTemplate.SetRotation 0/0/0
Go to the ObjectTemplate properties list page, ObjectTemplate page, All Properties list, or Main scripting page.