Vehicles Pass-Through

  • Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

Sgt.Muffin

PWC-Gaming
Sep 7, 2009
19
0
0
Wisconsin, USA
www.sgtmuffin.com
I'm just wondering if anybody knows a good start to updating vehicles so they can pass through each other. I have asked a few people and they didn't know a specific way to do it. I asked someone who has done it and they did not want to help. I still wanted them to react to objects just not other vehicles of the same type nor people.

Is this something that is relatively easy to do? I looked around and did something that technically worked, and that involved editing the collision of the vehicle to be practically two dimensional, so it wouldn't collide, but it makes the vehicle incredibly glitchy.
 
Apr 11, 2006
738
0
16
Did you try using the SetCollision function?
No idea whether that works, but IIRC that's what's used for disabling player pawn collision, so maybe it'd work for vehicles.
 

Kyllian

if (Driver == Bot.Pawn); bGTFO=True;
Aug 24, 2002
3,575
0
36
45.64.294
kyllian.deviantart.com
Oh, it's Muffin, haven't seen you in a while.

I'm no code expert, but since vehicles are Karma based, you might be able to rig something so that it won't collide with Karma, but that could cause problems with doors and other movers

The only other thing I can think of is a check if something is an ONS/ASVehicle and tell the game not to collide those two, dunno how you'd even get started with that tho
 

GreatEmerald

Khnumhotep
Jan 20, 2008
4,042
1
0
Lithuania
No, UT2004 uses SVehicles, not KVehicles. Their collision is Mesh-based. Only the physics are Karma-based, because Karma is slow.

As for how to do it, simply set bIgnoreVehicles to True and you're all set.
 

Kyllian

if (Driver == Bot.Pawn); bGTFO=True;
Aug 24, 2002
3,575
0
36
45.64.294
kyllian.deviantart.com
Eh, I'm going on when you have to set special collision on doors to prevent vehicles from passing through and as far as I've known it's due to karma

Figured dig for that var
var bool bIgnoreVehicles;
// Ignore collisions between vehicles and this actor (only relevant if bIgnoreEncroachers is false)
Sounds like something only for doors/movers, but if it works, bonus
 

GreatEmerald

Khnumhotep
Jan 20, 2008
4,042
1
0
Lithuania
It works all right. I used it to make turrets and stations non-collideable in my U2 weapons mod. And the turrets are subclasses of Vehicle.