Skip to content

Commit

Permalink
FEATURE: Noise seems to be working with patrols and mimetics.
Browse files Browse the repository at this point in the history
  • Loading branch information
AMarquez94 committed Apr 10, 2018
1 parent 9a46430 commit a8d5977
Show file tree
Hide file tree
Showing 10 changed files with 153 additions and 187 deletions.
2 changes: 1 addition & 1 deletion Bin/data/prefabs/mimetic.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"name": "Cone of Vision",
"transform": {},
"render": {
"mesh": "cone_of_vision.mesh"
"mesh": "cone_of_vision_patrol.mesh"
},
"hierarchy": {
"parent": "Mimetic"
Expand Down
34 changes: 24 additions & 10 deletions Bin/data/prefabs/patrol.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@
{
"variable_name": "fov",
"variable_type": "float",
"variable_value": 179.0,
"variable_value": 120.0,
"variable_op": ""
}
],
Expand Down Expand Up @@ -172,7 +172,7 @@
{
"variable_name": "fov",
"variable_type": "float",
"variable_value": 179.0,
"variable_value": 120.0,
"variable_op": ""
}
],
Expand All @@ -193,7 +193,7 @@
{
"variable_name": "fov",
"variable_type": "float",
"variable_value": 179.0,
"variable_value": 120.0,
"variable_op": ""
},
{
Expand Down Expand Up @@ -236,7 +236,21 @@
"variable_op": ""
}
],
"assert": "assertNotPlayerInFovNorArtificialNoise"
"assert": "assertNotPlayerInFovNorArtificialNoise",
"assertArg": [
{
"variable_name": "fov",
"variable_type": "float",
"variable_value": 110.0,
"variable_op": ""
},
{
"variable_name": "maxChaseDistance",
"variable_type": "float",
"variable_value": 34.0,
"variable_op": ""
}
]
},
{
"parent": "manageDoPatrol",
Expand All @@ -255,7 +269,7 @@
{
"variable_name": "fov",
"variable_type": "float",
"variable_value": 179.0,
"variable_value": 120.0,
"variable_op": ""
},
{
Expand Down Expand Up @@ -338,7 +352,7 @@
{
"variable_name": "fov",
"variable_type": "float",
"variable_value": 179.0,
"variable_value": 120.0,
"variable_op": ""
},
{
Expand Down Expand Up @@ -466,7 +480,7 @@
{
"variable_name": "fov",
"variable_type": "float",
"variable_value": 179.0,
"variable_value": 120.0,
"variable_op": ""
},
{
Expand Down Expand Up @@ -552,7 +566,7 @@
{
"variable_name": "fov",
"variable_type": "float",
"variable_value": 179.0,
"variable_value": 120.0,
"variable_op": ""
},
{
Expand Down Expand Up @@ -586,7 +600,7 @@
{
"variable_name": "fov",
"variable_type": "float",
"variable_value": 179.0,
"variable_value": 120.0,
"variable_op": ""
},
{
Expand Down Expand Up @@ -727,7 +741,7 @@
"name": "Cone of Vision",
"transform": {},
"render": {
"mesh": "cone_of_vision.mesh"
"mesh": "cone_of_vision_patrol.mesh"
},
"hierarchy": {
"parent": "The Enemy"
Expand Down
24 changes: 4 additions & 20 deletions Bin/data/scenes/enemy.scene
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
}
},
{
"xentity": {
"entity": {
"prefab": "data/prefabs/patrol.prefab",
"name": "The Enemy 1",
"transform": {
Expand Down Expand Up @@ -42,22 +42,6 @@
"position": "0 0 110",
"lookAt": "-1 0 0"
}
],
"argCond": [
{
"nodeName": "managePlayerSeen",
"conditionName": "conditionPlayerSeen",
"variableName": "fov",
"newValue": 120.0
}
],
"argAct": [
{
"nodeName": "goToWpt",
"actionName": "actionGoToWpt",
"variableName": "speed",
"newValue": 17.0
}
]
},
"collider": {
Expand All @@ -73,7 +57,7 @@
}
}
}, {
"xentity": {
"entity": {
"prefab": "data/prefabs/patrol.prefab",
"name": "The Enemy 3",
"transform": {
Expand Down Expand Up @@ -138,7 +122,7 @@
}
}
}, {
"xentity": {
"entity": {
"prefab": "data/prefabs/patrol.prefab",
"name": "The Enemy 4",
"transform": {
Expand Down Expand Up @@ -228,7 +212,7 @@
}
}
}, {
"entity": {
"xentity": {
"prefab": "data/prefabs/mimetic.prefab",
"name": "Mimetic 2",
"transform": {
Expand Down
2 changes: 1 addition & 1 deletion Bin/data/scenes/player_fsm.scene
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"entity": {
"name": "The Player",
"transform": {
"pos": "-7 1 82"
"pos": "-7 1 12"
},
"render": {
"mesh": "data/meshes/pj_idle.mesh",
Expand Down
Loading

0 comments on commit a8d5977

Please sign in to comment.