-
Notifications
You must be signed in to change notification settings - Fork 4
TTK calling and backend details
oh-yes-0-fps edited this page Feb 7, 2023
·
5 revisions
Ttk calculations most of the time are straightforward, but this API helps you with dynamic variables, so no matter the trait buff the weapon is receiving it will be handled appropriately in a pvp environment. An example is a guardian with a 25 hp over shield with the trait over under, after the shield is broken the perk buff will stop applying in the calculation. Another example is quicksilver storm for bodyshot ttk, 10 shots don't kill but with the rocket that can be changed so that will also be taken into account.
Python: WeaponInterface.get_ttk(float)
Javascript: getWeaponTtk(float).data
-
overshield
: a float that tells the calculator how much overshield the opposing guardian has
- Returns an array of 11 structs called
ResillienceSummary
(one for each resilience value) - Each
ResillienceSummary
has 3 fields,value
,body_ttk
andoptimal_ttk
-
value
: The resilience value this summary is referencing -
body_ttk
: Contains two fields,bodyshots
as an int for how many shots it took to kill andtime_taken
for the actual ttk -
optimal_ttk
:headshots
andbodyshots
are both integers telling you how many of each is needed for optimal,time_taken
for the actual ttk andall_crit_range
is a float for telling you if you hit all crits, how far away you could still achieve optimal ttk