Garry's Mod

Garry's Mod

Working "Rebirth" Gas Mask (& Base)
Problem
1. When you toggle the gas mask in Jmod menu, the gas mask overlay don't dissapear
but it disengaged
2. When you try to change filter with this gasmask by writing !ufilter in chat it writes, you don't have any gasmask. Also when you write !dgasmask, or !gasmask when it engaged the overlay dissapears
Last edited by Кабачочек; 27 Oct, 2024 @ 1:16pm
< >
Showing 1-13 of 13 comments
Hidden  [developer] 27 Oct, 2024 @ 4:51pm 
Works just fine for me, your game probably has something wrong
maybe it's just bio-anihhilation incompatabillty
Hidden  [developer] 30 Oct, 2024 @ 5:07am 
It's not BA2, I made the mask to work with it.
I just tested it with jmod, BA2, and gasmask mod
Кабачочек 31 Oct, 2024 @ 11:47am 
also, when you pickup filters from this addon with installed BA2, filters from this addon won't add to reserve, but filters from BA2 will add to reserve
in multiplayer the gas mask takes itself off as soon as you put it on.
Hidden  [developer] 1 Nov, 2024 @ 6:31pm 
Again, fine on my end, you probably have something that messes with it.
what kinds of addons would mess with it?
Hidden  [developer] 1 Nov, 2024 @ 6:35pm 
I have no idea, I just know it works fine on it's own.
did you try putting it on with other players in the area bc if I'm playing alone on multiplayer its fine but then another player gets the gas mask and it stops working.
No i am playing in single player only
gost Nava 29 Dec, 2024 @ 9:13am 
Hey Hidden, I replicated the problem with mask being taken off as soon as you wear it or vice versa or putting it on and taking it off multiple times, the problem is that the code relied on the console command to make some things, and its really unrealiable. I changed code a bit so it will work without console commands, and it fixed the issue for me. You can change the code in weapon_bo1_gasmask_lua:
replace
own:ConCommand( "lastinv" )
on lines 333 and 216 with
if SERVER then local prevswep = own:GetPreviousWeapon() if prevswep:IsWeapon() and prevswep:IsValid() then own:SelectWeapon( prevswep ) else own:SelectWeapon( playersweps[math.random( table.Count( own:GetWeapons() ) )] ) end end
Last edited by gost Nava; 29 Dec, 2024 @ 9:17am
Hidden  [developer] 2 Jan @ 2:56pm 
Thank you!
< >
Showing 1-13 of 13 comments
Per page: 1530 50