Garry's Mod
The Brain Ventilator
47 comentarios
dawg wit da butta onem  [autor] 9 ABR 2023 a las 22:11 
I think you're right, there's a variable called DrawAmmo that displays the default HL2 hud so since the smg uses two ammo types it shows both, so I'd guess the smg grenades would give you the alt ammo.

If it does the gun won't use it of course.
Wabefuhon 9 ABR 2023 a las 19:41 
I think because it uses the SMG it counts for the alt on the SMG, but what makes the alt go up is maybe the energy cells. I'd have to manually spawn every ammo to verify.
dawg wit da butta onem  [autor] 9 ABR 2023 a las 17:46 
Altfire is zoom so it shouldn't use ammo, don't have the base code anymore so I can't see exactly what it does sorry
Wabefuhon 9 ABR 2023 a las 16:22 
How do I use alt ammo? Or is it disabled?
dawg wit da butta onem  [autor] 26 JUL 2019 a las 18:54 
Hmm levels off the charts right here
dawg wit da butta onem  [autor] 15 DIC 2017 a las 13:35 
Merry Christmas to you as well!

I'm glad you like the gun, I'd say it's my worst work because it's my first addon, but if you (and other people) enjoy it anyway that's good.
RustedRegime 15 DIC 2017 a las 8:17 
merry crysis of 2017!
RustedRegime 12 DIC 2017 a las 11:15 
boy o boy where do i start oh i start when i say its good right? but nah its GREAT! ya realy did a good gun and i do not find good guns here on Gmod and i dont like TFA so this made me happy.! sorry for my bad english
dawg wit da butta onem  [autor] 20 JUN 2015 a las 13:15 
No need to apologize
Hellish Cyberdemon 20 JUN 2015 a las 13:14 
good job
Hellish Cyberdemon 20 JUN 2015 a las 13:14 
oh sorry...
dawg wit da butta onem  [autor] 20 JUN 2015 a las 13:13 
Got it from Borderlands, It's like the 4th level of the sniper headshot challenges.
Hellish Cyberdemon 20 JUN 2015 a las 12:10 
whats with the dumb name
Sam 15 DIC 2014 a las 15:19 
+1
dawg wit da butta onem  [autor] 15 DIC 2014 a las 13:55 
That's a sexy fan
dawg wit da butta onem  [autor] 13 DIC 2014 a las 14:44 
Oh, weird, the translate thing gave me 'fan.'

Anyway, the name comes from one of the challenges from Borderlands. I think it was the third or fourth level in a 'sniper rifle kills' series of challenges, and it was called 'brain ventilator.'
Sam 13 DIC 2014 a las 10:47 
If to write the Russian word "Вентилятор" with English letters, it will turn out "Ventilator". And I had a question: why Ventilator?
dawg wit da butta onem  [autor] 9 DIC 2014 a las 14:21 
I'm not sure what you mean. Putting that into Google translate gives me 'fan,' but the question mark is throwing me off.
Sam 9 DIC 2014 a las 13:48 
Вентилятор?
dawg wit da butta onem  [autor] 15 ABR 2014 a las 19:41 
If you search 'SWEP Construction Kit' on the workshop it should come up, I used to do it all the time until I realised I could find it in my subscribed items section.
TacticalHotDog 15 ABR 2014 a las 14:09 
How do I find Clavus' page/channel?
dawg wit da butta onem  [autor] 12 ENE 2014 a las 19:06 
I'm sure there's a way to do it, but I don't really know. Pastebin seems to be a popular choice, but I don't know how to work it. Actually, I don't know anything about it at all.
Captain Frosty 12 ENE 2014 a las 8:08 
Weirdly, the swep is no longer appearing in my spawnlist, so I can't test it... is there any way I could send it to you for you to quickly look over it?
dawg wit da butta onem  [autor] 11 ENE 2014 a las 21:51 
I believe the delay is in seconds.

Also, don't be afraid to post your stuff on the workshop. The zoom code isn't my code (and neither is most of my base code, TBH).
Captain Frosty 11 ENE 2014 a las 13:00 
Thanks for the zoom code. If this works and I put it on the workshop, can I use the code? I'll give you credit.
Captain Frosty 11 ENE 2014 a las 12:55 
The delay was 0.4, but even when I changed it to 4, it sounded like 0.1. Is it in seconds? But that was on the old script. Working on a new one.
dawg wit da butta onem  [autor] 10 ENE 2014 a las 20:54 
For the zoom, I've copied the zoom code and pasted it here.
function SWEP:IronSight()

if !self.Owner:KeyDown( IN_USE ) then

if self.Owner:KeyPressed( IN_ATTACK2 ) then

self.Owner:SetFOV( 20, 0.15 )

if ( CLIENT ) then return end
end
end

if self.Owner:KeyReleased( IN_ATTACK2 ) then

