Skip to content

[Any] VPhysics x64 crashes in 2 places when vehicles are not modelscale 1.0 #1961

Description

@ArgonianGuard

VPhysics crashes in 2 points with NULL access or other access violations.
First place is: fourwheelvehiclephysics.cpp inside bool CFourWheelVehiclePhysics::Think()
m_pVehicle->Update( gpGlobals->frametime, m_controls);
which is: void IPhysicsVehicleController::Update( float dt, vehicle_controlparams_t &controls )

The second place is any function that uses: IPhysicsFrictionSnapshot *IPhysicsObject::CreateFrictionSnapshot()

To test on any Source Engine game that uses VPhysics x64 and has the model + vehiclescript use:
ent_create prop_vehicle_jeep model models/buggy.mdl vehiclescript scripts/vehicles/jeep_test.txt modelscale 0.5

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions