-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hunting (Aggression) #307
Comments
This comment was marked as outdated.
This comment was marked as outdated.
[ranged]
https://neptune-ps.gitlab.io/runescript/releases/hunt.html hunt-4
|
Blurites hunt ranges
|
* Add player tolerance * Add getOrDefault Variable getter * Remove get and getOrNull Variables extensions * Return nothing when yaml file is empty * Add basic hunting modes #307 * Iterate batch zones in south-west upwards order * Store FloorItems by Zone * Add varrock ash cleaner * Separate Player and NPCs from Interaction * Fix floor items with reveal and remove timers * Don't send update when clearing turn * Fix delaying npcs * Add cowardly hunt mode to giant spiders and dark wizards * Add aggression attacking * Remove NPC and PlayerActions * Make player and npc interactions character agnostic * Add dark wizard and delrith stats * Fix Zone package * Add demonbane passive weapon damage multipliers * Fix clearing players collision in WorldTest * Add floor item spawning to WorldTest * Rename in_combat to underAttack * Fix ranged combat test
More hunt modes will be added over time for Monster v Monster and other scenarios. Will need to add hunt mode switching when gwd targets die, and perhaps after a timeout too? As more aggressive npcs are added performance may become an issue. Possible performance improvements:
|
Invokes any interaction not just combat.
(10 min) Timeout
The game tracks targets in a FIFO queue of 21x21 squares around the player and counts down so long as you remain in it. If you step out, the older square is wiped and a new square is built around the new tile you're on and the timer resets to 10 mins.
Eventually turns most (not all i.e. dark beasts) creatures around you unaggressive (just towards you, they can still aggro others).
Scripts are very configurable.
Not tied to combat at all.
Use for waking up cerberus too.
RS has hundreds of hunt modes.
e.g. some are used for starting npc cutscenes when you walk near to them.
Switching
Gwd npcs sometimes switch targets mid-combat to opposing factions.
Caused by a hunt timeout?Caused by targets deathNeitiznot trolls fighting guards seem to switch every 3-10 ticks. Far more frequently than in GWD.
Cave lizards in Ourania/ZMI also switch frequently
Other gwd examples:
zamorakian npcs that are in another god's corner are completely unaggressive but will be if in the center.
Tolerance
After 10 minutes npcs will no longer flee from you and will fight back (with flawed anims?)
https://media.z-kris.com/2022/05/idea64_05d-19h-27m-34s-047ms.png
Player zones
Tracked by two 10x10 boxes
After teleport the first box is around where you arrive
The first tile outside of the first box is the first tile of the second box.
Then it's a FIFO queue of 2 boxes, remove the oldest one each time you leave the bounds of the two boxes.
Can be parallel processed.
Same boxes as discussed in Timeout ?
Kris' builder
Stack a bunch of predicates
https://media.z-kris.com/2022/07/IMoDMB251d.png
The text was updated successfully, but these errors were encountered: