Advertisement
closer_ex

Untitled

Dec 18th, 2024
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 35.06 KB | None | 0 0
  1.         <!-- *** Slight Hand-Shaking When Aiming And New Stamina Values -->
  2.         <remove xpath="/buffs/buff[@name='buffHoldBreathAiming01']/effect_group/passive_effect[@name='StaminaChangeOT' or @name='WeaponHandling']"/>
  3.         <append xpath="/buffs/buff[@name='buffHoldBreathAiming01']">
  4.             <update_rate value="0.1"/>
  5.             <effect_group>
  6.                 <requirement name="HoldingItemHasTags" tags="perkGunslinger"/>
  7.                     <passive_effect name="StaminaChangeOT" operation="perc_add" duration="0,3" value="-.6,-1.2"/>
  8.                     <passive_effect name="StaminaChangeOT" operation="perc_add" duration="3,9999" value="-1.2,-1.2"/>
  9.             </effect_group>
  10.             <effect_group>
  11.                 <requirement name="HoldingItemHasTags" tags="perkBoomstick"/>
  12.                     <passive_effect name="StaminaChangeOT" operation="perc_add" duration="0,3" value="-0.9,-1.8"/>
  13.                     <passive_effect name="StaminaChangeOT" operation="perc_add" duration="3,9999" value="-1.8,-1.8"/>
  14.             </effect_group>
  15.             <effect_group>
  16.                 <requirement name="HoldingItemHasTags" tags="perkMachineGunner"/>
  17.                 <requirement name="!HoldingItemHasTags" tags="fnminimionly,rpdonly,pkponly"/>
  18.                     <passive_effect name="StaminaChangeOT" operation="perc_add" duration="0,3" value="-0.8,-1.6"/>
  19.                     <passive_effect name="StaminaChangeOT" operation="perc_add" duration="3,9999" value="-1.6,-1.6"/>
  20.             </effect_group>
  21.             <effect_group>
  22.                 <requirement name="HoldingItemHasTags" tags="perkDeadEye"/>
  23.                     <passive_effect name="StaminaChangeOT" operation="perc_add" duration="0,3" value="-0.9,-1.8"/>
  24.                     <passive_effect name="StaminaChangeOT" operation="perc_add" duration="3,9999" value="-1.8,-1.8"/>
  25.             </effect_group>
  26.             <effect_group>
  27.                 <requirement name="HoldingItemHasTags" tags="fnminimionly,rpdonly,pkponly"/>
  28.                     <passive_effect name="StaminaChangeOT" operation="perc_add" duration="0,3" value="-1.0,-2.0"/>
  29.                     <passive_effect name="StaminaChangeOT" operation="perc_add" duration="3,9999" value="-2.0,-2.0"/>
  30.             </effect_group>
  31.             <effect_group>
  32.                 <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".staminaLevelThres" operation="set" value="0.5"/>
  33.                 <triggered_effect trigger="onSelfBuffStart" action="AddBuff" buff="buffAimStaminaCheck"/>
  34.                 <triggered_effect trigger="onSelfBuffRemove" action="RemoveBuff" buff="buffAimStaminaCheck"/>
  35.             </effect_group>
  36.         </append>
  37.    
  38.     <append xpath="/buffs">
  39.         <buff name="buffAimStaminaCheck">
  40.             <stack_type value="replace"/>
  41.             <duration value="0"/>
  42.             <update_rate value="0.1"/>
  43.             <!-- update stamina state on start aiming -->
  44.             <!-- stamina might regen during aim and pass the thres, it's not handled -->
  45.             <!-- can also change the stamina check to something else such as arm stamina to avoid this -->
  46.             <effect_group>
  47.                 <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".staminaLevelOnAim" operation="set" value="2">
  48.                     <requirement name="StatComparePercCurrentToMax" stat="stamina" operation="GT" value="@.staminaLevelThres"/>
  49.                 </triggered_effect>
  50.                 <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".staminaLevelOnAim" operation="set" value="1">
  51.                     <requirement name="StatComparePercCurrentToMax" stat="stamina" operation="LTE" value="@.staminaLevelThres"/>
  52.                     <requirement name="StatComparePercCurrentToMax" stat="stamina" operation="GT" value="0"/>
  53.                 </triggered_effect>
  54.                 <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".staminaLevelOnAim" operation="set" value="0">
  55.                     <requirement name="StatComparePercCurrentToMax" stat="stamina" operation="LTE" value="0"/>
  56.                 </triggered_effect>
  57.             </effect_group>
  58.             <!-- pistols -->
  59.             <effect_group>
  60.                 <!-- when stamina is above thres -->
  61.                 <requirement name="HoldingItemHasTags" tags="perkGunslinger"/>
  62.                 <requirement name="StatComparePercCurrentToMax" stat="stamina" operation="GT" value="@.staminaLevelThres"/>
  63.                     <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.17"/>
  64.                     <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.17"/>
  65.                     <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="0.25"/>
  66.                     <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="0.25"/>
  67.  
  68.                     <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeSpeedTarget" operation="set" value="0.17"/>
  69.                     <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeAmpTarget" operation="set" value="0.25"/>
  70.             </effect_group>
  71.             <effect_group>
  72.                 <!-- when stamina is below thres -->
  73.                 <requirement name="HoldingItemHasTags" tags="perkGunslinger"/>
  74.                 <requirement name="StatComparePercCurrentToMax" stat="stamina" operation="LTE" value="@.staminaLevelThres"/>
  75.                 <requirement name="StatComparePercCurrentToMax" stat="stamina" operation="GT" value="0"/>
  76.                     <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.17"/>
  77.                     <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.17"/>
  78.                     <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="1.8"/>
  79.                     <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="1.8"/>
  80.  
  81.                     <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeSpeedTarget" operation="set" value="0.17"/>
  82.                     <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeAmpTarget" operation="set" value="1.8"/>
  83.             </effect_group>
  84.             <effect_group>
  85.                 <!-- when stamina is 0 -->
  86.                 <requirement name="HoldingItemHasTags" tags="perkGunslinger"/>
  87.                 <requirement name="StatComparePercCurrentToMax" stat="stamina" operation="LTE" value="0"/>
  88.                     <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.17"/>
  89.                     <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.17"/>
  90.                     <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="3.0"/>
  91.                     <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="3.0"/>
  92.  
  93.                     <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeSpeedTarget" operation="set" value="0.17"/>
  94.                     <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeAmpTarget" operation="set" value="3.0"/>
  95.             </effect_group>
  96.             <effect_group>
  97.                 <!-- when 2A2 buff exist, amp is not set for simplicity, you can also set them based on stamina -->
  98.                 <requirement name="HoldingItemHasTags" tags="perkGunslinger"/>
  99.                 <requirement name="HasBuff" buff="buff2A2Injector"/>
  100.                     <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.68"/>
  101.                     <!-- <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="1.98"/> -->
  102.  
  103.                     <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeSpeedTarget" operation="set" value="0.68"/>
  104.                     <!-- <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeAmpTarget" operation="set" value="1.98"/> -->
  105.                    
  106.                     <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.68"/>
  107.                     <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeSpeedTarget" operation="set" value="0.68"/>
  108.             </effect_group>
  109.             <!-- shotguns -->
  110.             <effect_group>
  111.                 <requirement name="HoldingItemHasTags" tags="perkBoomstick"/>
  112.                 <requirement name="StatComparePercCurrentToMax" stat="stamina" operation="GT" value="@.staminaLevelThres"/>
  113.                     <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.17"/>
  114.                     <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.17"/>
  115.                     <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="0.5"/>
  116.                     <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="0.5"/>
  117.  
  118.                     <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeSpeedTarget" operation="set" value="0.17"/>
  119.                     <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeAmpTarget" operation="set" value="0.5"/>
  120.             </effect_group>
  121.             <effect_group>
  122.                 <requirement name="HoldingItemHasTags" tags="perkBoomstick"/>
  123.                 <requirement name="StatComparePercCurrentToMax" stat="stamina" operation="LTE" value="@.staminaLevelThres"/>
  124.                 <requirement name="StatComparePercCurrentToMax" stat="stamina" operation="GT" value="0"/>
  125.                     <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.17"/>
  126.                     <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.17"/>
  127.                     <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="3"/>
  128.                     <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="3"/>
  129.  
  130.                     <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeSpeedTarget" operation="set" value="0.17"/>
  131.                     <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeAmpTarget" operation="set" value="3"/>
  132.             </effect_group>
  133.             <effect_group>
  134.                 <requirement name="HoldingItemHasTags" tags="perkBoomstick"/>
  135.                 <requirement name="StatComparePercCurrentToMax" stat="stamina" operation="LTE" value="0"/>
  136.                     <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.17"/>
  137.                     <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.17"/>
  138.                     <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="6"/>
  139.                     <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="6"/>
  140.  
  141.                     <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeSpeedTarget" operation="set" value="0.17"/>
  142.                     <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeAmpTarget" operation="set" value="6"/>
  143.             </effect_group>
  144.             <effect_group>
  145.                 <requirement name="HoldingItemHasTags" tags="perkBoomstick"/>
  146.                 <requirement name="HasBuff" buff="buff2A2Injector"/>
  147.                     <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.68"/>
  148.                     <!-- <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="3.3"/> -->
  149.  
  150.                     <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeSpeedTarget" operation="set" value="0.68"/>
  151.                     <!-- <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeAmpTarget" operation="set" value="3.3"/> -->
  152.                    
  153.                     <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.68"/>
  154.                     <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeSpeedTarget" operation="set" value="0.68"/>
  155.             </effect_group>
  156.             <!-- assault rifles -->
  157.             <effect_group>
  158.                 <requirement name="HoldingItemHasTags" tags="perkMachineGunner"/>
  159.                 <requirement name="!HoldingItemHasTags" tags="fnminimionly,rpdonly,pkponly"/>
  160.                 <requirement name="StatComparePercCurrentToMax" stat="stamina" operation="GT" value="@.staminaLevelThres"/>
  161.                     <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.17"/>
  162.                     <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.17"/>
  163.                     <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="0.4"/>
  164.                     <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="0.4"/>
  165.  
  166.                     <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeSpeedTarget" operation="set" value="0.17"/>
  167.                     <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeAmpTarget" operation="set" value="0.4"/>
  168.             </effect_group>
  169.             <effect_group>
  170.                 <requirement name="HoldingItemHasTags" tags="perkMachineGunner"/>
  171.                 <requirement name="!HoldingItemHasTags" tags="fnminimionly,rpdonly,pkponly"/>
  172.                 <requirement name="StatComparePercCurrentToMax" stat="stamina" operation="LTE" value="@.staminaLevelThres"/>
  173.                 <requirement name="StatComparePercCurrentToMax" stat="stamina" operation="GT" value="0"/>
  174.                     <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.17"/>
  175.                     <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.17"/>
  176.                     <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="2.4"/>
  177.                     <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="2.4"/>
  178.  
  179.                     <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeSpeedTarget" operation="set" value="0.17"/>
  180.                     <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeAmpTarget" operation="set" value="2.4"/>
  181.             </effect_group>
  182.             <effect_group>
  183.                 <requirement name="HoldingItemHasTags" tags="perkMachineGunner"/>
  184.                 <requirement name="!HoldingItemHasTags" tags="fnminimionly,rpdonly,pkponly"/>
  185.                 <requirement name="StatComparePercCurrentToMax" stat="stamina" operation="LTE" value="0"/>
  186.                     <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.17"/>
  187.                     <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.17"/>
  188.                     <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="4.8"/>
  189.                     <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="4.8"/>
  190.  
  191.                     <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeSpeedTarget" operation="set" value="0.17"/>
  192.                     <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeAmpTarget" operation="set" value="4.8"/>
  193.             </effect_group>
  194.             <effect_group>
  195.                 <requirement name="HoldingItemHasTags" tags="perkMachineGunner"/>
  196.                 <requirement name="!HoldingItemHasTags" tags="fnminimionly,rpdonly,pkponly"/>
  197.                 <requirement name="HasBuff" buff="buff2A2Injector"/>
  198.                     <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.68"/>
  199.                     <!-- <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="2.64"/> -->
  200.  
  201.                     <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeSpeedTarget" operation="set" value="0.68"/>
  202.  
  203.                     <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.68"/>
  204.                     <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeSpeedTarget" operation="set" value="0.68"/>
  205.                     <!-- <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeAmpTarget" operation="set" value="2.64"/> -->
  206.             </effect_group>
  207.             <!-- sniper rifles -->
  208.             <effect_group>
  209.                 <requirement name="HoldingItemHasTags" tags="perkDeadEye"/>
  210.                 <requirement name="StatComparePercCurrentToMax" stat="stamina" operation="GT" value="@.staminaLevelThres"/>
  211.                     <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.07"/>
  212.                     <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.07"/>
  213.                     <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="0.25"/>
  214.                     <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="0.25"/>
  215.  
  216.                     <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeSpeedTarget" operation="set" value="0.07"/>
  217.                     <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeAmpTarget" operation="set" value="0.25"/>
  218.             </effect_group>
  219.             <effect_group>
  220.                 <requirement name="HoldingItemHasTags" tags="perkDeadEye"/>
  221.                 <requirement name="StatComparePercCurrentToMax" stat="stamina" operation="LTE" value="@.staminaLevelThres"/>
  222.                 <requirement name="StatComparePercCurrentToMax" stat="stamina" operation="GT" value="0"/>
  223.                 <requirement name="ProgressionLevel" progression_name="perkDeadEyeRecoil" operation="GTE" value="3"/>
  224.                     <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.07"/>
  225.                     <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.07"/>
  226.                     <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="1.5"/>
  227.                     <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="1.5"/>
  228.  
  229.                     <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeSpeedTarget" operation="set" value="0.07"/>
  230.                     <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeAmpTarget" operation="set" value="1.5"/>
  231.             </effect_group>
  232.             <effect_group>
  233.                 <requirement name="HoldingItemHasTags" tags="perkDeadEye"/>
  234.                 <requirement name="StatComparePercCurrentToMax" stat="stamina" operation="LTE" value="@.staminaLevelThres"/>
  235.                 <requirement name="StatComparePercCurrentToMax" stat="stamina" operation="GT" value="0"/>
  236.                 <requirement name="ProgressionLevel" progression_name="perkDeadEyeRecoil" operation="LT" value="3"/>
  237.                     <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.07"/>
  238.                     <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.07"/>
  239.                     <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="3"/>
  240.                     <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="3"/>
  241.  
  242.                     <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeSpeedTarget" operation="set" value="0.07"/>
  243.                     <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeAmpTarget" operation="set" value="3"/>
  244.             </effect_group>
  245.             <effect_group>
  246.                 <requirement name="HoldingItemHasTags" tags="perkDeadEye"/>
  247.                 <requirement name="StatComparePercCurrentToMax" stat="stamina" operation="LTE" value="0"/>
  248.                 <requirement name="ProgressionLevel" progression_name="perkDeadEyeRecoil" operation="GTE" value="3"/>
  249.                     <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.07"/>
  250.                     <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.07"/>
  251.                     <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="3"/>
  252.                     <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="3"/>
  253.  
  254.                     <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeSpeedTarget" operation="set" value="0.07"/>
  255.                     <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeAmpTarget" operation="set" value="3"/>
  256.             </effect_group>
  257.             <effect_group>
  258.                 <requirement name="HoldingItemHasTags" tags="perkDeadEye"/>
  259.                 <requirement name="StatComparePercCurrentToMax" stat="stamina" operation="LTE" value="0"/>
  260.                 <requirement name="ProgressionLevel" progression_name="perkDeadEyeRecoil" operation="LT" value="3"/>
  261.                     <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.07"/>
  262.                     <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.07"/>
  263.                     <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="6"/>
  264.                     <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="6"/>
  265.  
  266.                     <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeSpeedTarget" operation="set" value="0.07"/>
  267.                     <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeAmpTarget" operation="set" value="6"/>
  268.             </effect_group>
  269.             <effect_group>
  270.                 <requirement name="HoldingItemHasTags" tags="perkDeadEye"/>
  271.                 <requirement name="HasBuff" buff="buff2A2Injector"/>
  272.                     <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.6"/>
  273.                     <!-- <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="3.3"/> -->
  274.  
  275.                     <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeSpeedTarget" operation="set" value="0.6"/>
  276.                     <!-- <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeAmpTarget" operation="set" value="3.3"/> -->
  277.                    
  278.                     <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.6"/>
  279.                     <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeSpeedTarget" operation="set" value="0.6"/>
  280.             </effect_group>
  281.             <!-- machine guns -->
  282.             <effect_group>
  283.                 <requirement name="HoldingItemHasTags" tags="fnminimionly,rpdonly,pkponly"/>
  284.                 <requirement name="StatComparePercCurrentToMax" stat="stamina" operation="GT" value="@.staminaLevelThres"/>
  285.                     <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.17"/>
  286.                     <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.17"/>
  287.                     <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="0.25"/>
  288.                     <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="0.25"/>
  289.  
  290.                     <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeSpeedTarget" operation="set" value="0.17"/>
  291.                     <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeAmpTarget" operation="set" value="0.25"/>
  292.             </effect_group>
  293.             <effect_group>
  294.                 <requirement name="HoldingItemHasTags" tags="fnminimionly,rpdonly,pkponly"/>
  295.                 <requirement name="StatComparePercCurrentToMax" stat="stamina" operation="LTE" value="@.staminaLevelThres"/>
  296.                 <requirement name="StatComparePercCurrentToMax" stat="stamina" operation="GT" value="0"/>
  297.                     <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.17"/>
  298.                     <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.17"/>
  299.                     <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="3.12"/>
  300.                     <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="3.12"/>
  301.  
  302.                     <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeSpeedTarget" operation="set" value="0.17"/>
  303.                     <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeAmpTarget" operation="set" value="3.12"/>
  304.             </effect_group>
  305.             <effect_group>
  306.                 <requirement name="HoldingItemHasTags" tags="fnminimionly,rpdonly,pkponly"/>
  307.                 <requirement name="StatComparePercCurrentToMax" stat="stamina" operation="LTE" value="0"/>
  308.                     <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.17"/>
  309.                     <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.17"/>
  310.                     <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="7.2"/>
  311.                     <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="7.2"/>
  312.  
  313.                     <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeSpeedTarget" operation="set" value="0.17"/>
  314.                     <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeAmpTarget" operation="set" value="7.2"/>
  315.             </effect_group>
  316.             <effect_group>
  317.                 <requirement name="HoldingItemHasTags" tags="fnminimionly,rpdonly,pkponly"/>
  318.                 <requirement name="HasBuff" buff="buff2A2Injector"/>
  319.                     <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.68"/>
  320.                     <!-- <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="3.43"/> -->
  321.  
  322.                     <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeSpeedTarget" operation="set" value="0.68"/>
  323.                     <!-- <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeAmpTarget" operation="set" value="3.43"/> -->
  324.                    
  325.                     <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.68"/>
  326.                     <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeSpeedTarget" operation="set" value="0.68"/>
  327.             </effect_group>
  328.             <!-- 2A2 should stack this buff when used, so that even if it's added during aiming, the shake is properly interpolated -->
  329.             <effect_group>
  330.                 <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="@.aimShakeSpeed"/>
  331.                 <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="@.aimShakeAmp"/>
  332.                 <triggered_effect trigger="onSelfBuffStack" action="AddBuff" buff="buffAimShakeBuffConverter"/>
  333.             </effect_group>
  334.             <effect_group>
  335.                 <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeSpeed" operation="set" value="@.aimShakeSpeedBase"/>
  336.                 <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeSpeed" operation="set" value="@.aimShakeSpeedBase"/>
  337.                 <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeAmp" operation="set" value="@.aimShakeAmpBase"/>
  338.                 <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeAmp" operation="set" value="@.aimShakeAmpBase"/>
  339.  
  340.                 <triggered_effect trigger="onSelfBuffStart" action="ShakeCamera" shake_speed="@.aimShakeSpeed" shake_amplitude="@.aimShakeAmp" shake_time="-1"/>
  341.                 <triggered_effect trigger="onSelfBuffStack" action="ShakeCamera" shake_speed="@.aimShakeSpeed" shake_amplitude="@.aimShakeAmp" shake_time="-1"/>
  342.                 <triggered_effect trigger="onSelfBuffUpdate" action="ShakeCamera" shake_speed="@.aimShakeSpeed" shake_amplitude="@.aimShakeAmp" shake_time="-1"/>
  343.                 <triggered_effect trigger="onSelfBuffRemove" action="ShakeCamera" shake_speed="0" shake_amplitude="0" shake_time="-1"/>
  344.  
  345.                 <triggered_effect trigger="onSelfBuffRemove" action="RemoveBuff" buff="buffAimShakeBuffConverter"/>
  346.                 <triggered_effect trigger="onSelfBuffRemove" action="RemoveBuff" buff="buffAimShakeInterpolation"/>
  347.             </effect_group>
  348.             <effect_group>
  349.                 <requirement name="StatComparePercCurrentToMax" stat="stamina" operation="LTE" value="@.staminaLevelThres"/>
  350.                 <requirement name="StatComparePercCurrentToMax" stat="stamina" operation="GT" value="0"/>
  351.                 <requirement name="CVarCompare" cvar=".staminaLevelOnAim" operation="GT" value="1"/>
  352.                     <triggered_effect trigger="onSelfBuffUpdate" action="AddBuff" buff="buffAimShakeBuffConverter"/>
  353.                     <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".staminaLevelOnAim" operation="set" value="1"/>
  354.             </effect_group>
  355.             <effect_group>
  356.                 <requirement name="StatComparePercCurrentToMax" stat="stamina" operation="LTE" value="0"/>
  357.                 <requirement name="CVarCompare" cvar=".staminaLevelOnAim" operation="GT" value="0"/>
  358.                     <triggered_effect trigger="onSelfBuffUpdate" action="AddBuff" buff="buffAimShakeBuffConverter"/>
  359.                     <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".staminaLevelOnAim" operation="set" value="0"/>
  360.             </effect_group>
  361.         </buff>
  362.  
  363.         <!-- the interpolation pre processing buff -->
  364.         <!-- shake speed is used for noise texture sampling which in short is rng, thus speed wont interpolate -->
  365.         <!-- when speed changes, we set speed to target value immediately and amp base to 0 so that no wonky shake -->
  366.         <buff name="buffAimShakeBuffConverter">
  367.             <stack_type value="ignore"/>
  368.             <duration value="0"/>
  369.             <update_rate value="0.1"/>
  370.             <effect_group>
  371.                 <requirement name="HasBuff" buff="buffHoldBreathAiming01"/>
  372.                     <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="@.aimShakeSpeed"/>
  373.                     <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="@.aimShakeAmp"/>
  374.                     <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="0">
  375.                         <requirement name="CVarCompare" cvar=".aimShakeSpeedBase" operation="NotEquals" value="@.aimShakeSpeedTarget"/>
  376.                     </triggered_effect>
  377.                     <triggered_effect trigger="onSelfBuffStart" action="AddBuff" buff="buffAimShakeInterpolation"/>
  378.             </effect_group>
  379.         </buff>
  380.        
  381.         <!-- the actual interpolation buff -->
  382.         <buff name="buffAimShakeInterpolation">
  383.             <stack_type value="replace"/>
  384.             <duration value="0"/>
  385.             <update_rate value="0.05"/>
  386.             <effect_group name="init timer">
  387.                 <triggered_effect trigger="onSelfBuffStart" action="RemoveBuff" buff="buffAimShakeBuffConverter"/>
  388.                 <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeStepsCur" operation="set" value="0"/>
  389.                 <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeStepsCur" operation="set" value="0"/>
  390.                 <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeStepsTotal" operation="set" value="20"/>
  391.                 <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeStepsTotal" operation="set" value="20"/>
  392.                 <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeStepsCur" operation="add" value="1"/>
  393.             </effect_group>
  394.             <effect_group name="update shake speed">
  395.                 <!-- calculate increase per update -->
  396.                 <!-- <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeSpeedIncrease" operation="set" value="@.aimShakeSpeedTarget"/>
  397.                 <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeSpeedIncrease" operation="subtract" value="@.aimShakeSpeedBase"/>
  398.                 <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeSpeedIncrease" operation="divide" value="@.aimShakeStepsTotal"/>
  399.  
  400.                 <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeSpeedIncrease" operation="set" value="@.aimShakeSpeedTarget"/>
  401.                 <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeSpeedIncrease" operation="subtract" value="@.aimShakeSpeedBase"/>
  402.                 <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeSpeedIncrease" operation="divide" value="@.aimShakeStepsTotal"/> -->
  403.                 <!-- modify cvar -->
  404.                 <!-- <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeSpeed" operation="set" value="@.aimShakeSpeedTarget"/>
  405.                 <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeSpeed" operation="set" value="@.aimShakeSpeedTarget"/>
  406.                 <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeSpeed" operation="add" value="@.aimShakeSpeedIncrease"/> -->
  407.                 <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeSpeed" operation="set" value="@.aimShakeSpeedTarget"/>
  408.                 <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeSpeed" operation="set" value="@.aimShakeSpeedTarget"/>
  409.             </effect_group>
  410.             <effect_group name="update shake amplitude">
  411.                 <!-- calculate increase per update -->
  412.                 <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeAmpIncrease" operation="set" value="@.aimShakeAmpTarget"/>
  413.                 <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeAmpIncrease" operation="subtract" value="@.aimShakeAmpBase"/>
  414.                 <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeAmpIncrease" operation="divide" value="@.aimShakeStepsTotal"/>
  415.  
  416.                 <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeAmpIncrease" operation="set" value="@.aimShakeAmpTarget"/>
  417.                 <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeAmpIncrease" operation="subtract" value="@.aimShakeAmpBase"/>
  418.                 <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeAmpIncrease" operation="divide" value="@.aimShakeStepsTotal"/>
  419.                 <!-- modify cvar -->
  420.                 <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeAmp" operation="set" value="@.aimShakeAmpBase"/>
  421.                 <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeAmp" operation="set" value="@.aimShakeAmpBase"/>
  422.                 <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeAmp" operation="add" value="@.aimShakeAmpIncrease"/>
  423.             </effect_group>
  424.             <effect_group name="update shake and timer">
  425.                 <triggered_effect trigger="onSelfBuffStart" action="ShakeCamera" shake_speed="@.aimShakeSpeed" shake_amplitude="@.aimShakeAmp" shake_time="-1"/>
  426.                 <triggered_effect trigger="onSelfBuffStack" action="ShakeCamera" shake_speed="@.aimShakeSpeed" shake_amplitude="@.aimShakeAmp" shake_time="-1"/>
  427.                 <triggered_effect trigger="onSelfBuffUpdate" action="ShakeCamera" shake_speed="@.aimShakeSpeed" shake_amplitude="@.aimShakeAmp" shake_time="-1"/>
  428.  
  429.                 <triggered_effect trigger="onSelfBuffUpdate" action="RemoveBuff" buff="buffAimShakeInterpolation">
  430.                     <requirement name="CVarCompare" cvar=".aimShakeStepsCur" operation="GTE" value="@.aimShakeStepsTotal"/>
  431.                 </triggered_effect>
  432.                 <triggered_effect trigger="onSelfBuffRemove" action="ShakeCamera" shake_speed="0" shake_amplitude="0" shake_time="-1">
  433.                     <requirement name="!HasBuff" buff="buffHoldBreathAiming01"/>
  434.                 </triggered_effect>
  435.             </effect_group>
  436.         </buff>
  437.     </append>
  438.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement