Changes
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Content/Particles/P_ExplosionCluster.uasset
Normal file
BIN
Content/Particles/P_ExplosionCluster.uasset
Normal file
Binary file not shown.
BIN
Content/Particles/P_ExplosionRocket.uasset
Normal file
BIN
Content/Particles/P_ExplosionRocket.uasset
Normal file
Binary file not shown.
BIN
Content/Particles/P_ExplosionRocketGuided.uasset
Normal file
BIN
Content/Particles/P_ExplosionRocketGuided.uasset
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -204,7 +204,9 @@ void AFireworksPawn::ThrowObject(APickableObject* Object, EControllerHand Hand)
|
||||
Object->ThrowingHand = Hand;
|
||||
Object->DetachFromActor(FDetachmentTransformRules::KeepWorldTransform);
|
||||
Object->StaticMesh->SetSimulatePhysics(true);
|
||||
Object->StaticMesh->SetPhysicsLinearVelocity(ApproximateThrowVelocity(Hand) * ThrowVelocityMultiplier);
|
||||
if (!Object->IsRocket) {
|
||||
Object->StaticMesh->SetPhysicsLinearVelocity(ApproximateThrowVelocity(Hand) * ThrowVelocityMultiplier);
|
||||
}
|
||||
Object->ThrowEffects();
|
||||
}
|
||||
|
||||
|
||||
@@ -47,6 +47,9 @@ public:
|
||||
UPROPERTY(EditAnywhere, BlueprintReadWrite)
|
||||
EControllerHand ThrowingHand;
|
||||
|
||||
UPROPERTY(EditDefaultsOnly, BlueprintReadWrite)
|
||||
bool IsRocket = false;
|
||||
|
||||
UFUNCTION(BlueprintImplementableEvent, BlueprintCallable)
|
||||
void OnUsed();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user