Joshua Barretto
f35c98d1a1
Added LoD distance setting
2022-05-10 12:40:06 +01:00
Joshua Barretto
b3126ca687
Initial implementation of LoD trees
2022-05-10 12:38:36 +01:00
IsseW
022fa3d556
Clamp chances for gen bool in agent.rs
2022-05-10 08:44:26 +02:00
Forest Anderson
cea55143ce
Change outcomes to eventbus
2022-05-09 19:58:13 +00:00
holychowders
9c68fbbeed
Fix agents not hearing sounds due to reduced listen_dist
, caused by commit a6955e5af
.
...
- `listen_dist` has been restored to normal and the behavior intended by
the trouble commit has been much more properly encoded.
2022-05-04 21:22:19 -05:00
Marcel
84ab219cf3
Merge branch 'xMAC94x/update-toolchain' into 'master'
...
update toolchain to `nightly-2022-04-25`
See merge request veloren/veloren!3343
2022-05-03 14:07:49 +00:00
Marcel Märtens
697673bcca
update toolchain to nightly-2022-04-25
2022-05-03 15:22:28 +02:00
Samuel Keiffer
3abba05fb8
Merge branch 'holychowders/improve_perception_system' into 'master'
...
Agent: Use FOV when scanning for hostile targets and refactor `choose_target()`.
See merge request veloren/veloren!3307
2022-05-02 22:45:14 +00:00
Marcel
593d8fa4b5
Merge branch 'xMAC94x/update_vek' into 'master'
...
switch to upstream vek again
See merge request veloren/veloren!3342
2022-05-02 08:34:21 +00:00
holychowders
eab010b8c4
Change can_see_entity()
parameter ordering to be consistent with other action nodes.
...
- Moved `agent` and `controller` to front.
2022-05-01 19:18:44 -05:00
holychowders
f2b5ea600e
Revert parameter re-ordering of flee()
(included in commit 9b6616fc0
) to be consistent with other action nodes.
2022-05-01 19:18:44 -05:00
holychowders
a6955e5afb
Re-add listen_dist
check in choose_target()
and add randomness to simulate agents detecting entities directly behind them.
2022-05-01 19:18:43 -05:00
holychowders
17f7353083
Move more expensive perception check below validity check in filter; Reduce number of component fetches.
2022-05-01 19:18:42 -05:00
holychowders
5d78294141
Pass positions and bodies into entities_have_line_of_sight()
instead of fetching within.
2022-05-01 19:18:42 -05:00
holychowders
706ec91e69
Fix: Add alignment passivity check in is_enemy()
.
2022-05-01 19:18:25 -05:00
holychowders
97e0e39887
Reduce function names and remove unnecessary component fetch from function.
2022-05-01 19:05:28 -05:00
holychowders
455cab0ee7
Address code review.
2022-05-01 18:44:10 -05:00
holychowders
995504be26
Have line-of-sight checks explicitly account for eye-height for entities.
2022-05-01 18:23:27 -05:00
holychowders
dda85e4bc3
Address code review.
2022-05-01 18:23:23 -05:00
holychowders
645bbf7b0d
Refactor: re-order function signature to make more sense.
2022-05-01 17:30:23 -05:00
holychowders
d3873e357e
Agent: Use FOV when scanning for hostile targets and refactor choose_target()
.
...
- Refactors `choose_target()`, renaming it and extracting functions with more meaningful names and more correct behavior.
- Adds FOV for agents scanning for hostile targets.
2022-05-01 17:29:45 -05:00
holychowders
914b44c714
Fix villagers seeing cultists and familiar enemies through objects.
2022-05-01 15:06:43 +00:00
Marcel Märtens
fa49248c31
switch to upstream vek again
2022-04-28 09:10:55 +02:00
Youssef Fahmy
aec866e5ec
Balance tweaks
2022-04-23 14:54:01 +00:00
holychowders
cc409fd537
Extract some retargeting logic.
2022-04-11 11:54:09 -05:00
James Melkonian
b590bc50d7
Fix #1516 Add else branch to allow for agent idling when no sound events
2022-04-05 03:40:26 +00:00
Marcel
50fd55daef
Merge branch 'tormod-personalities' into 'master'
...
Give NPCs random Big Five personalities.
See merge request veloren/veloren!3280
2022-04-04 19:03:05 +00:00
Tormod G. Hellen
cb88648cca
Give NPCs random Big Five personalities.
2022-04-04 20:17:50 +02:00
Marcel Märtens
64b9602760
update further dependencies, including strum and get rid of old strum_macro
2022-04-04 16:06:47 +02:00
Marcel Märtens
affdf3131f
update a bunch of dependencies, including clap3
2022-04-04 11:43:29 +02:00
flo
3d24b1d635
CliffTowns
2022-03-29 12:52:08 +00:00
holychowders
39d5a73c10
Fix deadwood not attacking if target is at a different elevation than deadwood.
2022-03-27 20:02:38 +00:00
Samuel Keiffer
4aaefdf6be
Merge branch 'ubruntu/site2-guards-raiders' into 'master'
...
Bring raiders and guards to site2 towns
See merge request veloren/veloren!3300
2022-03-26 00:29:53 +00:00
ubruntu
6d30f7f748
Bring raiders and guards to site2 towns
2022-03-26 00:29:52 +00:00
Justin Shipsey
aee1aa7c1d
Merge branch 'holychowders/prevent_undesired_movement_on_agent_interaction' into 'master'
...
Agent Perception: Improve Awareness System
See merge request veloren/veloren!3263
2022-03-26 00:28:18 +00:00
holychowders
a88d8ada0f
Comment out unused awareness increment/decrement calls and un-nest conditional for early return.
2022-03-19 12:02:29 -05:00
James Melkonian
8c06dc9a5c
Add chunk reload command (admin only)
2022-03-19 08:43:38 +00:00
Manuel Schmidbauer
0037518472
Impl #1357 : Agent chase abort
...
- Adds util funcs to calculate benefit of continue pursue vs letting
target escape
- Hooks util funcs into agent's hostile tree
2022-03-14 18:06:57 +01:00
Imbris
06b605a8d0
Add note on reasoning in optional argument parsing behavior
2022-03-13 16:03:29 -04:00
Imbris
008e9051f7
Don't consume command args that fail parsing, so that optional args are properly skipped.
2022-03-13 15:41:37 -04:00
holychowders
c6bc6b63ee
Prevent enemy agents from reacting to sounds from too far away and remove an inconsequential distance check.
2022-03-12 18:13:02 -06:00
holychowders
cc808251e6
Make Enemy agents flee from dangerous sounds instead of follow.
2022-03-12 16:58:06 -06:00
holychowders
3ffb1a7706
Also restrict when Enemy agents respond to sounds and fix potential conditional bug.
2022-03-12 16:58:06 -06:00
holychowders
8d98ade15e
Agent perception: Make handling of sounds and awareness more intuitive.
...
When a sound was received in `idle_tree()`, awareness would be
incremented, causing a call to `handle_elevated_awareness()`, which
handled sounds heard. Instead, just `handle_sounds()` when they are heard and
increment awareness as part of hearing them.
The code more straightforwardly shows the agent first hearing a sound and then
becoming more aware based on that.
2022-03-12 16:58:06 -06:00
holychowders
df91f665d7
Agent Perception: Restrict when idling agents respond to sounds.
...
- Prevent utterances and other sounds from causing undesired jitters and
fleeing, such as those caused by greeting villagers.
- Agents will no longer flee from quieter weapon sounds such as melee.
2022-03-12 16:58:06 -06:00
Samuel Keiffer
a411db17bf
Merge branch 'tygyh/Refactor-path_toward_target' into 'master'
...
Tygyh/refactor path toward target
See merge request veloren/veloren!3241
2022-03-08 16:43:37 +00:00
Dr. Dystopia
1810998641
Remove redundant 'pos' variable
2022-03-05 09:54:01 +01:00
Dr. Dystopia
1cb7a083e7
Remove redundant if-statement
2022-03-05 09:53:28 +01:00
Dr. Dystopia
4aab1eea43
Remove redundant 'tgt_pos' variables
2022-03-01 22:54:44 +01:00
Dr. Dystopia
5aa1d3ceaf
Rename 'vec3' parameter to 'pos_difference'
2022-03-01 22:47:01 +01:00