Updated Gadget, Gadget Workbench, Restricted Area and Interaction Propmt UI

This commit is contained in:
Rafal Swierczek 2024-05-06 17:51:13 +01:00
parent 8f39911f23
commit a3368bc647
10 changed files with 20 additions and 16 deletions

Binary file not shown.

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1 version https://git-lfs.github.com/spec/v1
oid sha256:6e221e6841cd1d11fe2c3670ec1e4e1d5ed61122cc9cc57a87f58b5b851a9faf oid sha256:82f0a25d3459152a411697a1299f3c8a438f16aac05a6be1e517b0fce36ddab3
size 14831 size 14831

View File

@ -884,6 +884,10 @@ bool AEndlessVendettaCharacter::UpdateGadgetType(TSubclassOf<AGadgetBase> NewGad
GadgetManager->SpawnGadget(NewGadgetClass, Cast<UCameraComponent>(PlayersCamera)); GadgetManager->SpawnGadget(NewGadgetClass, Cast<UCameraComponent>(PlayersCamera));
break; break;
} }
if (NewGadgetClass.GetDefaultObject()->IsA(AReconGadget::StaticClass())) ToggleRecon();
else if (NewGadgetClass.GetDefaultObject()->IsA(ACombatGadget::StaticClass())) ToggleCombat();
return true; return true;
} }