Usage:
ObjectTemplate.MagSize
number
Argument values:
argument 1: | range is -1 to 300000000; most commonly 30 |
Description: This property sets how many Projectile objects (bullets, etc.) are in a magazine. A MagSize of -1 means infinite ammo. Interestingly, engineers have an upper repair limit of 3000, and medics an upper limit of 1800, and their RoundOfFire is 10 per second. This means that engineers can repair for 5 minutes total, medics can heal for 3 minutes total.
Related properties: MagType, NumOfMag
Used in object types (always present 100% of the time): FireArms, HandFireArms
Used in a total of 191 .con files: Objects.con, Weapons.con
Parent directories of these .con files: objects/Vehicles, objects/Stationary_Weapons, objects/HandWeapons, Bf1942/Levels
Example: (from objects/Vehicles/Land/Pak40/Weapons.con)
rem *** Pak40_gun_fire ***
ObjectTemplate.Create FireArms Pak40Gun
ObjectTemplate.SetNetworkableInfo TankFireArmInfo
ObjectTemplate.LoadSoundScript Sounds/Pak40GunBarrel.ssc
ObjectTemplate.AiTemplate Pak40MainGun
ObjectTemplate.Geometry pak40_Cannon_M1
rem -------------------------------------
ObjectTemplate.AddTemplate e_MuzzPanz
rem ObjectTemplate.setPosition 0/0/0.4
ObjectTemplate.SetPosition 0/0/3
ObjectTemplate.SetRotation 0/180/0
rem -------------------------------------
ObjectTemplate.ProjectileTemplate Pak40Projectile
ObjectTemplate.ProjectilePosition 0/0/3
ObjectTemplate.MagSize 30
ObjectTemplate.NumOfMag 1
ObjectTemplate.Velocity 100
ObjectTemplate.AutoReload 1
ObjectTemplate.Reloadtime 0.35
ObjectTemplate.RoundOfFire 0.35
ObjectTemplate.FireingForce 90
ObjectTemplate.RecoilSpeed 10
ObjectTemplate.RecoilSize 25
Go to the ObjectTemplate properties list page, ObjectTemplate page, All Properties list, or Main scripting page.