Guest User

HAB PhysBullet hab.Module.PhysBullet.AddAmmoType Docs

a guest
Jun 17th, 2018
926
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.71 KB | None | 0 0
  1.  
  2. hab.Module.PhysBullet.AddAmmoType( {
  3.  
  4.     name = "AmmoType_Name", --String ex. "smg"
  5.     tracer = TRACER_LINE_AND_WHIZ, --TRACER_ enumerator ex. TRACER_NONE http://wiki.garrysmod.com/page/Enums/TRACER
  6.  
  7.     dmgtype = DMG_BULLET, --DMG_ enumerator (type of damage dealt on impact) ex. DMG_BLAST http://wiki.garrysmod.com/page/Enums/DMG
  8.     plydmg = 25, --Int amount of damage to deal on impacting a player
  9.     npcdmg = 25, --Same as above, this value is only for legacy compatibility
  10.  
  11.     force = 5, --Int Force applied to hit entity on impact
  12.     minsplash = 0, --Int water splash size?, this value is only for legacy compatibility
  13.     maxsplash = 0, --Int water splash size?, this value is only for legacy compatibility
  14.  
  15.     maxcarry = 1024, --Int Max ammo carry, this value is only for legacy compatibility and is nonfunctional
  16.     flags = 0, --Int this value is only for legacy compatibility and is nonfunctional
  17.  
  18.     Velocity = 700, --Int initial velocity of bullet when fired
  19.     Color = Color( 0, 0, 0 ), --Color Structure, color of the bullets tracer
  20.     EffectSize = 8, --Int Bullet Impact effect size
  21.     HullSize = 0, --Int Bullet HullSize, should be 0 in most cases
  22.     Penetration = 10, --Int Bullet Penetration in mm
  23.  
  24.     BlastDamage = false, --Bool should bullet deal blast damage on impact
  25.     BlastDamageType = DMG_BLAST, --DMG_ enumerator (type of damage dealt in a radius on impact) ex. DMG_BLAST http://wiki.garrysmod.com/page/Enums/DMG
  26.     BlastDamageRadius = 0, --Int radius of blast damage
  27.  
  28.     BalisticsType = HAB_BULLET_MODEL_G1, --[[HAB_BULLET_MODEL_ enumerator, shape of bullet (effect ballistics)
  29. HAB_BULLET_MODEL_G1 -- Common standard projectile shape
  30. HAB_BULLET_MODEL_G2 -- Larger caliber usage, capped flat tip
  31. HAB_BULLET_MODEL_G7 -- All around common
  32. HAB_BULLET_MODEL_GS -- Sphere
  33. HAB_BULLET_MODEL_GL -- blunt nosed
  34. ]]
  35.     Fused = false, --Bool should bullet self detonate on timer
  36.     Proximity = false, --Bool should bullet self detonate when in proximity of a vehicle, only functional with HVAP3 and HVAP3 Compliant entities
  37.     Radius = 200, --Int Radius in meters the proximity fuse should check
  38.     TimeToLive = 10, --Int bullet will be removed after this many seconds, if fused the bullet will detonate instead of remove
  39.     TracerTimeToLive = 8, --Int bullet tracer will burn out after this many seconds
  40.  
  41.     Caliber = 7.62, --Int Bullet caliber in mm
  42.     Mass = 8, --Int Bullet Mass in grams
  43.  
  44.     Number = 1, --Int Number of bullets fired, for use with shotguns
  45.  
  46.     BulletType = HAB_BULLET_AP, --[[HAB_BULLET_ enumerator impact reaction of the bullet
  47. HAB_BULLET_AP -- directional damage with penetrate
  48. HAB_BULLET_APHE -- directional damage and explode with penetrate
  49. HAB_BULLET_HE -- explode no penetrate
  50. HAB_BULLET_HEAT -- directional explode no penetrate
  51. ]]
  52.  
  53. } )
Advertisement
Add Comment
Please, Sign In to add comment