self.Owner:SetFOV( 0, 0.15 )

if ( CLIENT ) then return end
end
end

For this to work, copy this into your code, and delete everything inside function SWEP:SecondaryAttack() so that it looks like this:

function SWEP:SecondaryAttack()
end

After that's done, make a new function called function SWEP:Think() and post this inside it: self:IronSight(). It should look like this:

function SWEP:Think()
self:IronSight()
end
dawg wit da butta onem  [autor] 10 ENE 2014 a las 20:51 
Were the sounds still playing really quickly with the new codes? If so, I don't really know, because they should just play each time a bullet is fired, so if your SWEP.Primary.Delay is really low, they will do that. What was the SWEP.Primary.Delay set to on your most recent gun? I usually go with values around 0.9 to 1.5, or even 3 for slower weapons.
Captain Frosty 10 ENE 2014 a las 6:44 
Also, what script did you use for the zoom/scope in this gun?
Captain Frosty 10 ENE 2014 a las 6:16 
Any idea on the sounds playing rapidfire?
dawg wit da butta onem  [autor] 9 ENE 2014 a las 17:18 
Maybe next time I should actually look at the code I'm suggesting. What this SWep is doing is launching a prop, rather than shooting a bullet. I had the same issue when I made a prop-firing weapon, so I don't think it's something you did.

I found another one that includes a bunch of different codes, I think this one is going to be much better http://www.garrysmod.org/downloads/?a=view&id=128417
Captain Frosty 9 ENE 2014 a las 11:33 
When I try to shoot, no bullets come out, and it does show the muzzleflash and play the sound. Also, when the sound plays, it's super rapid fire. The delay is 0.4 (I was assuming the delay was in seconds) but when I changed it to 4 (hoping that would fix it,) it still was rapid fire. The sound is the SMG single shot sound. Also, this error appears in the console. Please help!


[ERROR] lua/weapons/ff_patrol_rifle/shared.lua:89: bad argument #1 to 'SetAngles' (Angle expected, got userdata)
1. SetAngles - [C]:-1
2. unknown - lua/weapons/ff_patrol_rifle/shared.lua:89
dawg wit da butta onem  [autor] 6 ENE 2014 a las 19:09 
Next, put that folder into ProgramFilesx86/steam/steamapps/common/garrysmod/garrysmod/lua/weapons
If the lua and weapon files aren't there, just make the folders. The lua one goes into the second garrysmod directory, and the weapons one goes into the lua folder you just made (if you had to).

I hope this isn't too confusing, but feel free to ask more questions if you need to.
dawg wit da butta onem  [autor] 6 ENE 2014 a las 19:09 
This is going to take multiple posts, since I hit the character limit.

First, you're going to need a base code. it's not too hard to find a basic one, you can find one on garrysmod.org . Download that and you can start from there. Here's the one that looks good: http://www.garrysmod.org/downloads/?a=view&id=83426

Also, you're going to find that it's pretty difficult to code in Notepad, so Notepad++ is going to be your friend. Get that and download the plugin for Gmod Lua. You can get said plugin by opening N++ and going to the 'plugins' tab on the top (I think so, it's been a while).
To actually use your code, save it as shared.lua to your desktop, and put it in a new folder named whatever you want.
Captain Frosty 6 ENE 2014 a las 12:00 
I never stopped to wonder, but how does one make SWEPS?
dawg wit da butta onem  [autor] 19 NOV 2013 a las 21:51 
I'm glad you think that, considering that this, along with that Rebel Carbine are not what I'd consider to be very good.
filz0 19 NOV 2013 a las 15:26 
And this... Is a nice weapon mate...Ha Ha HA HA! :B1:
dawg wit da butta onem  [autor] 11 JUL 2013 a las 22:18 
Dismemberment mod is really awesome, but it keeps crashing my computer. I use the gib/gore mod, but it really does about the same thing. Man, this gun is old.
biddin 11 JUL 2013 a las 20:35 
*Has dismemberment mod* BOOM HED SHAWT
dawg wit da butta onem  [autor] 23 JUN 2013 a las 17:58 
That would be sweet!
CrackHeadJesus 23 JUN 2013 a las 17:43 
i think if you work hard enough you can become a highly know addon maker
Giddy 13 MAY 2013 a las 16:32 
"lamer stuff"?? im sure it wont be that bad.
dawg wit da butta onem  [autor] 13 MAY 2013 a las 16:17 
I'm working on a weapon pack now, but I've only finished one weapon. I guess I could upload some of the older, lamer suff I have though.
Giddy 12 MAY 2013 a las 16:47 
You should make more guns!
dawg wit da butta onem  [autor] 12 MAY 2013 a las 14:40 
Thanks!
Giddy 12 MAY 2013 a las 13:45 
it looks like the Halo 3 Battlerifle with a fore grip. Nice gun!