Skip to content

Bounty Tasks Overhaul

Choose a tag to compare

@JackHarris67 JackHarris67 released this 11 Aug 14:01
· 22 commits to main since this release
6d855df

Mod Page: https://www.moddb.com/mods/stalker-anomaly/addons/bounty-task-overhaul

Makes Bounty Tasks more immersive requiring Player to manually hunt Targets down in several cases.

Without a tracking marker on the Target, and only knowing their last location, sometimes you have to track it down yourself.
Don't worry it's not all just busy work, since rewards for Bounty tasks are also increased based on your rank and your weapons.

If you are unsure where to look for a target - in Task Description there is a dynamic tracker for Target's name and the map they're currently on.

Sometimes task givers try to remind you about the bounty if you take too long, but more likely you come across a situation where someone else tries to steal the Bounty from you.
In that case, remember the name and take Thief down yourself. (Goodwill penalties are not covered.)
Thief gets a separate marker and it's own tracker.

If Target has been killed you have only 7 hours to collect the token from the corpse, otherwise Bounty expires.

This mod also features an extra Alife module, fork of C.R.A.P. Alife mod that evicts Bounty Targets from their bases to go somewhere else. While not guaranteed, it eliminates 90% of such cases.
Examples of blacklisted location include: Rostok Duty base or Dark Valley Bandit base or Yanov Station Freedom Base.

Can be safely uninstalled mid-task.Could probably install it mid-playthrough by that logic.
Game will just revert to the original logic and delete excess stages and items. Mod does NOT overwrite any of Engine's values and does not require custom assets.

v0.76 Release:
Additional fix for F.A.T.E. compatibility, to correctly verify rewards and checking "Enable Autocomplete" option in MCM

v0.75 Release:
Fixed issue of tasks Autofailing with F.A.T.E. enabled
Fixed the bug of ammo not being rewarded upon task completion with F.A.T.E enabled
Cleaned up the code and commented out console logs

Release v0.72:
Fixed crash of calling non-existing Task Giver to fix incompatability with Dr. X assassination tasks
They are coded weirdly, they take squad ID instead of Task giver ID

Release v0.71:
Restored Red Marker behavior from v0.69. It now re-registers and updates each time Target transitions to the new map.

instead of what was pretty much accidental where we used break in loop in 1 frame of logic to make a feature, now is a proper feature

Release v0.7:
Took me a week of rewriting everything to clean up the whole code

IMPORTANT:
Highly recommended to finish all Bounty tasks in your current save before updating.
Tracking system has been significantly changed which can result in incorrect data and broken markers.
Switch the mod OFF entirely, then save the game, then install and enable v0.7

Fixes:
Fully cleaned up scripts 100% passing the Linter
Optimized save data to avoid save bloat and ghost tasks
Improved and stricter logic for Thief claim system leveraging cleaner baseline to avoid runtime errors and not conflict with the engine
Added a Task tooltip informing Player that the target is dead. Very simple but gets the point across If Player didn't kill the target and no Thief was announced, it's up to you to finish your investigation in the area
If multiple NPCs travel to another map resulting in separate red markers in 1 spot, we move markers away from each other

v0.69 Release:
SEX UPDATE!!! It's the most appropriate that it's the shortest and smallest one
Switched verified task ID fromtostring(task_obj) to task_id for optimized engine compatability
Wipe out Red Circle when target changes maps, which automatically redraws it on new map and syncs up perfectly with Tooltip since we already know what map Target is on anyway at all times
Rephrased russian language tooltip

v0.68 Release:
SEX UPDATE IS DELAYED DUE TO BUGS!!!
Fixed: When another NPC kills target with multiple Bounties - only spawned 1 PDA/Token
Fixed: Apparently Zombified could steal bounties lmfao
Fixed: Rarely targets still end up in Blacklisted zones, added an hourly validation loop.

Apparently the Debug file cannot be empty, so i added a poem instead

