Advertisement
rebounded

ProPain REBOUNDS SWEP -WIP-

Aug 3rd, 2016
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.12 KB | None | 0 0
  1. AddCSLuaFile()
  2.  
  3. SWEP.PrintName = "ProPain"
  4. SWEP.Author = "-♑❤Rebound-❤♑"
  5. SWEP.Purpose = "M1=beat the fuck outta peopl3! M2=explode!"
  6.  
  7. SWEP.Slot = 1
  8. SWEP.SlotPos = 2
  9.  
  10. SWEP.Spawnable = true
  11. SWEP.WElements = {
  12. ["element_name"] = { type = "Model", model = "models/props_c17/canister02a.mdl", bone = "ValveBiped.Bip01_R_Hand", rel = "", pos = Vector(3.881, 1.606, -9.997), angle = Angle(5.294, -5.435, 180), size = Vector(0.368, 0.316, 0.446), color = Color(255, 255, 255, 255), surpresslightning = false, material = "", skin = 0, bodygroup = {} }
  13. }
  14. SWEP.VElements = {
  15. ["element_name"] = { type = "Model", model = "models/props_c17/canister02a.mdl", bone = "ValveBiped.Bip01_R_Hand", rel = "", pos = Vector(5.441, 0.6, -14.469), angle = Angle(-180, -52.361, -3.73), size = Vector(0.423, 0.423, 0.423), color = Color(255, 255, 255, 255), surpresslightning = false, material = "", skin = 0, bodygroup = {[1] = 1} }
  16. }
  17. SWEP.ViewModelFlip = false
  18. SWEP.HoldType = "melee"
  19. SWEP.ViewModel = Model( "models/weapons/c_stunstick.mdl" )
  20. SWEP.WorldModel = Model( "models/weapons/c_stunstick.mdl" )
  21. SWEP.ShowViewModel = true
  22. SWEP.ShowWorldModel = true
  23. SWEP.ViewModelBoneMods = {
  24. ["ValveBiped.Bip01_Spine4"] = { scale = Vector(1.2, 1.034, 1.384), pos = Vector(-5.742, 0, 0), angle = Angle(0, 0, 0) }
  25. }
  26. SWEP.ViewModelFOV = 68.542713567839
  27. SWEP.UseHands = true
  28. SWEP.ShowViewModel = true
  29. SWEP.ShowWorldModel = true
  30. SWEP.ViewModelBoneMods = {
  31. ["ValveBiped.Bip01_Spine4"] = { scale = Vector(1.2, 1.034, 1.384), pos = Vector(-5.742, 0, 0), angle = Angle(0, 0, 0) }
  32. }
  33. SWEP.Primary.Ammo = "none"
  34.  
  35. SWEP.Secondary.Ammo = "none"
  36.  
  37. SWEP.DrawAmmo = false
  38. SWEP.AdminOnly = false
  39.  
  40. SoundData
  41. {
  42.  
  43. "single_shot" "Weapon_StunStick.Swing"
  44. "melee_miss" "Weapon_StunStick.Melee_Miss"
  45. "melee_hit" "Weapon_StunStick.Melee_Hit"
  46. "melee_hit_world" "Weapon_StunStick.Melee_HitWorld"
  47. }
  48.  
  49. function SWEP:Initialize()
  50.  
  51. self:SetHoldType( "melee" )
  52.  
  53. end
  54.  
  55. function SWEP:Reload()
  56. end
  57.  
  58. function SWEP:PrimaryAttack()
  59.  
  60. self:SetNextPrimaryFire( CurTime() + 0.1 )
  61.  
  62. self:EmitSound( ShoundData )
  63.  
  64. if ( !SERVER ) then return end
  65.  
  66. local Forward = self.Owner:EyeAngles():Forward()
  67.  
  68. local ent = ents.Create( "hunter_flechette" )
  69. if ( IsValid( ent ) ) then
  70.  
  71. ent:SetPos( self.Owner:GetShootPos() + Forward * 32 )
  72. ent:SetAngles( self.Owner:EyeAngles() )
  73. ent:Spawn()
  74.  
  75. ent:SetVelocity( Forward * 2000 )
  76. ent:SetOwner( self.Owner )
  77.  
  78. end
  79.  
  80. end
  81.  
  82. function SWEP:SecondaryAttack(explode)
  83. local eyetrace = <PLAYER>:GetEyeTrace();
  84.  
  85. local explode = ents.Create( "env_explosion" ) //creates the explosion
  86. explode:SetPos( eyetrace.HitPos )
  87. //This will be where the player is looking (using)
  88. explode:SetOwner( <PLAYER> ) // this sets you as the person who made the explosion
  89. explode:Spawn() //this actually spawns the explosion
  90. explode:SetKeyValue( "iMagnitude", "220" ) //the magnitude
  91. explode:Fire( "Explode", 0, 0 )
  92. explode:EmitSound( "weapon_AWP.Single", 400, 400 ) //the sound for the explosion, and how far away it can be heard
  93. end
  94.  
  95. function SWEP:ShouldDropOnDie()
  96.  
  97. return false
  98.  
  99. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement