Hey,
Just a quick SWEP needed.
It needs to have no model, and when somebody looks at you it looks like you are aiming an invisible pistol.
On left click, it needs to play a random sounds from a list of say, 7 different sounds.
The sound should only be heard from a certain distance.
That is all.
If anybody could help, it would be greatly appreciated <3
Thanks in advance :smile:
your welcome
[lua]
SWEP.PrintName = "a swep with sounds (hooo no!!)"
SWEP.Slot = 3
SWEP.SlotPos = 7
SWEP.DrawAmmo = false
SWEP.DrawCrosshair = false
SWEP.ViewModel = ""
SWEP.WorldModel = ""
SWEP.HoldType = "pistol"
SWEP.Weight = 1
SWEP.AutoSwitchTo = true
SWEP.AutoSwitchFrom = false
SWEP.Spawnable = true
SWEP.AdminSpawnable = true
SWEP.Author = "gravelhunter"
SWEP.Contact = "nope.avi"
SWEP.Purpose = "I have absolutely no clue but it makes noises :D"
SWEP.Instructions = "click to make some weired noises"
function SWEP:Initialize()
end
local AnnoyingAsHellSounds = {"vo/npc/female01/hi01.wav",
"vo/npc/female01/hitingut01.wav",
"vo/coast/odessa/male01/nlo_cubdeath01.wav",
"vo/npc/male01/answer20.wav",
"vo/npc/male01/answer39.wav",
"vo/npc/male01/fantastic01.wav",
"vo/npc/male01/hi01.wav",
"vo/gman_misc/gman_riseshine.wav",
"npc/combine_soldier/vo/block64jet.wav",
"npc/combine_soldier/vo/callcontactparasitics.wav",
"npc/combine_soldier/vo/heavyresistance.wav",
"vo/npc/male01/pain05.wav",
"vo/npc/male01/pain08.wav",
"vo/npc/male01/pardonme01.wav",
"vo/npc/male01/uhoh.wav",
"vo/npc/male01/vanswer01.wav",
"vo/npc/male01/vanswer14.wav",
"vo/npc/male01/watchwhat.wav",
"vo/trainyard/male01/cit_hit01.wav",
"vo/trainyard/male01/cit_hit02.wav",
"vo/trainyard/male01/cit_hit03.wav",
"vo/trainyard/male01/cit_hit04.wav",
"vo/trainyard/male01/cit_hit05.wav"}
function SWEP:PrimaryAttack()
self.Weapon:EmitSound(Sound(AnnoyingAsHellSounds[math.random(1,table.Count(AnnoyingAsHellSounds))]),100,math.random(95,105))
end
function SWEP:SecondaryAttack()
return
end
[/lua]
if you want it in add-on format
[url]http://upit.cc/f/eac82234.zip[/url]
:D
Sorry, you need to Log In to post a reply to this thread.