Compare commits
12 Commits
221d31fb85
...
3d290b3ca1
Author | SHA1 | Date | |
---|---|---|---|
3d290b3ca1 | |||
b67b9bf260 | |||
b69aa2f1de | |||
38280d8dea | |||
fffe8382bf | |||
4dedadb35e | |||
4b79d10184 | |||
620d480dc0 | |||
0113c6c958 | |||
fe8cbafd5c | |||
e703e4c317 | |||
a3a536a94c |
BIN
Content/Assets/CorridoorAssets/M_SciFiMat.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Assets/CorridoorAssets/M_SciFiMat.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Assets/CorridoorAssets/PolygonSciFiCity_Texture_Metallic.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Assets/CorridoorAssets/PolygonSciFiCity_Texture_Metallic.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Assets/CorridoorAssets/PolygonSciFiCity_Texture_Normal.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Assets/CorridoorAssets/PolygonSciFiCity_Texture_Normal.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Assets/CorridoorAssets/PolygonSciFi_Road_01.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Assets/CorridoorAssets/PolygonSciFi_Road_01.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Assets/CorridoorAssets/PolygonScifi_01_A.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Assets/CorridoorAssets/PolygonScifi_01_A.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Assets/CorridoorAssets/PolygonScifi_Emissive_01.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Assets/CorridoorAssets/PolygonScifi_Emissive_01.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Assets/CorridoorAssets/SM_Bld_Section_Door_07_Door.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Assets/CorridoorAssets/SM_Bld_Section_Door_07_Door.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Assets/CorridoorAssets/SM_Env_Graffiti_Wall_01.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Assets/CorridoorAssets/SM_Env_Graffiti_Wall_01.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Assets/CorridoorAssets/SM_Env_Graffiti_Wall_02.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Assets/CorridoorAssets/SM_Env_Graffiti_Wall_02.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Assets/CorridoorAssets/SM_Env_Graffiti_Wall_03.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Assets/CorridoorAssets/SM_Env_Graffiti_Wall_03.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Assets/CorridoorAssets/SM_Env_Graffiti_Wall_04.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Assets/CorridoorAssets/SM_Env_Graffiti_Wall_04.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Assets/CorridoorAssets/SM_Env_Graffiti_Wall_05.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Assets/CorridoorAssets/SM_Env_Graffiti_Wall_05.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Assets/CorridoorAssets/SM_Env_Ground_01.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Assets/CorridoorAssets/SM_Env_Ground_01.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Assets/CorridoorAssets/SM_Env_Small_Rocks_01.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Assets/CorridoorAssets/SM_Env_Small_Rocks_01.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Assets/CorridoorAssets/SM_Env_Small_Rocks_02.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Assets/CorridoorAssets/SM_Env_Small_Rocks_02.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Assets/CorridoorAssets/SM_Prop_AirConditioningGrid_01.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Assets/CorridoorAssets/SM_Prop_AirConditioningGrid_01.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Assets/CorridoorAssets/SM_Prop_AirConditioningUnit_01.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Assets/CorridoorAssets/SM_Prop_AirConditioningUnit_01.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Assets/CorridoorAssets/SM_Prop_AirConditioningUnit_02.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Assets/CorridoorAssets/SM_Prop_AirConditioningUnit_02.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Assets/CorridoorAssets/SM_Prop_Barrier_01.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Assets/CorridoorAssets/SM_Prop_Barrier_01.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Assets/CorridoorAssets/SM_Prop_Barrier_02.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Assets/CorridoorAssets/SM_Prop_Barrier_02.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Assets/CorridoorAssets/SM_Prop_Barrier_03.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Assets/CorridoorAssets/SM_Prop_Barrier_03.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Assets/CorridoorAssets/SM_Prop_ChargingStation_01.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Assets/CorridoorAssets/SM_Prop_ChargingStation_01.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Assets/CorridoorAssets/SM_Prop_Crate_Military_01.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Assets/CorridoorAssets/SM_Prop_Crate_Military_01.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Assets/CorridoorAssets/SM_Prop_Crate_Military_01_Lid.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Assets/CorridoorAssets/SM_Prop_Crate_Military_01_Lid.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Assets/CorridoorAssets/SM_Prop_Crate_Military_02.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Assets/CorridoorAssets/SM_Prop_Crate_Military_02.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Assets/CorridoorAssets/SM_Prop_Crate_Military_02_Lid.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Assets/CorridoorAssets/SM_Prop_Crate_Military_02_Lid.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Assets/CorridoorAssets/SM_Prop_Crate_Military_03.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Assets/CorridoorAssets/SM_Prop_Crate_Military_03.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Assets/CorridoorAssets/SM_Prop_Crate_Military_03_Lid.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Assets/CorridoorAssets/SM_Prop_Crate_Military_03_Lid.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Assets/CorridoorAssets/SM_Prop_Door_02.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Assets/CorridoorAssets/SM_Prop_Door_02.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Assets/CorridoorAssets/SM_Prop_Door_03.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Assets/CorridoorAssets/SM_Prop_Door_03.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Assets/CorridoorAssets/SM_Prop_Door_03_Glass.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Assets/CorridoorAssets/SM_Prop_Door_03_Glass.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Assets/CorridoorAssets/SM_Prop_Door_04.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Assets/CorridoorAssets/SM_Prop_Door_04.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Blueprints/ThomasLabRooms/BP_TeleporterCube.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Blueprints/ThomasLabRooms/BP_TeleporterCube.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Enemies/Flats/BP_FlatsMonster.uasset
(Stored with Git LFS)
BIN
Content/Enemies/Flats/BP_FlatsMonster.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
Content/Enemies/Small/AI_SmallEnemy.uasset
(Stored with Git LFS)
BIN
Content/Enemies/Small/AI_SmallEnemy.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
Content/Enemies/Small/BB_SmallEnemy.uasset
(Stored with Git LFS)
BIN
Content/Enemies/Small/BB_SmallEnemy.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
Content/Enemies/Small/BP_SmallEnemy.uasset
(Stored with Git LFS)
BIN
Content/Enemies/Small/BP_SmallEnemy.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
Content/Enemies/Small/BTT_AdjustSpeed.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Enemies/Small/BTT_AdjustSpeed.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Enemies/Small/BTT_Attack.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Enemies/Small/BTT_Attack.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Enemies/Small/BTT_FindRandomLoc.uasset
(Stored with Git LFS)
BIN
Content/Enemies/Small/BTT_FindRandomLoc.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
Content/Enemies/Small/BT_SmallEnemy.uasset
(Stored with Git LFS)
BIN
Content/Enemies/Small/BT_SmallEnemy.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
Content/FirstPerson/Blueprints/BP_FirstPersonCharacter.uasset
(Stored with Git LFS)
BIN
Content/FirstPerson/Blueprints/BP_FirstPersonCharacter.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
Content/Levels/PrototypeLevel.umap
(Stored with Git LFS)
BIN
Content/Levels/PrototypeLevel.umap
(Stored with Git LFS)
Binary file not shown.
BIN
Content/Levels/PrototypeLevelRework.umap
(Stored with Git LFS)
BIN
Content/Levels/PrototypeLevelRework.umap
(Stored with Git LFS)
Binary file not shown.
BIN
Content/Levels/PrototypeLevelRework1.umap
(Stored with Git LFS)
Normal file
BIN
Content/Levels/PrototypeLevelRework1.umap
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Levels/_GENERATED/ThomasWhitelegg/Box_18AF9D00.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Levels/_GENERATED/ThomasWhitelegg/Box_18AF9D00.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Levels/_GENERATED/ThomasWhitelegg/Extrude_4CA95822.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Levels/_GENERATED/ThomasWhitelegg/Extrude_4CA95822.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Levels/_GENERATED/ThomasWhitelegg/Extrude_881E35A2.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Levels/_GENERATED/ThomasWhitelegg/Extrude_881E35A2.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Levels/_GENERATED/ThomasWhitelegg/Extrude_B1DF9375.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Levels/_GENERATED/ThomasWhitelegg/Extrude_B1DF9375.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Levels/_GENERATED/ThomasWhitelegg/Path_934A14D3.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Levels/_GENERATED/ThomasWhitelegg/Path_934A14D3.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Monolith/BPI_Bullet.uasset
(Stored with Git LFS)
BIN
Content/Monolith/BPI_Bullet.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
Content/Monolith/BPI_Monolith.uasset
(Stored with Git LFS)
BIN
Content/Monolith/BPI_Monolith.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
Content/Monolith/UI/WBP_Died.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Monolith/UI/WBP_Died.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
@ -46,6 +46,7 @@ void AMonolithCharacter::BeginPlay()
|
|||||||
// Call the base class
|
// Call the base class
|
||||||
Super::BeginPlay();
|
Super::BeginPlay();
|
||||||
|
|
||||||
|
MaxHealth = Health;
|
||||||
Mesh1P = Cast<USkeletalMeshComponent>(GetComponentByClass(USkeletalMeshComponent::StaticClass()));
|
Mesh1P = Cast<USkeletalMeshComponent>(GetComponentByClass(USkeletalMeshComponent::StaticClass()));
|
||||||
CharMove = Cast<UCharacterMovementComponent>(GetComponentByClass(UCharacterMovementComponent::StaticClass()));
|
CharMove = Cast<UCharacterMovementComponent>(GetComponentByClass(UCharacterMovementComponent::StaticClass()));
|
||||||
if (CharMove) WalkSpeed = CharMove->MaxWalkSpeed;
|
if (CharMove) WalkSpeed = CharMove->MaxWalkSpeed;
|
||||||
@ -122,6 +123,19 @@ static void UpdateMoveState(FMoveState& MoveState, int Forwards, int Sideways)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void AMonolithCharacter::IncrementHealth(float amount)
|
||||||
|
{
|
||||||
|
Health += amount;
|
||||||
|
if (Health > MaxHealth)
|
||||||
|
{
|
||||||
|
Health = MaxHealth;
|
||||||
|
}
|
||||||
|
else if (Health <= 0)
|
||||||
|
{
|
||||||
|
Died();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void AMonolithCharacter::Move(const FInputActionValue& Value)
|
void AMonolithCharacter::Move(const FInputActionValue& Value)
|
||||||
{
|
{
|
||||||
// input is a Vector2D
|
// input is a Vector2D
|
||||||
|
@ -58,6 +58,11 @@ class AMonolithCharacter : public ACharacter
|
|||||||
// Amount of impulse to add when dashing
|
// Amount of impulse to add when dashing
|
||||||
UPROPERTY(EditAnywhere, Category = "MoveState", meta=(AllowPrivateAccess = "true"))
|
UPROPERTY(EditAnywhere, Category = "MoveState", meta=(AllowPrivateAccess = "true"))
|
||||||
float DashImpulse = 600.f;
|
float DashImpulse = 600.f;
|
||||||
|
|
||||||
|
UPROPERTY(EditDefaultsOnly, Category = "Health", meta=(AllowPrivateAccess = "true"))
|
||||||
|
float Health = 100.f;
|
||||||
|
|
||||||
|
float MaxHealth;
|
||||||
|
|
||||||
USkeletalMeshComponent* Mesh1P;
|
USkeletalMeshComponent* Mesh1P;
|
||||||
UCharacterMovementComponent* CharMove;
|
UCharacterMovementComponent* CharMove;
|
||||||
@ -70,6 +75,25 @@ protected:
|
|||||||
void BeginPlay();
|
void BeginPlay();
|
||||||
void Tick(float DeltaSeconds) override;
|
void Tick(float DeltaSeconds) override;
|
||||||
|
|
||||||
|
UFUNCTION(BlueprintCallable)
|
||||||
|
float GetHealth()
|
||||||
|
{
|
||||||
|
return Health;
|
||||||
|
}
|
||||||
|
|
||||||
|
UFUNCTION(BlueprintCallable)
|
||||||
|
void ResetHealth()
|
||||||
|
{
|
||||||
|
Health = MaxHealth;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Increase/Decrease health by this amount, will handle death
|
||||||
|
UFUNCTION(BlueprintCallable)
|
||||||
|
void IncrementHealth(float amount);
|
||||||
|
|
||||||
|
UFUNCTION(BlueprintImplementableEvent)
|
||||||
|
void Died();
|
||||||
|
|
||||||
/** Called for movement input */
|
/** Called for movement input */
|
||||||
void Move(const FInputActionValue& Value);
|
void Move(const FInputActionValue& Value);
|
||||||
void StopMove();
|
void StopMove();
|
||||||
|
Loading…
Reference in New Issue
Block a user