WeaponBase #8
Binary file not shown.
@@ -68,16 +68,20 @@ void ADDICharacter::Server_SpawnProjectile_Implementation()
|
|||||||
FRotator Rotation = GetActorRotation();
|
FRotator Rotation = GetActorRotation();
|
||||||
FVector Dir = GetActorForwardVector();
|
FVector Dir = GetActorForwardVector();
|
||||||
|
|
||||||
Location += Dir * 200.f;
|
// GetActorEyesViewPoint(Location, Rotation);
|
||||||
|
|
||||||
|
Location += Dir * 55.f;
|
||||||
|
|
||||||
if (!ProjectileClass)
|
if (!ProjectileClass)
|
||||||
{
|
{
|
||||||
GEngine->AddOnScreenDebugMessage(1, 10.f, FColor::Emerald, "No Projectile Set");
|
GEngine->AddOnScreenDebugMessage(1, 10.f, FColor::Emerald, "No Projectile Set");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
GetWorld()->SpawnActor<AActor>(ProjectileClass, Location, Rotation);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
FActorSpawnParameters SpawnInfo;
|
||||||
|
SpawnInfo.Owner = this;
|
||||||
|
SpawnInfo.Instigator = GetInstigator();
|
||||||
|
GetWorld()->SpawnActor<AActor>(ProjectileClass, Location, Rotation, SpawnInfo);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ADDICharacter::Client_CharacterHit_Implementation()
|
void ADDICharacter::Client_CharacterHit_Implementation()
|
||||||
|
|||||||
Reference in New Issue
Block a user