Fixed Sniper display information following player

This commit is contained in:
MH261677 2024-02-12 18:05:25 +00:00 committed by PHILIP WHITE
parent 9388cae4c4
commit 9a66e91309
4 changed files with 8 additions and 8 deletions

View File

@ -8,9 +8,8 @@
</component> </component>
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="dfa3053d-1d51-4dad-9270-4c17e086f627" name="Changes" comment=""> <list default="true" id="dfa3053d-1d51-4dad-9270-4c17e086f627" name="Changes" comment="">
<change beforePath="$PROJECT_DIR$/.idea/.idea.EndlessVendetta/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/.idea.EndlessVendetta/.idea/workspace.xml" afterDir="false" /> <change beforePath="$PROJECT_DIR$/Content/FirstPerson/Blueprints/BaseWeapons/Shotguns/BP_BaseShotgun.uasset" beforeDir="false" afterPath="$PROJECT_DIR$/Content/FirstPerson/Blueprints/BaseWeapons/Shotguns/BP_BaseShotgun.uasset" afterDir="false" />
<change beforePath="$PROJECT_DIR$/EndlessVendetta.sln.DotSettings.user" beforeDir="false" afterPath="$PROJECT_DIR$/EndlessVendetta.sln.DotSettings.user" afterDir="false" /> <change beforePath="$PROJECT_DIR$/Content/FirstPerson/Blueprints/BaseWeapons/Snipers/BaseSniper.uasset" beforeDir="false" afterPath="$PROJECT_DIR$/Content/FirstPerson/Blueprints/BaseWeapons/Snipers/BaseSniper.uasset" afterDir="false" />
<change beforePath="$PROJECT_DIR$/Source/EndlessVendetta/EndlessVendettaCharacter.cpp" beforeDir="false" afterPath="$PROJECT_DIR$/Source/EndlessVendetta/EndlessVendettaCharacter.cpp" afterDir="false" />
</list> </list>
<option name="SHOW_DIALOG" value="false" /> <option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" /> <option name="HIGHLIGHT_CONFLICTS" value="true" />
@ -129,7 +128,7 @@
<workItem from="1706972179014" duration="11096000" /> <workItem from="1706972179014" duration="11096000" />
<workItem from="1707046474738" duration="8878000" /> <workItem from="1707046474738" duration="8878000" />
<workItem from="1707103463352" duration="6662000" /> <workItem from="1707103463352" duration="6662000" />
<workItem from="1707755232377" duration="4194000" /> <workItem from="1707755232377" duration="4748000" />
</task> </task>
<servers /> <servers />
</component> </component>

View File

@ -24,6 +24,7 @@ void ASniperClass::BeginPlay()
// Called every frame // Called every frame
void ASniperClass::Tick(float DeltaTime) void ASniperClass::Tick(float DeltaTime)
{ {
Super::Tick(DeltaTime);
ApplyRecoil(DeltaTime); ApplyRecoil(DeltaTime);
recoilMagnitude = 1; recoilMagnitude = 1;
if(endlessVendettaChar->bIsPlayerMoving == false ) if(endlessVendettaChar->bIsPlayerMoving == false )