diff --git a/Content/Legumix/Player/BP_Play.uasset b/Content/Legumix/Player/BP_Play.uasset index f391019..2923d8a 100644 --- a/Content/Legumix/Player/BP_Play.uasset +++ b/Content/Legumix/Player/BP_Play.uasset @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:d0f78eb9fd21b628885529481b1a8a4e6f5eda79bd13b175debf7151da01d0f1 -size 643419 +oid sha256:440d7489809bd45bd31b5a06f2c747a8e5ed63c1ed84a208053ea9901edd3bd2 +size 682635 diff --git a/Source/LegumeMix/Private/Player/LMPlayer.cpp b/Source/LegumeMix/Private/Player/LMPlayer.cpp index d52007e..e0634ac 100644 --- a/Source/LegumeMix/Private/Player/LMPlayer.cpp +++ b/Source/LegumeMix/Private/Player/LMPlayer.cpp @@ -191,6 +191,10 @@ void ALMPlayer::FireBullets(const FLMBulletInfo Settings) HitSomething = true; HitBox->OnHit(Settings, OutHit); } + else + { + OnSurfaceHit(OutHit); + } } if (HitSomething) diff --git a/Source/LegumeMix/Public/Player/LMPlayer.h b/Source/LegumeMix/Public/Player/LMPlayer.h index 612e380..55d8524 100644 --- a/Source/LegumeMix/Public/Player/LMPlayer.h +++ b/Source/LegumeMix/Public/Player/LMPlayer.h @@ -113,6 +113,9 @@ public: UFUNCTION(BlueprintCallable) void DoLedgeGrabCheck(); + + UFUNCTION(BlueprintImplementableEvent) + void OnSurfaceHit(FHitResult Hit); FCollisionQueryParams GetIgnoreCharacterParams();