Garry's Mod

Garry's Mod

The Brain Ventilator
47 条留言
dawg wit da butta onem  [作者] 2023 年 4 月 9 日 下午 10: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 2023 年 4 月 9 日 下午 7: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  [作者] 2023 年 4 月 9 日 下午 5: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 2023 年 4 月 9 日 下午 4:22 
How do I use alt ammo? Or is it disabled?
dawg wit da butta onem  [作者] 2019 年 7 月 26 日 下午 6:54 
Hmm levels off the charts right here
dawg wit da butta onem  [作者] 2017 年 12 月 15 日 下午 1: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 2017 年 12 月 15 日 上午 8:17 
merry crysis of 2017!
RustedRegime 2017 年 12 月 12 日 上午 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  [作者] 2015 年 6 月 20 日 下午 1:15 
No need to apologize
Hellish Cyberdemon 2015 年 6 月 20 日 下午 1:14 
good job
Hellish Cyberdemon 2015 年 6 月 20 日 下午 1:14 
oh sorry...
dawg wit da butta onem  [作者] 2015 年 6 月 20 日 下午 1:13 
Got it from Borderlands, It's like the 4th level of the sniper headshot challenges.
Hellish Cyberdemon 2015 年 6 月 20 日 下午 12:10 
whats with the dumb name
Sam 2014 年 12 月 15 日 下午 3:19 
+1
dawg wit da butta onem  [作者] 2014 年 12 月 15 日 下午 1:55 
That's a sexy fan
dawg wit da butta onem  [作者] 2014 年 12 月 13 日 下午 2: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 2014 年 12 月 13 日 上午 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  [作者] 2014 年 12 月 9 日 下午 2: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 2014 年 12 月 9 日 下午 1:48 
Вентилятор?
dawg wit da butta onem  [作者] 2014 年 4 月 15 日 下午 7: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 2014 年 4 月 15 日 下午 2:09 
How do I find Clavus' page/channel?
dawg wit da butta onem  [作者] 2014 年 1 月 12 日 下午 7: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 2014 年 1 月 12 日 上午 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  [作者] 2014 年 1 月 11 日 下午 9: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 2014 年 1 月 11 日 下午 1: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 2014 年 1 月 11 日 下午 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  [作者] 2014 年 1 月 10 日 下午 8: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  [作者] 2014 年 1 月 10 日 下午 8: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 2014 年 1 月 10 日 上午 6:44 
Also, what script did you use for the zoom/scope in this gun?
Captain Frosty 2014 年 1 月 10 日 上午 6:16 
Any idea on the sounds playing rapidfire?
dawg wit da butta onem  [作者] 2014 年 1 月 9 日 下午 5: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 2014 年 1 月 9 日 上午 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  [作者] 2014 年 1 月 6 日 下午 7: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  [作者] 2014 年 1 月 6 日 下午 7: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 2014 年 1 月 6 日 下午 12:00 
I never stopped to wonder, but how does one make SWEPS?
dawg wit da butta onem  [作者] 2013 年 11 月 19 日 下午 9: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 2013 年 11 月 19 日 下午 3:26 
And this... Is a nice weapon mate...Ha Ha HA HA! :B1:
dawg wit da butta onem  [作者] 2013 年 7 月 11 日 下午 10: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 2013 年 7 月 11 日 下午 8:35 
*Has dismemberment mod* BOOM HED SHAWT
dawg wit da butta onem  [作者] 2013 年 6 月 23 日 下午 5:58 
That would be sweet!
CrackHeadJesus 2013 年 6 月 23 日 下午 5:43 
i think if you work hard enough you can become a highly know addon maker
Giddy 2013 年 5 月 13 日 下午 4:32 
"lamer stuff"?? im sure it wont be that bad.
dawg wit da butta onem  [作者] 2013 年 5 月 13 日 下午 4: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 2013 年 5 月 12 日 下午 4:47 
You should make more guns!
dawg wit da butta onem  [作者] 2013 年 5 月 12 日 下午 2:40 
Thanks!
Giddy 2013 年 5 月 12 日 下午 1:45 
it looks like the Halo 3 Battlerifle with a fore grip. Nice gun!