Usage:
ObjectTemplate.UseScope
boolean
Argument values:
argument 1: | 1; most commonly 1 |
Description: False by default, when set to true (1) this means the weapon uses a scope view when the right mouse button is clicked. Used for the sniper rifles and the binoculars.
Related properties: AltFireOnce, HasDynamicShadow
Used in object types (and how often in each type): HandFireArms (12%)
Used in a total of 11 .con files: Objects.con
Parent directory of these .con files: objects/HandWeapons
Example: (from objects/HandWeapons/K98/Objects.con)
rem ----------------------------------------------------------
rem Firearm: K98Sniper
rem ----------------------------------------------------------
ObjectTemplate.Create HandFireArms K98Sniper
ObjectTemplate.NetworkableInfo HandFireArmsInfo
ObjectTemplate.ItemIndex 3
ObjectTemplate.ZoomFov 0.1
ObjectTemplate.UnZoomBetweenFireTime 3.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 1.6
ObjectTemplate.RoundOfFire 0.3
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.SetAmomBarPosX 6
ObjectTemplate.SetAmomBarPosY -17
ObjectTemplate.SetAmomBarTextPosX 5
ObjectTemplate.SetAmomBarTextPosY 10
ObjectTemplate.SetScopeIcon "sniper.tga"
ObjectTemplate.SetSniperSight 1
ObjectTemplate.SetCrossHairType CHTNone
ObjectTemplate.AiTemplate SniperK98AI
rem ObjectTemplate.positionalSpeedInDof CRD_NONE/800/0/0
ObjectTemplate.SoldierZoomFov 0.6
ObjectTemplate.SoldierZoomPosition -0.1/0/0
ObjectTemplate.SoldierCameraPosition -0.02/-0.04/0.1
ObjectTemplate.AddRootSpeed 0
ObjectTemplate.AmmoType 1
ObjectTemplate.TimeToNotAllowChange 0.25
Rem *** Deviation Begin *****
ObjectTemplate.Velocity 2000
ObjectTemplate.SetSpeedDev 0.8 0.2 0.2 0.1
ObjectTemplate.SetMiscDev 2.5 2.5 0.1
Rem *** Deviation End *****
ObjectTemplate.FireInCameraDof 1
ObjectTemplate.LoadSoundScript Sounds/k98.ssc
ObjectTemplate.CreateSkeleton animations/K98.ske
ObjectTemplate.UseSkeletonPartAsMain K98
ObjectTemplate.AddTemplate K98SniperLod
ObjectTemplate.AddTemplate e_MuzzGun
ObjectTemplate.SetInputId -1
ObjectTemplate.Startoneffects 0
ObjectTemplate.SetPosition 0/0.05/0.84
ObjectTemplate.SetRotation 0/0/0
ObjectTemplate.AddTemplate e_Shell792D
ObjectTemplate.SetInputId -1
ObjectTemplate.Startoneffects 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.