Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- hab.Module.PhysBullet.AddAmmoType( {
- name = "AmmoType_Name", --String ex. "smg"
- tracer = TRACER_LINE_AND_WHIZ, --TRACER_ enumerator ex. TRACER_NONE http://wiki.garrysmod.com/page/Enums/TRACER
- dmgtype = DMG_BULLET, --DMG_ enumerator (type of damage dealt on impact) ex. DMG_BLAST http://wiki.garrysmod.com/page/Enums/DMG
- plydmg = 25, --Int amount of damage to deal on impacting a player
- npcdmg = 25, --Same as above, this value is only for legacy compatibility
- force = 5, --Int Force applied to hit entity on impact
- minsplash = 0, --Int water splash size?, this value is only for legacy compatibility
- maxsplash = 0, --Int water splash size?, this value is only for legacy compatibility
- maxcarry = 1024, --Int Max ammo carry, this value is only for legacy compatibility and is nonfunctional
- flags = 0, --Int this value is only for legacy compatibility and is nonfunctional
- Velocity = 700, --Int initial velocity of bullet when fired
- Color = Color( 0, 0, 0 ), --Color Structure, color of the bullets tracer
- EffectSize = 8, --Int Bullet Impact effect size
- HullSize = 0, --Int Bullet HullSize, should be 0 in most cases
- Penetration = 10, --Int Bullet Penetration in mm
- BlastDamage = false, --Bool should bullet deal blast damage on impact
- BlastDamageType = DMG_BLAST, --DMG_ enumerator (type of damage dealt in a radius on impact) ex. DMG_BLAST http://wiki.garrysmod.com/page/Enums/DMG
- BlastDamageRadius = 0, --Int radius of blast damage
- BalisticsType = HAB_BULLET_MODEL_G1, --[[HAB_BULLET_MODEL_ enumerator, shape of bullet (effect ballistics)
- HAB_BULLET_MODEL_G1 -- Common standard projectile shape
- HAB_BULLET_MODEL_G2 -- Larger caliber usage, capped flat tip
- HAB_BULLET_MODEL_G7 -- All around common
- HAB_BULLET_MODEL_GS -- Sphere
- HAB_BULLET_MODEL_GL -- blunt nosed
- ]]
- Fused = false, --Bool should bullet self detonate on timer
- Proximity = false, --Bool should bullet self detonate when in proximity of a vehicle, only functional with HVAP3 and HVAP3 Compliant entities
- Radius = 200, --Int Radius in meters the proximity fuse should check
- TimeToLive = 10, --Int bullet will be removed after this many seconds, if fused the bullet will detonate instead of remove
- TracerTimeToLive = 8, --Int bullet tracer will burn out after this many seconds
- Caliber = 7.62, --Int Bullet caliber in mm
- Mass = 8, --Int Bullet Mass in grams
- Number = 1, --Int Number of bullets fired, for use with shotguns
- BulletType = HAB_BULLET_AP, --[[HAB_BULLET_ enumerator impact reaction of the bullet
- HAB_BULLET_AP -- directional damage with penetrate
- HAB_BULLET_APHE -- directional damage and explode with penetrate
- HAB_BULLET_HE -- explode no penetrate
- HAB_BULLET_HEAT -- directional explode no penetrate
- ]]
- } )
Advertisement
Add Comment
Please, Sign In to add comment