Compare commits
No commits in common. "01efe40a1519f5bf8a8851645ee5e2d046e41e9f" and "126a9e116a8bdfbf9588a466448b1d3273ed4487" have entirely different histories.
01efe40a15
...
126a9e116a
BIN
Content/Weapons/FPWeapon/Audio/FirstPersonTemplateWeaponFire02.uasset (Stored with Git LFS)
BIN
Content/Weapons/FPWeapon/Audio/FirstPersonTemplateWeaponFire02.uasset (Stored with Git LFS)
Binary file not shown.
BIN
Content/Weapons/FPWeapon/Materials/BaseMaterial.uasset (Stored with Git LFS)
BIN
Content/Weapons/FPWeapon/Materials/BaseMaterial.uasset (Stored with Git LFS)
Binary file not shown.
BIN
Content/Weapons/FPWeapon/Materials/FirstPersonProjectileMaterial.uasset (Stored with Git LFS)
BIN
Content/Weapons/FPWeapon/Materials/FirstPersonProjectileMaterial.uasset (Stored with Git LFS)
Binary file not shown.
BIN
Content/Weapons/FPWeapon/Materials/M_FPGun.uasset (Stored with Git LFS)
BIN
Content/Weapons/FPWeapon/Materials/M_FPGun.uasset (Stored with Git LFS)
Binary file not shown.
BIN
Content/Weapons/FPWeapon/Materials/MaterialLayers/ML_GlossyBlack_Latex_UE4.uasset (Stored with Git LFS)
BIN
Content/Weapons/FPWeapon/Materials/MaterialLayers/ML_GlossyBlack_Latex_UE4.uasset (Stored with Git LFS)
Binary file not shown.
BIN
Content/Weapons/FPWeapon/Materials/MaterialLayers/ML_Plastic_Shiny_Beige.uasset (Stored with Git LFS)
BIN
Content/Weapons/FPWeapon/Materials/MaterialLayers/ML_Plastic_Shiny_Beige.uasset (Stored with Git LFS)
Binary file not shown.
BIN
Content/Weapons/FPWeapon/Materials/MaterialLayers/ML_Screen.uasset (Stored with Git LFS)
BIN
Content/Weapons/FPWeapon/Materials/MaterialLayers/ML_Screen.uasset (Stored with Git LFS)
Binary file not shown.
BIN
Content/Weapons/FPWeapon/Materials/MaterialLayers/ML_SoftMetal_UE4.uasset (Stored with Git LFS)
BIN
Content/Weapons/FPWeapon/Materials/MaterialLayers/ML_SoftMetal_UE4.uasset (Stored with Git LFS)
Binary file not shown.
BIN
Content/Weapons/FPWeapon/Materials/MaterialLayers/T_ML_Aluminum01.uasset (Stored with Git LFS)
BIN
Content/Weapons/FPWeapon/Materials/MaterialLayers/T_ML_Aluminum01.uasset (Stored with Git LFS)
Binary file not shown.
BIN
Content/Weapons/FPWeapon/Materials/MaterialLayers/T_ML_Aluminum01_N.uasset (Stored with Git LFS)
BIN
Content/Weapons/FPWeapon/Materials/MaterialLayers/T_ML_Aluminum01_N.uasset (Stored with Git LFS)
Binary file not shown.
BIN
Content/Weapons/FPWeapon/Materials/MaterialLayers/T_ML_FineRubber.uasset (Stored with Git LFS)
BIN
Content/Weapons/FPWeapon/Materials/MaterialLayers/T_ML_FineRubber.uasset (Stored with Git LFS)
Binary file not shown.
BIN
Content/Weapons/FPWeapon/Materials/MaterialLayers/T_ML_Rubber_Blue_01_D.uasset (Stored with Git LFS)
BIN
Content/Weapons/FPWeapon/Materials/MaterialLayers/T_ML_Rubber_Blue_01_D.uasset (Stored with Git LFS)
Binary file not shown.
BIN
Content/Weapons/FPWeapon/Materials/MaterialLayers/T_ML_Rubber_Blue_01_N.uasset (Stored with Git LFS)
BIN
Content/Weapons/FPWeapon/Materials/MaterialLayers/T_ML_Rubber_Blue_01_N.uasset (Stored with Git LFS)
Binary file not shown.
BIN
Content/Weapons/FPWeapon/Mesh/FirstPersonProjectileMesh.uasset (Stored with Git LFS)
BIN
Content/Weapons/FPWeapon/Mesh/FirstPersonProjectileMesh.uasset (Stored with Git LFS)
Binary file not shown.
BIN
Content/Weapons/FPWeapon/Mesh/SK_FPGun.uasset (Stored with Git LFS)
BIN
Content/Weapons/FPWeapon/Mesh/SK_FPGun.uasset (Stored with Git LFS)
Binary file not shown.
BIN
Content/Weapons/FPWeapon/Mesh/SK_FPGun_Physics.uasset (Stored with Git LFS)
BIN
Content/Weapons/FPWeapon/Mesh/SK_FPGun_Physics.uasset (Stored with Git LFS)
Binary file not shown.
BIN
Content/Weapons/FPWeapon/Mesh/SK_FPGun_PhysicsAsset.uasset (Stored with Git LFS)
BIN
Content/Weapons/FPWeapon/Mesh/SK_FPGun_PhysicsAsset.uasset (Stored with Git LFS)
Binary file not shown.
BIN
Content/Weapons/FPWeapon/Mesh/SK_FPGun_Skeleton.uasset (Stored with Git LFS)
BIN
Content/Weapons/FPWeapon/Mesh/SK_FPGun_Skeleton.uasset (Stored with Git LFS)
Binary file not shown.
BIN
Content/Weapons/FPWeapon/Textures/T_FPGun_M.uasset (Stored with Git LFS)
BIN
Content/Weapons/FPWeapon/Textures/T_FPGun_M.uasset (Stored with Git LFS)
Binary file not shown.
BIN
Content/Weapons/FPWeapon/Textures/T_FPGun_N.uasset (Stored with Git LFS)
BIN
Content/Weapons/FPWeapon/Textures/T_FPGun_N.uasset (Stored with Git LFS)
Binary file not shown.
BIN
Content/Weapons/Machinegun/Machinegun.uasset (Stored with Git LFS)
BIN
Content/Weapons/Machinegun/Machinegun.uasset (Stored with Git LFS)
Binary file not shown.
|
@ -188,7 +188,6 @@ AWeapon* ANakatomiCharacter::InitializeWeapon(TSubclassOf<class AWeapon> weapon)
|
|||
FActorSpawnParameters SpawnParameters;
|
||||
SpawnParameters.SpawnCollisionHandlingOverride = ESpawnActorCollisionHandlingMethod::AlwaysSpawn;
|
||||
AWeapon* Weapon = GetWorld()->SpawnActor<AWeapon>(weapon, SpawnParameters);
|
||||
Weapon->SetOwner(this);
|
||||
Weapon->AttachToComponent(GetMesh(), FAttachmentTransformRules::SnapToTargetNotIncludingScale, "WeaponHand");
|
||||
Weapon->SetActorEnableCollision(false);
|
||||
Weapon->SetActorHiddenInGame(true);
|
||||
|
|
|
@ -11,7 +11,7 @@ ARandomWeapon::ARandomWeapon()
|
|||
void ARandomWeapon::BeginPlay()
|
||||
{
|
||||
WeaponProperties = RandomWeaponParameters->GenerateRandomWeaponProperties();
|
||||
WeaponSkeletalMeshComponent->SetSkeletalMeshAsset(RandomWeaponParameters->PickRandomMesh());
|
||||
WeaponSkeletalMesh = RandomWeaponParameters->PickRandomMesh();
|
||||
FireSound = RandomWeaponParameters->PickRandomSoundBase();
|
||||
FieldSystemActor = RandomWeaponParameters->PickRandomFieldSystem();
|
||||
|
||||
|
|
|
@ -6,14 +6,7 @@
|
|||
|
||||
// Sets default values
|
||||
AWeapon::AWeapon()
|
||||
{
|
||||
WeaponSkeletalMeshComponent = CreateDefaultSubobject<USkeletalMeshComponent>(TEXT("Skeletal Mesh Component"));
|
||||
WeaponSkeletalMeshComponent->SetCollisionProfileName(FName("NoCollision"));
|
||||
WeaponSkeletalMeshComponent->SetCollisionEnabled(ECollisionEnabled::NoCollision);
|
||||
WeaponSkeletalMeshComponent->SetSimulatePhysics(false);
|
||||
WeaponSkeletalMeshComponent->SetGenerateOverlapEvents(false);
|
||||
WeaponSkeletalMeshComponent->SetNotifyRigidBodyCollision(false);
|
||||
SetRootComponent(WeaponSkeletalMeshComponent);
|
||||
{
|
||||
}
|
||||
|
||||
// Called when the game starts or when spawned
|
||||
|
@ -26,12 +19,12 @@ void AWeapon::BeginPlay()
|
|||
|
||||
USkeletalMesh* AWeapon::GetSkeletalMesh()
|
||||
{
|
||||
return WeaponSkeletalMeshComponent->GetSkeletalMeshAsset();
|
||||
return WeaponSkeletalMesh;
|
||||
}
|
||||
|
||||
void AWeapon::SetSkeletalMesh(USkeletalMesh* USkeletalMesh)
|
||||
{
|
||||
WeaponSkeletalMeshComponent->SetSkeletalMeshAsset(USkeletalMesh);
|
||||
WeaponSkeletalMesh = USkeletalMesh;
|
||||
}
|
||||
|
||||
TEnumAsByte<WeaponState>* AWeapon::GetCurrentWeaponStatus()
|
||||
|
|
|
@ -29,8 +29,8 @@ class NAKATOMI_API AWeapon : public AActor
|
|||
GENERATED_BODY()
|
||||
|
||||
protected:
|
||||
UPROPERTY(BlueprintReadWrite)
|
||||
USkeletalMeshComponent* WeaponSkeletalMeshComponent;
|
||||
UPROPERTY(EditDefaultsOnly)
|
||||
USkeletalMesh* WeaponSkeletalMesh = nullptr;
|
||||
|
||||
UPROPERTY(EditDefaultsOnly)
|
||||
TEnumAsByte<WeaponState> CurrentWeaponStatus;
|
||||
|
@ -65,7 +65,6 @@ public:
|
|||
|
||||
protected:
|
||||
// Called when the game starts or when spawned
|
||||
UFUNCTION(Blueprintable, BlueprintCallable)
|
||||
virtual void BeginPlay() override;
|
||||
|
||||
public:
|
||||
|
|
Loading…
Reference in New Issue