source-sdk-2013 icon indicating copy to clipboard operation
source-sdk-2013 copied to clipboard

[HL2MP] Check for physics validation when using the physcannon

Open speedvoltage opened this issue 9 months ago • 0 comments

Issue:
When you use the physcannon and the physics object you're holding gets motion-disabled, it might not let go of the object. Plus, there's no proper verification to see if a physics object is present before trying to perform actions like throwing it with the primary attack.

Fix:

  • Added a check to make sure that if a physics object becomes motion-disabled, the physcannon will release it right away.
  • Added a validation for pPhys. Once that's confirmed, we can proceed with the usual logic for the primary attack check.

speedvoltage avatar Mar 14 '25 21:03 speedvoltage