v0.67 Release:
Fixed 7h task failure countdown starting when Target is dead no matter what (now checks for PDA in the inventory)
Fixed additional empty "Task Update" notification whenever Player changes maps
Fixed Rewards: Modded Gun CSLIDs not giving ammo; improved the filtering to add modded guns to reward pool for ammo (Guns like Pernach didn't give any ammo)
Fixed Rewards: Rechambered guns not giving correct ammo; now correctly applies the Rechambered ammo

v0.66 Release:
Small patch to just increase the cooldown between Task Giver messages to 10 min from 2 min
I've been testing v0.65 and haven't noticed any bugs yet or anything gamebreaking

v0.65 Release:
Killers always announce they killed the Bounty Target even for contracts Player didn't take
Implemented a check, to only spawn Token/PDA inside the Thief's/Killer's inventory when Player has task active

v0.64 Release:
Compartmentalized individual Task tracking for each ID and each Thief and Target instead of using Generic value
Fixed floating math timer of task expiration leading to buggy failure stages
Fixed The duplicates of Thief red markers
Code restructuring and pulling out message system into a separate file

v0.63 Release:
New dynamic Rank Based reward system for Bounty Tasks with reward picked based on your equipment.
Includes anti save-scum protection and protection against exploits
System should be compatible with modded guns and modded ammo
Possible issue in case the gun's ammo was never meant to be obtainable
Crash Fix due to Target being in offline state on stage progression

v0.6 Release:
This is a pretty big one
Reworked the turn-in system, Failing task or Turning it in now gets rid of PDA without having to physically talk to Task Giver
Added compatability for "F.A.T.E." and compatability with "G.A.M.M.A. NPC Loot Claim Remade" (By restructuring the logic rather than traditional Patch)
Added a separate system of Bounty Thiefs and them physically stealing PDAs Bounty Token
Filtered out Companions and Story characters from paticipating in the system
Upon Target being killed and whether unlooted or Thief keeping the PDA for 7 hours - task fails automatically
Thief recieves a separate "Last Seen" persistent across the Zone marker until Task is done
Removed duplicating PDA messages on Task Updated
Implemented a fail safe for Wounded stalkers
Resurrected and fixed Task Giver reminder messages

v0.56 Release:
Crash fix for Alive method, changed to health verification

Crash comes from Alife or other similar system manually unregistering our Target from the database
While itself a decent hook, that's what causes the crash

v0.55 Release:
Crash fix for character_name though Pcall
Fix for duplicate PDA updates by intercepting C++ engine code
Protection against Killer and Target dying at the same time (Explosives)
Protection against Target dying while in Offline state across the map from the Player
Lots of localization work
Even more localization
A bit more localization
Should default to English .xml if something goes wrong, but im still learning how to implement localization well

v0.5 Release:
Added a system for tracking Last Known Position of a Target (only triggers when Task is Accepted atm)
Added notifications on target getting killed but only if killed by NPC or Player
Added checks whether target is killed by another NPC or the Player (works with GAMMA body claim or without)
Slightly reworked notification news system

In more technical detail:
We implemented a static icon that is tied to Restrictor's ID and make an offset to point to Targets (last known) Position with 0.1 margin of error to minimize how much we cache in, we also have no need to cache Y coordinate for this.
On target getting killed we write down killer's ID whether NPC or Player, we do not reference mutants or anomalies so it stays silent, therefore we call for our script to send a message from whoever Killer is indicating the target is killed. Said ID is deleted next frame after News message has been sent.
Task Giver never informed about it, but he shuts up after target is killed. Since neither Mutants or Anomalies have data we ask for, Target killed by either never recieves a news log.
Therefore: cache - minimal, performance cost - non existent

v0.4 Release:
Added an Alife module for forcefully evicting Bounty Tagrets from blacklisted map spots. Those being mostly NPC hubs

It means that:

  1. You are free to take Any Bounty without ever concerning yourself with fighting an entire base of enemies to get to it
  2. As a side effect it adds more dynamic NPC pathing into the zone and NPCs holding new areas
  3. Task Info on "Last Seen" dynamically updates when Target goes to another map and you'll get notification for it in PDA.

To clarify on Performance since Alife module inclusion could raise red flags and rightfully so:
The way Alife Script is written - Script itself only triggers when Task Accepted once
The worst case scenario is we tell Engine to re-roll our Target's destination twice and that only causes 2.5ms calculation. In most other cases its 0.01ms-0.02ms cost each Task Accepted Activation

v0.3 Release:
Added dynamic task info for Target and Map location

will do cig tip some other time

v0.2 Release:
Set up basic filters to target all Bounty Tasks
Added new system with PDA news messages for confirming Bounty Target on the same map as Player
Different NPCs have different messages; messages are reshuffled and protected from being repeated

I tested backwards compatability and safe removal of the mod (in the middle of Bounty task included)
Worked flawlessly for me, but let me know about any issues