diff --git a/src/gs-entbase/shared/prop_vehicle_driveable.qc b/src/gs-entbase/shared/prop_vehicle_driveable.qc index 68b87a17..34d2adb6 100644 --- a/src/gs-entbase/shared/prop_vehicle_driveable.qc +++ b/src/gs-entbase/shared/prop_vehicle_driveable.qc @@ -471,9 +471,9 @@ prop_vehicle_driveable_wheel::Physics(float turnrate, float flTimeLength) void prop_vehicle_driveable_wheel::prop_vehicle_driveable_wheel(void) { - hitcontentsmaski = CONTENTBIT_SOLID | CONTENTBIT_BODY; mins = [-8,-8,-35]; maxs = [8,8,8]; + hitcontentsmaski = CONTENTBIT_BODY | CONTENTBITS_POINTSOLID | CONTENTBIT_VEHICLECLIP; } #ifdef CLIENT @@ -873,6 +873,7 @@ prop_vehicle_driveable::prop_vehicle_driveable(void) m_flStraightenFactor = 1.0f; m_vecGravityDir = [0,0,-1]; m_iVehicleFlags |= VHF_FROZEN; + hitcontentsmaski = CONTENTBIT_BODY | CONTENTBITS_POINTSOLID | CONTENTBIT_VEHICLECLIP; if (!m_eCollBox1) m_eCollBox1 = spawn(NSEntity); @@ -884,6 +885,9 @@ prop_vehicle_driveable::prop_vehicle_driveable(void) m_eCollBox2.SetSize([-32,-32,0], [32,32,32]); } + m_eCollBox1.hitcontentsmaski = hitcontentsmaski; + m_eCollBox2.hitcontentsmaski = hitcontentsmaski; + if (!m_wlFL) m_wlFL = spawn(prop_vehicle_driveable_wheel); if (!m_wlFR) diff --git a/src/shared/materials.h b/src/shared/materials.h index 038a626f..c4aa5be4 100644 --- a/src/shared/materials.h +++ b/src/shared/materials.h @@ -182,7 +182,7 @@ const int CONTENTBIT_UNUSED7 = 0x00000800i const int CONTENTBIT_UNUSED8 = 0x00001000i; const int CONTENTBIT_UNUSED9 = 0x00002000i; const int CONTENTBIT_FTELADDER = 0x00004000i; /* surfaceparm climb */ -const int CONTENTBIT_UNUSED10 = 0x00008000i; +const int CONTENTBIT_VEHICLECLIP = 0x00008000i; const int CONTENTBIT_PLAYERCLIP = 0x00010000i; /* surfaceParm playerclip */