Hello, I've been messing around with the bullet structure a lot recently ([url]https://wiki.garrysmod.com/page/Structures/Bullet[/url])
I came across one issue I was having when allowing players to shoot from inside vehicles. (Through [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/Player/GetAllowWeaponsInVehicle]Player:GetAllowWeaponsInVehicle[/url])
The bullets would often shoot the vehicle instead of whatever was outside it, due to the vehicle's model collisions.
I tried checking through the bullet structure but I could not find anyway to mask out/ignore specific entities from the bullet.
Only option I could think of, was to set the whole vehicles collision group; but that will allow all players/entities to clip through it, instead of just the bullet.
Any help would be much appreciated, Thanks :)
There isn't a filter arg for FireBullets by default, but I rewrote it in Lua to add a few more features that the C++ version didn't have. Add me on Steam if you want to try it
What you can do for now is physically move the bullet's start position with [url]https://wiki.garrysmod.com/page/GM/EntityFireBullets[/url]
I might add an IgnoreEntity field to the bullet structure.
Sorry, you need to Log In to post a reply to this thread.