Major Update
NEW:

-Added a new sensor(Awareness);
  With this new sensor the NPC is now able to find new spots while in
  action;

CHANGES:

-Added 2 conditions:

 CheckTargetState condition: While in combat the npc knows the state of
 the target, for example if the target is reloading, shooting, aiming or out
 of bullets.

 TryToFindCoverLocation: This condition will provide if the NPC is in
 combat, the NPC will try to Find cover spots using the Awareness Sensor.

- Added two child GameObjects to the NPC Prefab one for each sensor in
  order to organize better the script structure;

FUTURE CHANGES:

-Implement the transition action to Cover State;
-Add Actions to cover state;
-Add Animations to cover state;
1 parent 6c5cd0d commit 48cfa031a111c737349a1b31ac113a3200277ae2
@Rackday Rackday authored on 14 Aug
Showing 62 changed files
View
Assets/3D Models/VillainGuy/Animations/Masks.meta 0 → 100644
View
Assets/3D Models/VillainGuy/Animations/Masks/EnemyMainLayerMask.mask 0 → 100644
View
Assets/3D Models/VillainGuy/Animations/Masks/EnemyMainLayerMask.mask.meta 0 → 100644
View
Assets/3D Models/VillainGuy/Animations/Masks/OtherActionsMask.mask 0 → 100644
View
Assets/3D Models/VillainGuy/Animations/Masks/OtherActionsMask.mask.meta 0 → 100644
View
Assets/3D Models/VillainGuy/Animations/Movement/Pistol/Enemy_Draw_Pistol.fbx 0 → 100644
Not supported
View
Assets/3D Models/VillainGuy/Animations/Movement/Pistol/Enemy_Draw_Pistol.fbx.meta 0 → 100644
View
Assets/3D Models/VillainGuy/Animations/Scenes.meta 0 → 100644
View
Assets/3D Models/VillainGuy/Animations/Scenes/Demo.unity 0 → 100644
Too large (Show diff)
View
Assets/3D Models/VillainGuy/Animations/Scenes/Demo.unity.meta 0 → 100644
View
Assets/3D Models/VillainGuy/Scenes.meta 100644 → 0
View
Assets/3D Models/VillainGuy/Scenes/Demo.unity 100644 → 0
Too large (Show diff)
View
Assets/3D Models/VillainGuy/Scenes/Demo.unity.meta 100644 → 0
View
Assets/3D Models/VillainGuy/VillainGuyController.controller
View
Assets/Editor/AwarenessEditor.cs 0 → 100644
View
Assets/Editor/AwarenessEditor.cs.meta 0 → 100644
View
Assets/OutdoorsScene.unity
View
Assets/Scripts/DebugManager.cs 0 → 100644
View
Assets/Scripts/DebugManager.cs.meta 0 → 100644
View
Assets/Scripts/Interfaces/IState.cs 0 → 100644
View
Assets/Scripts/Interfaces/IState.cs.meta 0 → 100644
View
Assets/Scripts/Interfaces/IUpdatable.cs 0 → 100644
View
Assets/Scripts/Interfaces/IUpdatable.cs.meta 0 → 100644
View
Assets/Scripts/NPC/FSM/Actions/Combat/Ranged/EngagePlayerAction.asset 100644 → 0
View
Assets/Scripts/NPC/FSM/Actions/Combat/Ranged/EngagePlayerAction.asset.meta 100644 → 0
View
Assets/Scripts/NPC/FSM/Actions/Combat/Ranged/EngagePlayerAction.cs
View
Assets/Scripts/NPC/FSM/Actions/Combat/Ranged/EngageTargetAction.asset 0 → 100644
View
Assets/Scripts/NPC/FSM/Actions/Combat/Ranged/EngageTargetAction.asset.meta 0 → 100644
View
Assets/Scripts/NPC/FSM/Actions/Combat/Ranged/GoToCoverAction.cs 0 → 100644
View
Assets/Scripts/NPC/FSM/Actions/Combat/Ranged/GoToCoverAction.cs.meta 0 → 100644
View
Assets/Scripts/NPC/FSM/Actions/Others/DrawGun.asset 0 → 100644
View
Assets/Scripts/NPC/FSM/Actions/Others/DrawGun.asset.meta 0 → 100644
View
Assets/Scripts/NPC/FSM/Actions/Others/DrawGun.cs 0 → 100644
View
Assets/Scripts/NPC/FSM/Actions/Others/DrawGun.cs.meta 0 → 100644
View
Assets/Scripts/NPC/FSM/Conditions/CheckTargetState.cs 0 → 100644
View
Assets/Scripts/NPC/FSM/Conditions/CheckTargetState.cs.meta 0 → 100644
View
Assets/Scripts/NPC/FSM/Conditions/Combat.meta 0 → 100644
View
Assets/Scripts/NPC/FSM/Conditions/Combat/IsTargetShooting.asset 0 → 100644
View
Assets/Scripts/NPC/FSM/Conditions/Combat/IsTargetShooting.asset.meta 0 → 100644
View
Assets/Scripts/NPC/FSM/Conditions/Combat/TryFindCover.asset 0 → 100644
View
Assets/Scripts/NPC/FSM/Conditions/Combat/TryFindCover.asset.meta 0 → 100644
View
Assets/Scripts/NPC/FSM/Conditions/Combat/TryToFindCoverLocation.cs 0 → 100644
View
Assets/Scripts/NPC/FSM/Conditions/Combat/TryToFindCoverLocation.cs.meta 0 → 100644
View
Assets/Scripts/NPC/FSM/FSM.cs
View
Assets/Scripts/NPC/FSM/State.cs
View
Assets/Scripts/NPC/FSM/States/Alive/Combat/Combat.asset
View
Assets/Scripts/NPC/FSM/States/Alive/Combat/RangedCombat/RangedCombatState.asset
View
Assets/Scripts/NPC/FSM/Transitions/EngageToCover.asset 0 → 100644
View
Assets/Scripts/NPC/FSM/Transitions/EngageToCover.asset.meta 0 → 100644
View
Assets/Scripts/NPC/FieldOfView.cs 100644 → 0
View
Assets/Scripts/NPC/FieldOfView.cs.meta 100644 → 0
View
Assets/Scripts/NPC/NPCController.cs
View
Assets/Scripts/NPC/Sensors.meta 0 → 100644
View
Assets/Scripts/NPC/Sensors/Awareness.cs 0 → 100644
View
Assets/Scripts/NPC/Sensors/Awareness.cs.meta 0 → 100644
View
Assets/Scripts/NPC/Sensors/FieldOfView.cs 0 → 100644
View
Assets/Scripts/NPC/Sensors/FieldOfView.cs.meta 0 → 100644
View
Assets/Scripts/Player/PlayerController.cs
View
Assets/Scripts/Tools.meta 0 → 100644
View
Assets/Scripts/Tools/AnimTool.cs 0 → 100644
View
Assets/Scripts/Tools/AnimTool.cs.meta 0 → 100644
View
ProjectSettings/Packages/com.unity.probuilder/Settings.json