Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SWEP.Author = "Uriel Diaz"
- SWEP.Contact = "artodiaz12@SWEPail.com"
- SWEP.Purpose = "It allows you to transform in 10 different aliens, and it is from Ben 10."
- SWEP.Instructions = "Slap yo Wrist"
- SWEP.Category = "Ben 10"
- SWEP.AnimPrefix = "idle";
- SWEP.Spawnable = true
- SWEP.AdminSpawnable = false
- SWEP.ViewModel = "models/artonym/ben10/omnitrix/omnimatrix.mdl"
- SWEP.WorldModel = "models/artonym/ben10/omnitrix/omnimatrix.mdl"
- SWEP.DrawAmmo = false
- SWEP.DrawCrosshair = false
- SWEP.Slot = 3
- SWEP.SlotPos = 4
- SWEP.AutoSwitchTo = true
- SWEP.AutoSwitchFrom = true
- SWEP.Primary.ClipSize = -1
- SWEP.Primary.DefaultClip = -1
- SWEP.Primary.Automatic = false
- SWEP.Primary.Ammo = "none"
- SWEP.Secondary.ClipSize = -1
- SWEP.Secondary.DefaultClip = -1
- SWEP.Secondary.Automatic = false
- SWEP.Secondary.Ammo = "none"
- SWEP.PrintName = "Omnitrix"
- SWEP.HoldType = "self"
- function SWEP:Initialize()
- self.Models = {}
- self.Models[1] = Model("models/artonym/ben10/aliens/heatblast_player_model.mdl")
- self.Models[2] = Model("models/artonym/ben10/aliens/upgraded.mdl")
- self:SetWeaponHoldType( self.HoldType )
- end
- sound.Add( {
- name = "omnitrix.b.push",
- channel = CHAN_STATIC,
- volume = 1.0,
- level = 100,
- pitch = { 100 },
- sound = "artonym/ben10/omnitrix/omnitrix_button_push.wav"
- } )
- sound.Add( {
- name = "omnitrix.activate",
- channel = CHAN_STATIC,
- volume = 1.0,
- level = 100,
- pitch = { 100 },
- sound = "artonym/ben10/omnitrix/omnitrix_activate.wav"
- } )
- function SWEP:PrimaryAttack()
- print("PrimaryAttack Calling...")
- self:EmitSound( "omnitrix.activate" )
- print("Sound Played")
- self.Owner:SetModel(self.Models[math.random(1, 2)])
- print("Model Selected and Set, "..tostring(self.Models[math.random(1, 2)]))
- self:SetNextPrimaryFire(CurTime()+1)
- print("PrimaryFire Finished.")
- self:GetOwner():ScreenFade( SCREENFADE.IN, Color( 0, 255, 0, 255 ), 1, 0.1 )
- self:SetNextPrimaryFire(CurTime()+10)
- end
- function SWEP:SecondaryAttack()
- self:EmitSound( "omnitrix.b.push" )
- self:SetNextSecondaryFire(CurTime()+10)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement