Garry's Mod
Seat Weaponiser II
 Acest topic a fost fixat, deci probabil este important
BFG  [dezvoltator] 2 febr. 2016 la 13:56
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.
< >
Se afișează 1-15 din 73 comentarii
you could just make it so whenever they shoot they smasht the window of the car and shoot through it
BFG  [dezvoltator] 21 mart. 2016 la 3:54 
...it doesn't work like that
Caiman 22 mart. 2016 la 13:56 
so, can you make an update that makes another tool thats labeled "Passenger Seat Weaponiser"
or something that makes the passenger shoot out?
BFG  [dezvoltator] 24 mart. 2016 la 17:09 
No, that is not needed. Use this addon.
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  [dezvoltator] 30 apr. 2016 la 14:23 
recieving damage in seats has nothing to do with this mod.
it will not work shooting out of Scars that have a closed interior.
That feel when you try to interact with the community but they're all dumbasses.
8Z 27 iun. 2016 la 3:36 
Is it possible to set a "whitelist" that only allows certain connected props (i.e. car models) to be ignored?
BFG  [dezvoltator] 27 iun. 2016 la 8:18 
It's possible but that method sucks.
Postat inițial de BFG:
It's possible but that method sucks.
Elaborate?
BFG  [dezvoltator] 27 iun. 2016 la 21:14 
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.
Postat inițial de 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.
Editat ultima dată de Meowrailigence; 28 iun. 2016 la 3:14
"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?
Editat ultima dată de IDKBacon; 30 iun. 2016 la 9:42
BFG  [dezvoltator] 2 iul. 2016 la 10:58 
Postat inițial de 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.
Postat inițial de 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.
< >
Se afișează 1-15 din 73 comentarii
Per pagină: 1530 50