Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Elecro

Pages: 1 ... 23 24 25 26 27 [28] 29 30 31 32 33 ... 352
406
Off Topic / Re: Need help debugging Garry's Mod addon
« on: July 01, 2013, 08:23:33 PM »
If you have a Facepunch account, you can ask there, you're more guaranteed to get rated dumb a bunch of times more help than here

those guys are legit jackasses.

407
Off Topic / Re: Vote on forums village idiot
« on: July 01, 2013, 08:03:04 PM »
why are you making fun of yourself

it's fun.

408
Off Topic / Re: What does your cat let you do?
« on: July 01, 2013, 07:59:55 PM »
My cat jumped up on my desk as i'm reading this.

He's watching you all.

<3

my cat always jumps on my keyboard

409
Off Topic / Re: Vote on forums village idiot
« on: July 01, 2013, 07:59:21 PM »
something idiotic i guess

You're right... the only thing that comes to mind is gddr5 ram.

410
Off Topic / Re: Need help debugging Garry's Mod addon
« on: July 01, 2013, 07:58:46 PM »
idk, it just looks like a mess cuz i dont understand it

do u even lua?

411
Off Topic / Re: Vote on forums village idiot
« on: July 01, 2013, 07:57:50 PM »

412
Off Topic / Re: Need help debugging Garry's Mod addon
« on: July 01, 2013, 07:55:40 PM »
that looks like a mess of a script

Do you mean that its not organized or badly done?

413
Off Topic / Need help debugging Garry's Mod addon
« on: July 01, 2013, 07:54:40 PM »
Here's my code:

Quote
SWEP.Author = Elecro
SWEP.Contact = "N/A"
SWEP.Purpose = "Throw chairs at people lol"
SWEP.Instructions = "Press the left mouse button and fire!!!"

SWEP.Category = "Chair Throwing Devices"

SWEP.Spawnable = false
SWEP.AdminSpawnable = true

SWEP.ViewModel = "models/weapons/v_RPG.mdl"
SWEP.WorldModel = "models/weapons/w_rocket_launcher.mdl"

SWEP.Primary.ClipSize = -1
SWEP.Primary.DefaultClip = -1
SWEP.Primary.Automatic = true
SWE.Primary.Ammo = "none"

SWEP.Secondary.ClipSize = -1
SWEP.Secondary.DefaultClip = -1
SWEP.Secondary.Automatic = true
SWEP.Secondary.Ammo = "none"

local ShootSound = Sound(Metal.SawbladeStick)

function SWEP:Reload()
end
 
function SWEP:Think()
end

function SWEP:throw_attack (model_file)

   local tr = self.Owner:GetEyeTrack()

   self:EmitSound(ShootSound)
   self.BaseClass.ShootEffects(self)

   //We now exit if this function is not running serverside

   if (!SERVER) then return end
   
   local ent = ents.Create("prop_physics")
   ent:SetModel(model_file)
   
   ent:SetPos(self.Owner:EyePos() + (self.Owner:GetAimVector() * 16))
   ent:SetAngles(self.Owner:EyeAngles())
   ent:Spawn()
   
   local phys = ent:GetPhysicsObject()
   
   if !(phys && IsValid(phys)) then ent:Remove() return end
   
   phys:ApplyForceCenter)self.Owner:GetAimVector():GetNormalized() * math.pow(tr.HitPos:Length(), 3))
   
   cleanup.Add(self.Owner, "props", ent)
   
   undo.Create ("Thrown_SWEP_Entity")
      undo.AddEntity (ent)
      undo.SetPlayer (self.Owner)
   undo.Finish()
end

function SWEP:PrimaryAttack()
   self:throw_attack("models/props/cs_office/Chair_office.mdl")
end

function SWEP:SecondaryAttack()
   self:throw_attack("models/props_c17/FurnitureChair001a.mdl")
end
   
   
//Here we begin with the server and client shi

if SERVER then //Where the init.lua stuff goes.

//Makes sure clientss download the file
AddCSLuaFile("shared.lua")

//How heavy the weapon is
SWEP.Weight = 5

//Allow switching to/from when weapons are picked up
SWEP.AutoSwitchTo = false
SWEP.AutoSwitchFrom = false

elseif CLIENT then //Where cl_init.lua stuff goes

//Name of SWEP, as appearing in the weapon tab in the spawn menu
SWEP.PrintName = "Mr. Chair Thrower"

//Sets where the weapon is found in the switching menu
SWEP.Slot = 3
SWEP.SlotPos = 2

//Drawing ammunition for the weapon
SWEP.DrawAmmo = false

//Sets the crosshair when weapon is deployed
SWEP.DrawCrosshair = false

//Ensures a clean looking notification when a chair is undone, how it works:
//When you create an undo, you specify the ID:
//   undo.Create("Some_Indentity)
//By creating an associated language, we can make the undo notification look better:
//   language.Add("Undone_Some_Identity", "Message")

   language.Add("Undone_Thrown_SWEP_Entity, "Undone Thrown SWEP Entity")

end

Someone told me you could put everything in shared.lua so I did, I tried to put them in the proper places and that didn't work either. I checked over, I didn't see and grammar errors. Could someone help me?

414
Off Topic / Re: What does your cat let you do?
« on: July 01, 2013, 07:46:15 PM »

415
Off Topic / Re: Funny Internet advertisements
« on: July 01, 2013, 07:33:02 PM »
"Click for a roman orgy!!!"

*denies me because im under 18*

screw you i wanted to have a orgy with bitches

416
Off Topic / Re: What does your cat let you do?
« on: July 01, 2013, 06:58:28 PM »
he let me take a hammer to his head

417
Off Topic / Re: Vote on forums village idiot
« on: July 01, 2013, 06:33:56 PM »
i love you all <3

418
Off Topic / Re: New AVGN Video
« on: July 01, 2013, 03:30:50 AM »
forget you elecro #yolo

say that to my face bro fite me irl do u even lift?

420
Off Topic / Re: Why the forget does my cursor keep flashing.
« on: June 30, 2013, 11:42:55 PM »
sometimes mine goes back after i unplug and plug back in my mouse.

Pages: 1 ... 23 24 25 26 27 [28] 29 30 31 32 33 ... 352