AI Level 2 merge
This commit is contained in:
parent
749cedfae2
commit
485d8cc38b
|
@ -14,13 +14,13 @@ Type: 13
|
||||||
Name: Walk
|
Name: Walk
|
||||||
ID: 229189609
|
ID: 229189609
|
||||||
Type: 13
|
Type: 13
|
||||||
Name: Alerted by Racoon
|
Name: Alerted_by_Racoon
|
||||||
ID: 227890696
|
ID: 227890696
|
||||||
Type: 13
|
Type: 13
|
||||||
Name: Alerted Idle
|
Name: Alerted_Idle
|
||||||
ID: 234046577
|
ID: 234046577
|
||||||
Type: 13
|
Type: 13
|
||||||
Name: Alerted Run
|
Name: Alerted_Run
|
||||||
ID: 230172366
|
ID: 230172366
|
||||||
Type: 13
|
Type: 13
|
||||||
Name: Interact
|
Name: Interact
|
||||||
|
@ -47,21 +47,21 @@ Type: 13
|
||||||
Name: StunEndBack
|
Name: StunEndBack
|
||||||
ID: 226668516
|
ID: 226668516
|
||||||
Type: 13
|
Type: 13
|
||||||
Name: React to Broken Stuff
|
Name: React_to_Broken_Stuff
|
||||||
ID: 228323560
|
ID: 228323560
|
||||||
Type: 13
|
Type: 13
|
||||||
Name: Pickup Item
|
Name: Pickup_Item
|
||||||
ID: 227002263
|
ID: 227002263
|
||||||
Type: 13
|
Type: 13
|
||||||
Name: Return Item
|
Name: Return_Item
|
||||||
ID: 222655168
|
ID: 222655168
|
||||||
Type: 13
|
Type: 13
|
||||||
Name: Attack Windup
|
Name: Attack_Windup
|
||||||
ID: 223078653
|
ID: 223078653
|
||||||
Type: 13
|
Type: 13
|
||||||
Name: Attack Hold
|
Name: Attack_Hold
|
||||||
ID: 228250554
|
ID: 228250554
|
||||||
Type: 13
|
Type: 13
|
||||||
Name: Attack Sequence
|
Name: Attack_Sequence
|
||||||
ID: 226129627
|
ID: 226129627
|
||||||
Type: 13
|
Type: 13
|
||||||
|
|
Binary file not shown.
|
@ -1,3 +1,3 @@
|
||||||
Name: Level2_NavData
|
Name: Level2_NavData
|
||||||
ID: 267663500
|
ID: 260674210
|
||||||
Type: 15
|
Type: 15
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
- NavData: 0
|
- NavData: 260674210
|
||||||
- EID: 20
|
- EID: 20
|
||||||
Name: ===== Light =====
|
Name: ===== Light =====
|
||||||
IsActive: true
|
IsActive: true
|
||||||
|
@ -5542,19 +5542,61 @@
|
||||||
Position Offset: {x: 0, y: 0.899999976, z: 0}
|
Position Offset: {x: 0, y: 0.899999976, z: 0}
|
||||||
Rotation Offset: {x: 0, y: 0, z: 0}
|
Rotation Offset: {x: 0, y: 0, z: 0}
|
||||||
IsActive: true
|
IsActive: true
|
||||||
|
Navigation Component:
|
||||||
|
Target: {x: 0, y: 0, z: 0}
|
||||||
|
Forward: {x: 0, y: 0, z: 0}
|
||||||
|
Recalculate Path: true
|
||||||
|
Unreachable Target: false
|
||||||
|
Tolerance: 1
|
||||||
|
Acceptance threshold: 0.100000001
|
||||||
|
IsActive: true
|
||||||
|
Animator Component:
|
||||||
|
Rig: 76586906
|
||||||
|
AnimationController: 0
|
||||||
|
IsActive: true
|
||||||
Scripts:
|
Scripts:
|
||||||
- Type: Homeowner1
|
- Type: SHADE_Scripting.Gameplay.AIBehaviour.AIRework.AILineOfSight
|
||||||
Enabled: true
|
Enabled: true
|
||||||
waypointsPool: 166
|
player: 2
|
||||||
startWaypoint: 162
|
range: 5
|
||||||
patrolSpeed: 0.75
|
angle: 30
|
||||||
chaseSpeed: 2
|
angleBetween: 0
|
||||||
turningSpeed: 5
|
distance: 0
|
||||||
sightDistance: 8
|
heightLimit: 1
|
||||||
eyeOffset: [0, 1.64999998, 0]
|
rayOffset: [0, 0, 0]
|
||||||
distanceToCapture: 0.800000012
|
withinRange: false
|
||||||
captureTime: 0.5
|
withinSight: false
|
||||||
footstepSFXIntervalMultiplier: 0.5
|
lastFoundPos: [0, 0, 0]
|
||||||
|
lastFoundTimer: 0
|
||||||
|
- Type: SHADE_Scripting.Gameplay.AIBehaviour.AIRework.RotateToVelocity
|
||||||
|
Enabled: true
|
||||||
|
rotationPerSecond: 5
|
||||||
|
active: true
|
||||||
|
rotateToPlayerLastKnown: false
|
||||||
|
lookAround: false
|
||||||
|
- Type: SHADE_Scripting.Gameplay.AIBehaviour.AIRework.HomeOwnerAI
|
||||||
|
Enabled: true
|
||||||
|
idleDuration: 1
|
||||||
|
timeoutDuration: 2
|
||||||
|
patrolPointParent: 166
|
||||||
|
patrolSpeed: 1
|
||||||
|
chaseSpeed: 3
|
||||||
|
alertCooldown: 0
|
||||||
|
player: 2
|
||||||
|
attackHitbox: 627
|
||||||
|
walkingAnim: 229189609
|
||||||
|
idleAnim: 224442713
|
||||||
|
alertAnim: 227890696
|
||||||
|
alertRunAnim: 230172366
|
||||||
|
alertIdleAnim: 234046577
|
||||||
|
timeoutAnim: 228323560
|
||||||
|
atkWindupAnim: 223078653
|
||||||
|
atkHoldAnim: 228250554
|
||||||
|
atkSeqAnim: 226129627
|
||||||
|
- Type: StateMachine
|
||||||
|
Enabled: true
|
||||||
|
currentStateName: ""
|
||||||
|
currentAnimName: ""
|
||||||
- EID: 10
|
- EID: 10
|
||||||
Name: Pause Canvas
|
Name: Pause Canvas
|
||||||
IsActive: false
|
IsActive: false
|
||||||
|
@ -5606,7 +5648,7 @@
|
||||||
Components:
|
Components:
|
||||||
Transform Component:
|
Transform Component:
|
||||||
Translate: {x: 0, y: -300, z: 0}
|
Translate: {x: 0, y: -300, z: 0}
|
||||||
Rotate: {x: 0.5, y: 1.63842165, z: 0.5}
|
Rotate: {x: -1.48352981, y: 1.63842165, z: 0.5}
|
||||||
Scale: {x: 400, y: 100, z: 500}
|
Scale: {x: 400, y: 100, z: 500}
|
||||||
IsActive: true
|
IsActive: true
|
||||||
Renderable Component:
|
Renderable Component:
|
||||||
|
@ -6165,7 +6207,7 @@
|
||||||
Collider Component:
|
Collider Component:
|
||||||
Colliders:
|
Colliders:
|
||||||
- Is Trigger: false
|
- Is Trigger: false
|
||||||
Collision Tag: 7
|
Collision Tag: 8
|
||||||
Type: Box
|
Type: Box
|
||||||
Half Extents: {x: 10, y: 1, z: 18}
|
Half Extents: {x: 10, y: 1, z: 18}
|
||||||
Friction: 0.400000006
|
Friction: 0.400000006
|
||||||
|
@ -9263,6 +9305,15 @@
|
||||||
Density: 1
|
Density: 1
|
||||||
Position Offset: {x: 0.180000007, y: 0.5, z: 0}
|
Position Offset: {x: 0.180000007, y: 0.5, z: 0}
|
||||||
Rotation Offset: {x: 0, y: 0, z: 0}
|
Rotation Offset: {x: 0, y: 0, z: 0}
|
||||||
|
- Is Trigger: false
|
||||||
|
Collision Tag: 9
|
||||||
|
Type: Box
|
||||||
|
Half Extents: {x: 2, y: 1, z: 0.5}
|
||||||
|
Friction: 0.400000006
|
||||||
|
Bounciness: 0
|
||||||
|
Density: 1
|
||||||
|
Position Offset: {x: 0, y: 0, z: -0.100000001}
|
||||||
|
Rotation Offset: {x: 0, y: 0.922214508, z: 0}
|
||||||
IsActive: true
|
IsActive: true
|
||||||
Scripts: ~
|
Scripts: ~
|
||||||
- EID: 204
|
- EID: 204
|
||||||
|
@ -9299,6 +9350,15 @@
|
||||||
Density: 1
|
Density: 1
|
||||||
Position Offset: {x: 0.180000007, y: 0.5, z: 0}
|
Position Offset: {x: 0.180000007, y: 0.5, z: 0}
|
||||||
Rotation Offset: {x: 0, y: 0, z: 0}
|
Rotation Offset: {x: 0, y: 0, z: 0}
|
||||||
|
- Is Trigger: false
|
||||||
|
Collision Tag: 9
|
||||||
|
Type: Box
|
||||||
|
Half Extents: {x: 1.5, y: 1, z: 0.5}
|
||||||
|
Friction: 0.400000006
|
||||||
|
Bounciness: 0
|
||||||
|
Density: 1
|
||||||
|
Position Offset: {x: 0.200000003, y: 0.5, z: 0.300000012}
|
||||||
|
Rotation Offset: {x: 0, y: 0.448165625, z: 0}
|
||||||
IsActive: true
|
IsActive: true
|
||||||
Scripts: ~
|
Scripts: ~
|
||||||
- EID: 236
|
- EID: 236
|
||||||
|
@ -10204,6 +10264,15 @@
|
||||||
Density: 1
|
Density: 1
|
||||||
Position Offset: {x: -0.474999994, y: 0.600000024, z: 0}
|
Position Offset: {x: -0.474999994, y: 0.600000024, z: 0}
|
||||||
Rotation Offset: {x: 0, y: 0, z: 0}
|
Rotation Offset: {x: 0, y: 0, z: 0}
|
||||||
|
- Is Trigger: false
|
||||||
|
Collision Tag: 9
|
||||||
|
Type: Box
|
||||||
|
Half Extents: {x: 4.30000019, y: 1.20000005, z: 1.20000005}
|
||||||
|
Friction: 0.400000006
|
||||||
|
Bounciness: 0
|
||||||
|
Density: 1
|
||||||
|
Position Offset: {x: 1.5, y: 0.600000024, z: 0}
|
||||||
|
Rotation Offset: {x: 0, y: 0, z: 0}
|
||||||
IsActive: true
|
IsActive: true
|
||||||
Scripts: ~
|
Scripts: ~
|
||||||
- EID: 230
|
- EID: 230
|
||||||
|
@ -17061,3 +17130,29 @@
|
||||||
Acceleration: {x: 0, y: -0.100000001, z: 0}
|
Acceleration: {x: 0, y: -0.100000001, z: 0}
|
||||||
IsActive: true
|
IsActive: true
|
||||||
Scripts: ~
|
Scripts: ~
|
||||||
|
- EID: 627
|
||||||
|
Name: AttackHitbox
|
||||||
|
IsActive: true
|
||||||
|
NumberOfChildren: 0
|
||||||
|
Components:
|
||||||
|
Transform Component:
|
||||||
|
Translate: {x: 0, y: -0.10252738, z: -2.20271254}
|
||||||
|
Rotate: {x: 0, y: 0, z: 0}
|
||||||
|
Scale: {x: 1, y: 1, z: 1}
|
||||||
|
IsActive: true
|
||||||
|
Collider Component:
|
||||||
|
Colliders:
|
||||||
|
- Is Trigger: true
|
||||||
|
Collision Tag: 5
|
||||||
|
Type: Box
|
||||||
|
Half Extents: {x: 0.600000024, y: 1.79999995, z: 1.5}
|
||||||
|
Friction: 0.400000006
|
||||||
|
Bounciness: 0
|
||||||
|
Density: 1
|
||||||
|
Position Offset: {x: 0, y: 1, z: 0}
|
||||||
|
Rotation Offset: {x: 0, y: 0, z: 0}
|
||||||
|
IsActive: true
|
||||||
|
Scripts:
|
||||||
|
- Type: SHADE_Scripting.Gameplay.AIBehaviour.AIRework.HomeOwnerAttackHitbox
|
||||||
|
Enabled: true
|
||||||
|
aiGO: 158
|
|
@ -9,15 +9,29 @@ namespace SHADE_Scripting.Gameplay.AIBehaviour.AIRework
|
||||||
{
|
{
|
||||||
public class HomeOwnerAttackHitbox:Script
|
public class HomeOwnerAttackHitbox:Script
|
||||||
{
|
{
|
||||||
|
public GameObject aiGO;
|
||||||
protected override void onCollisionEnter(CollisionInfo info)
|
protected override void update()
|
||||||
{
|
{
|
||||||
PlayerController pc = info.GameObject.GetScript<PlayerController>();
|
Transform transform = GetComponent<Transform>();
|
||||||
HomeOwnerAI ai = GameObject.Parent.GetScript<HomeOwnerAI>();
|
Transform aiTransform = aiGO.GetComponent<Transform>();
|
||||||
if (pc && ai)
|
|
||||||
{
|
|
||||||
Debug.Log("HomeOwnerAttackHitbox: Player caught");
|
|
||||||
|
|
||||||
|
if(transform)
|
||||||
|
{
|
||||||
|
transform.GlobalPosition = aiTransform.GlobalPosition;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
protected override void onTriggerStay(CollisionInfo info)
|
||||||
|
{
|
||||||
|
|
||||||
|
PlayerController pc = info.GameObject.GetScript<PlayerController>();
|
||||||
|
HomeOwnerAI ai = aiGO.GetScript<HomeOwnerAI>();
|
||||||
|
if (pc)
|
||||||
|
{
|
||||||
|
pc.GotCaught();
|
||||||
|
if(ai)
|
||||||
|
ai.Reset();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -502,7 +502,7 @@ public class PlayerController : Script
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void GotCaught()
|
public void GotCaught()
|
||||||
{
|
{
|
||||||
if (currentState == RaccoonStates.CAUGHT && tranform && respawnPoint)
|
if (currentState == RaccoonStates.CAUGHT && tranform && respawnPoint)
|
||||||
{
|
{
|
||||||
|
|
|
@ -218,6 +218,7 @@ namespace SHADE
|
||||||
|
|
||||||
void SHNavigationSystem::GenerateNavigationGridData() noexcept
|
void SHNavigationSystem::GenerateNavigationGridData() noexcept
|
||||||
{
|
{
|
||||||
|
Clear();
|
||||||
GenerateNavigationGridData(origin_editor, size_editor, numRows_editor, numCols_editor);
|
GenerateNavigationGridData(origin_editor, size_editor, numRows_editor, numCols_editor);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue