Garry's Mod

Garry's Mod

Seat Weaponiser II
 This topic has been pinned, so it's probably important
BFG  [developer] Feb 2, 2016 @ 1:56pm
The reason why I haven't made bullets pass through windows
Ok, all things considered, shooting out of cars that block the driver is totally possible. It's been possible since Seat Weaponiser 1. I have a very simple work around that would let you shoot out of these types of cars.
There's a good reason I haven't added it in though, and that reason is that there's no good optimized implementation that would work for everyone. I'd also like to remind all of you that being able to use this in any vehicle is a beneficial side effect, as this addon has always been about being able to shoot from custom-built vehicles and seats, not workshop cars.

The method is basically this: I draw a line starting from the outside and ending where your face in the vehicle is, and wherever that line hits on the car body, I edit your bullets so that they come out of there instead of your shoot pos.
This is a very simple work around for vehicles like the default Jeep and Airboat, and would even work for something like TDM Cars, if you're the driver. But that's where it gets more complicated.

Popular vehicles addons like to have passenger seats, and these passenger seats are their own separate vehicles that are spawned inside the main vehicle. I think TDM Cars and Slig Wolf's various vehicles do this, and I know for a fact that SCars and WAC do this, even for the driver.
So the problem now is that the "car body" is only the seat you're sitting in, and not the car as a whole.

Does this make it impossible then? Of course not, there's a workaround for this too. I can "scan" for all the stuff that's connected to the seat you're in, and count that as part of the car. That way you can still shoot out of close-hood cars.

But now we run into a whole host of other issues.
People will now be able to make miniaturized bunkers or pillboxes, set them to transparent, then weld them to a seat. When they sit in the chair and start shooting, they are effectively invincible to most forms of weapons, but my code will let them shoot out of the bunker. This is bad for obvious reasons.

On top of that, people could maliciously abuse this code in another way: Make a contraption that has hundreds of props, weld them to their seat, and then start firing full auto with the fastest gun they can find. Since I have to scan every single prop that's connected to the seat when I draw the line, this would potentially lag and maybe even crash servers, especially weaker ones.

THE BOTTOM LINE IS:
I can't make something that will let you shoot out of SCars and whatever other vehicles you're using that have closed hoods. The problems outweigh the benefits.
HOWEVER, I can make it so you can only shoot out of jeeps, airboats, and the drivers seats of TDM cars. This would also allow people to use the Prisoner Pod as a weaponiser compatible seat.
Expect an update sometime.
< >
Showing 1-15 of 73 comments
bendy_colememe Mar 19, 2016 @ 5:24pm 
you could just make it so whenever they shoot they smasht the window of the car and shoot through it
BFG  [developer] Mar 21, 2016 @ 3:54am 
...it doesn't work like that
Caiman Mar 22, 2016 @ 1:56pm 
so, can you make an update that makes another tool thats labeled "Passenger Seat Weaponiser"
or something that makes the passenger shoot out?
BFG  [developer] Mar 24, 2016 @ 5:09pm 
No, that is not needed. Use this addon.
Laith_TheDemon Apr 29, 2016 @ 12:09am 
Does scars work with shooting out of closed cars?
Furthermore there are work arounds my server which iam planning to use this addon for has a recieve damage in seats mod,So maybe implementing an option or a variant mod might work.
BFG  [developer] Apr 30, 2016 @ 2:23pm 
recieving damage in seats has nothing to do with this mod.
it will not work shooting out of Scars that have a closed interior.
Meowrailigence May 14, 2016 @ 9:41am 
That feel when you try to interact with the community but they're all dumbasses.
8Z Jun 27, 2016 @ 3:36am 
Is it possible to set a "whitelist" that only allows certain connected props (i.e. car models) to be ignored?
BFG  [developer] Jun 27, 2016 @ 8:18am 
It's possible but that method sucks.
Meowrailigence Jun 27, 2016 @ 8:47am 
Originally posted by BFG:
It's possible but that method sucks.
Elaborate?
BFG  [developer] Jun 27, 2016 @ 9:14pm 
It would have to be manually set up for each car addon you put in. I'd much rather just let them go through anything.
Meowrailigence Jun 28, 2016 @ 3:13am 
Originally posted by BFG:
It would have to be manually set up for each car addon you put in. I'd much rather just let them go through anything.
You could create a system where You could Mount certain models. That way it would be less work [supposedly, probably not] and people who wanted certain cars to be enclosed, could have them.
Last edited by Meowrailigence; Jun 28, 2016 @ 3:14am
IDKBacon Jun 30, 2016 @ 9:42am 
"HOWEVER, I can make it so you can only shoot out of jeeps, airboats, and the drivers seats of TDM cars." Does that mean that you can shoot out of closed TDM cars?
Last edited by IDKBacon; Jun 30, 2016 @ 9:42am
BFG  [developer] Jul 2, 2016 @ 10:58am 
Originally posted by IDKBacon:
"HOWEVER, I can make it so you can only shoot out of jeeps, airboats, and the drivers seats of TDM cars." Does that mean that you can shoot out of closed TDM cars?
No i said i could probably make that possible
I just haven't done it yet since there's no real motivation tbh, this addon accomplished its goal, which is to let you build passenger vehicles that can be fired out of. But maybe I'll do it sometime.
Ewalicious Jul 17, 2016 @ 3:42pm 
Originally posted by benanaboy:
you could just make it so whenever they shoot they smasht the window of the car and shoot through it


Not really. that would require other mod creators cooporation to remake their whole entire mod just for 1 mod thats not that popular (no offense) and then ruin other mods. its just not that fun to begin with.
< >
Showing 1-15 of 73 comments
Per page: 1530 50