Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!-- *** Slight Hand-Shaking When Aiming And New Stamina Values -->
- <remove xpath="/buffs/buff[@name='buffHoldBreathAiming01']/effect_group/passive_effect[@name='StaminaChangeOT' or @name='WeaponHandling']"/>
- <append xpath="/buffs/buff[@name='buffHoldBreathAiming01']">
- <update_rate value="0.1"/>
- <effect_group>
- <requirement name="HoldingItemHasTags" tags="perkGunslinger"/>
- <passive_effect name="StaminaChangeOT" operation="perc_add" duration="0,3" value="-.6,-1.2"/>
- <passive_effect name="StaminaChangeOT" operation="perc_add" duration="3,9999" value="-1.2,-1.2"/>
- </effect_group>
- <effect_group>
- <requirement name="HoldingItemHasTags" tags="perkBoomstick"/>
- <passive_effect name="StaminaChangeOT" operation="perc_add" duration="0,3" value="-0.9,-1.8"/>
- <passive_effect name="StaminaChangeOT" operation="perc_add" duration="3,9999" value="-1.8,-1.8"/>
- </effect_group>
- <effect_group>
- <requirement name="HoldingItemHasTags" tags="perkMachineGunner"/>
- <requirement name="!HoldingItemHasTags" tags="fnminimionly,rpdonly,pkponly"/>
- <passive_effect name="StaminaChangeOT" operation="perc_add" duration="0,3" value="-0.8,-1.6"/>
- <passive_effect name="StaminaChangeOT" operation="perc_add" duration="3,9999" value="-1.6,-1.6"/>
- </effect_group>
- <effect_group>
- <requirement name="HoldingItemHasTags" tags="perkDeadEye"/>
- <passive_effect name="StaminaChangeOT" operation="perc_add" duration="0,3" value="-0.9,-1.8"/>
- <passive_effect name="StaminaChangeOT" operation="perc_add" duration="3,9999" value="-1.8,-1.8"/>
- </effect_group>
- <effect_group>
- <requirement name="HoldingItemHasTags" tags="fnminimionly,rpdonly,pkponly"/>
- <passive_effect name="StaminaChangeOT" operation="perc_add" duration="0,3" value="-1.0,-2.0"/>
- <passive_effect name="StaminaChangeOT" operation="perc_add" duration="3,9999" value="-2.0,-2.0"/>
- </effect_group>
- <effect_group>
- <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".staminaLevelThres" operation="set" value="0.5"/>
- <triggered_effect trigger="onSelfBuffStart" action="AddBuff" buff="buffAimStaminaCheck"/>
- <triggered_effect trigger="onSelfBuffRemove" action="RemoveBuff" buff="buffAimStaminaCheck"/>
- </effect_group>
- </append>
- <append xpath="/buffs">
- <buff name="buffAimStaminaCheck">
- <stack_type value="replace"/>
- <duration value="0"/>
- <update_rate value="0.1"/>
- <!-- update stamina state on start aiming -->
- <!-- stamina might regen during aim and pass the thres, it's not handled -->
- <!-- can also change the stamina check to something else such as arm stamina to avoid this -->
- <effect_group>
- <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".staminaLevelOnAim" operation="set" value="2">
- <requirement name="StatComparePercCurrentToMax" stat="stamina" operation="GT" value="@.staminaLevelThres"/>
- </triggered_effect>
- <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".staminaLevelOnAim" operation="set" value="1">
- <requirement name="StatComparePercCurrentToMax" stat="stamina" operation="LTE" value="@.staminaLevelThres"/>
- <requirement name="StatComparePercCurrentToMax" stat="stamina" operation="GT" value="0"/>
- </triggered_effect>
- <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".staminaLevelOnAim" operation="set" value="0">
- <requirement name="StatComparePercCurrentToMax" stat="stamina" operation="LTE" value="0"/>
- </triggered_effect>
- </effect_group>
- <!-- pistols -->
- <effect_group>
- <!-- when stamina is above thres -->
- <requirement name="HoldingItemHasTags" tags="perkGunslinger"/>
- <requirement name="StatComparePercCurrentToMax" stat="stamina" operation="GT" value="@.staminaLevelThres"/>
- <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.17"/>
- <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.17"/>
- <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="0.25"/>
- <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="0.25"/>
- <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeSpeedTarget" operation="set" value="0.17"/>
- <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeAmpTarget" operation="set" value="0.25"/>
- </effect_group>
- <effect_group>
- <!-- when stamina is below thres -->
- <requirement name="HoldingItemHasTags" tags="perkGunslinger"/>
- <requirement name="StatComparePercCurrentToMax" stat="stamina" operation="LTE" value="@.staminaLevelThres"/>
- <requirement name="StatComparePercCurrentToMax" stat="stamina" operation="GT" value="0"/>
- <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.17"/>
- <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.17"/>
- <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="1.8"/>
- <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="1.8"/>
- <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeSpeedTarget" operation="set" value="0.17"/>
- <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeAmpTarget" operation="set" value="1.8"/>
- </effect_group>
- <effect_group>
- <!-- when stamina is 0 -->
- <requirement name="HoldingItemHasTags" tags="perkGunslinger"/>
- <requirement name="StatComparePercCurrentToMax" stat="stamina" operation="LTE" value="0"/>
- <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.17"/>
- <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.17"/>
- <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="3.0"/>
- <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="3.0"/>
- <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeSpeedTarget" operation="set" value="0.17"/>
- <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeAmpTarget" operation="set" value="3.0"/>
- </effect_group>
- <effect_group>
- <!-- when 2A2 buff exist, amp is not set for simplicity, you can also set them based on stamina -->
- <requirement name="HoldingItemHasTags" tags="perkGunslinger"/>
- <requirement name="HasBuff" buff="buff2A2Injector"/>
- <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.68"/>
- <!-- <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="1.98"/> -->
- <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeSpeedTarget" operation="set" value="0.68"/>
- <!-- <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeAmpTarget" operation="set" value="1.98"/> -->
- <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.68"/>
- <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeSpeedTarget" operation="set" value="0.68"/>
- </effect_group>
- <!-- shotguns -->
- <effect_group>
- <requirement name="HoldingItemHasTags" tags="perkBoomstick"/>
- <requirement name="StatComparePercCurrentToMax" stat="stamina" operation="GT" value="@.staminaLevelThres"/>
- <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.17"/>
- <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.17"/>
- <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="0.5"/>
- <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="0.5"/>
- <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeSpeedTarget" operation="set" value="0.17"/>
- <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeAmpTarget" operation="set" value="0.5"/>
- </effect_group>
- <effect_group>
- <requirement name="HoldingItemHasTags" tags="perkBoomstick"/>
- <requirement name="StatComparePercCurrentToMax" stat="stamina" operation="LTE" value="@.staminaLevelThres"/>
- <requirement name="StatComparePercCurrentToMax" stat="stamina" operation="GT" value="0"/>
- <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.17"/>
- <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.17"/>
- <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="3"/>
- <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="3"/>
- <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeSpeedTarget" operation="set" value="0.17"/>
- <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeAmpTarget" operation="set" value="3"/>
- </effect_group>
- <effect_group>
- <requirement name="HoldingItemHasTags" tags="perkBoomstick"/>
- <requirement name="StatComparePercCurrentToMax" stat="stamina" operation="LTE" value="0"/>
- <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.17"/>
- <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.17"/>
- <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="6"/>
- <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="6"/>
- <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeSpeedTarget" operation="set" value="0.17"/>
- <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeAmpTarget" operation="set" value="6"/>
- </effect_group>
- <effect_group>
- <requirement name="HoldingItemHasTags" tags="perkBoomstick"/>
- <requirement name="HasBuff" buff="buff2A2Injector"/>
- <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.68"/>
- <!-- <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="3.3"/> -->
- <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeSpeedTarget" operation="set" value="0.68"/>
- <!-- <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeAmpTarget" operation="set" value="3.3"/> -->
- <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.68"/>
- <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeSpeedTarget" operation="set" value="0.68"/>
- </effect_group>
- <!-- assault rifles -->
- <effect_group>
- <requirement name="HoldingItemHasTags" tags="perkMachineGunner"/>
- <requirement name="!HoldingItemHasTags" tags="fnminimionly,rpdonly,pkponly"/>
- <requirement name="StatComparePercCurrentToMax" stat="stamina" operation="GT" value="@.staminaLevelThres"/>
- <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.17"/>
- <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.17"/>
- <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="0.4"/>
- <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="0.4"/>
- <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeSpeedTarget" operation="set" value="0.17"/>
- <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeAmpTarget" operation="set" value="0.4"/>
- </effect_group>
- <effect_group>
- <requirement name="HoldingItemHasTags" tags="perkMachineGunner"/>
- <requirement name="!HoldingItemHasTags" tags="fnminimionly,rpdonly,pkponly"/>
- <requirement name="StatComparePercCurrentToMax" stat="stamina" operation="LTE" value="@.staminaLevelThres"/>
- <requirement name="StatComparePercCurrentToMax" stat="stamina" operation="GT" value="0"/>
- <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.17"/>
- <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.17"/>
- <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="2.4"/>
- <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="2.4"/>
- <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeSpeedTarget" operation="set" value="0.17"/>
- <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeAmpTarget" operation="set" value="2.4"/>
- </effect_group>
- <effect_group>
- <requirement name="HoldingItemHasTags" tags="perkMachineGunner"/>
- <requirement name="!HoldingItemHasTags" tags="fnminimionly,rpdonly,pkponly"/>
- <requirement name="StatComparePercCurrentToMax" stat="stamina" operation="LTE" value="0"/>
- <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.17"/>
- <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.17"/>
- <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="4.8"/>
- <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="4.8"/>
- <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeSpeedTarget" operation="set" value="0.17"/>
- <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeAmpTarget" operation="set" value="4.8"/>
- </effect_group>
- <effect_group>
- <requirement name="HoldingItemHasTags" tags="perkMachineGunner"/>
- <requirement name="!HoldingItemHasTags" tags="fnminimionly,rpdonly,pkponly"/>
- <requirement name="HasBuff" buff="buff2A2Injector"/>
- <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.68"/>
- <!-- <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="2.64"/> -->
- <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeSpeedTarget" operation="set" value="0.68"/>
- <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.68"/>
- <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeSpeedTarget" operation="set" value="0.68"/>
- <!-- <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeAmpTarget" operation="set" value="2.64"/> -->
- </effect_group>
- <!-- sniper rifles -->
- <effect_group>
- <requirement name="HoldingItemHasTags" tags="perkDeadEye"/>
- <requirement name="StatComparePercCurrentToMax" stat="stamina" operation="GT" value="@.staminaLevelThres"/>
- <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.07"/>
- <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.07"/>
- <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="0.25"/>
- <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="0.25"/>
- <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeSpeedTarget" operation="set" value="0.07"/>
- <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeAmpTarget" operation="set" value="0.25"/>
- </effect_group>
- <effect_group>
- <requirement name="HoldingItemHasTags" tags="perkDeadEye"/>
- <requirement name="StatComparePercCurrentToMax" stat="stamina" operation="LTE" value="@.staminaLevelThres"/>
- <requirement name="StatComparePercCurrentToMax" stat="stamina" operation="GT" value="0"/>
- <requirement name="ProgressionLevel" progression_name="perkDeadEyeRecoil" operation="GTE" value="3"/>
- <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.07"/>
- <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.07"/>
- <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="1.5"/>
- <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="1.5"/>
- <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeSpeedTarget" operation="set" value="0.07"/>
- <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeAmpTarget" operation="set" value="1.5"/>
- </effect_group>
- <effect_group>
- <requirement name="HoldingItemHasTags" tags="perkDeadEye"/>
- <requirement name="StatComparePercCurrentToMax" stat="stamina" operation="LTE" value="@.staminaLevelThres"/>
- <requirement name="StatComparePercCurrentToMax" stat="stamina" operation="GT" value="0"/>
- <requirement name="ProgressionLevel" progression_name="perkDeadEyeRecoil" operation="LT" value="3"/>
- <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.07"/>
- <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.07"/>
- <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="3"/>
- <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="3"/>
- <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeSpeedTarget" operation="set" value="0.07"/>
- <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeAmpTarget" operation="set" value="3"/>
- </effect_group>
- <effect_group>
- <requirement name="HoldingItemHasTags" tags="perkDeadEye"/>
- <requirement name="StatComparePercCurrentToMax" stat="stamina" operation="LTE" value="0"/>
- <requirement name="ProgressionLevel" progression_name="perkDeadEyeRecoil" operation="GTE" value="3"/>
- <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.07"/>
- <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.07"/>
- <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="3"/>
- <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="3"/>
- <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeSpeedTarget" operation="set" value="0.07"/>
- <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeAmpTarget" operation="set" value="3"/>
- </effect_group>
- <effect_group>
- <requirement name="HoldingItemHasTags" tags="perkDeadEye"/>
- <requirement name="StatComparePercCurrentToMax" stat="stamina" operation="LTE" value="0"/>
- <requirement name="ProgressionLevel" progression_name="perkDeadEyeRecoil" operation="LT" value="3"/>
- <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.07"/>
- <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.07"/>
- <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="6"/>
- <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="6"/>
- <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeSpeedTarget" operation="set" value="0.07"/>
- <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeAmpTarget" operation="set" value="6"/>
- </effect_group>
- <effect_group>
- <requirement name="HoldingItemHasTags" tags="perkDeadEye"/>
- <requirement name="HasBuff" buff="buff2A2Injector"/>
- <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.6"/>
- <!-- <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="3.3"/> -->
- <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeSpeedTarget" operation="set" value="0.6"/>
- <!-- <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeAmpTarget" operation="set" value="3.3"/> -->
- <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.6"/>
- <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeSpeedTarget" operation="set" value="0.6"/>
- </effect_group>
- <!-- machine guns -->
- <effect_group>
- <requirement name="HoldingItemHasTags" tags="fnminimionly,rpdonly,pkponly"/>
- <requirement name="StatComparePercCurrentToMax" stat="stamina" operation="GT" value="@.staminaLevelThres"/>
- <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.17"/>
- <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.17"/>
- <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="0.25"/>
- <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="0.25"/>
- <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeSpeedTarget" operation="set" value="0.17"/>
- <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeAmpTarget" operation="set" value="0.25"/>
- </effect_group>
- <effect_group>
- <requirement name="HoldingItemHasTags" tags="fnminimionly,rpdonly,pkponly"/>
- <requirement name="StatComparePercCurrentToMax" stat="stamina" operation="LTE" value="@.staminaLevelThres"/>
- <requirement name="StatComparePercCurrentToMax" stat="stamina" operation="GT" value="0"/>
- <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.17"/>
- <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.17"/>
- <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="3.12"/>
- <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="3.12"/>
- <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeSpeedTarget" operation="set" value="0.17"/>
- <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeAmpTarget" operation="set" value="3.12"/>
- </effect_group>
- <effect_group>
- <requirement name="HoldingItemHasTags" tags="fnminimionly,rpdonly,pkponly"/>
- <requirement name="StatComparePercCurrentToMax" stat="stamina" operation="LTE" value="0"/>
- <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.17"/>
- <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.17"/>
- <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="7.2"/>
- <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="7.2"/>
- <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeSpeedTarget" operation="set" value="0.17"/>
- <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeAmpTarget" operation="set" value="7.2"/>
- </effect_group>
- <effect_group>
- <requirement name="HoldingItemHasTags" tags="fnminimionly,rpdonly,pkponly"/>
- <requirement name="HasBuff" buff="buff2A2Injector"/>
- <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.68"/>
- <!-- <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="3.43"/> -->
- <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeSpeedTarget" operation="set" value="0.68"/>
- <!-- <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeAmpTarget" operation="set" value="3.43"/> -->
- <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="0.68"/>
- <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeSpeedTarget" operation="set" value="0.68"/>
- </effect_group>
- <!-- 2A2 should stack this buff when used, so that even if it's added during aiming, the shake is properly interpolated -->
- <effect_group>
- <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="@.aimShakeSpeed"/>
- <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="@.aimShakeAmp"/>
- <triggered_effect trigger="onSelfBuffStack" action="AddBuff" buff="buffAimShakeBuffConverter"/>
- </effect_group>
- <effect_group>
- <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeSpeed" operation="set" value="@.aimShakeSpeedBase"/>
- <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeSpeed" operation="set" value="@.aimShakeSpeedBase"/>
- <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeAmp" operation="set" value="@.aimShakeAmpBase"/>
- <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeAmp" operation="set" value="@.aimShakeAmpBase"/>
- <triggered_effect trigger="onSelfBuffStart" action="ShakeCamera" shake_speed="@.aimShakeSpeed" shake_amplitude="@.aimShakeAmp" shake_time="-1"/>
- <triggered_effect trigger="onSelfBuffStack" action="ShakeCamera" shake_speed="@.aimShakeSpeed" shake_amplitude="@.aimShakeAmp" shake_time="-1"/>
- <triggered_effect trigger="onSelfBuffUpdate" action="ShakeCamera" shake_speed="@.aimShakeSpeed" shake_amplitude="@.aimShakeAmp" shake_time="-1"/>
- <triggered_effect trigger="onSelfBuffRemove" action="ShakeCamera" shake_speed="0" shake_amplitude="0" shake_time="-1"/>
- <triggered_effect trigger="onSelfBuffRemove" action="RemoveBuff" buff="buffAimShakeBuffConverter"/>
- <triggered_effect trigger="onSelfBuffRemove" action="RemoveBuff" buff="buffAimShakeInterpolation"/>
- </effect_group>
- <effect_group>
- <requirement name="StatComparePercCurrentToMax" stat="stamina" operation="LTE" value="@.staminaLevelThres"/>
- <requirement name="StatComparePercCurrentToMax" stat="stamina" operation="GT" value="0"/>
- <requirement name="CVarCompare" cvar=".staminaLevelOnAim" operation="GT" value="1"/>
- <triggered_effect trigger="onSelfBuffUpdate" action="AddBuff" buff="buffAimShakeBuffConverter"/>
- <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".staminaLevelOnAim" operation="set" value="1"/>
- </effect_group>
- <effect_group>
- <requirement name="StatComparePercCurrentToMax" stat="stamina" operation="LTE" value="0"/>
- <requirement name="CVarCompare" cvar=".staminaLevelOnAim" operation="GT" value="0"/>
- <triggered_effect trigger="onSelfBuffUpdate" action="AddBuff" buff="buffAimShakeBuffConverter"/>
- <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".staminaLevelOnAim" operation="set" value="0"/>
- </effect_group>
- </buff>
- <!-- the interpolation pre processing buff -->
- <!-- shake speed is used for noise texture sampling which in short is rng, thus speed wont interpolate -->
- <!-- when speed changes, we set speed to target value immediately and amp base to 0 so that no wonky shake -->
- <buff name="buffAimShakeBuffConverter">
- <stack_type value="ignore"/>
- <duration value="0"/>
- <update_rate value="0.1"/>
- <effect_group>
- <requirement name="HasBuff" buff="buffHoldBreathAiming01"/>
- <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeSpeedBase" operation="set" value="@.aimShakeSpeed"/>
- <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="@.aimShakeAmp"/>
- <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeAmpBase" operation="set" value="0">
- <requirement name="CVarCompare" cvar=".aimShakeSpeedBase" operation="NotEquals" value="@.aimShakeSpeedTarget"/>
- </triggered_effect>
- <triggered_effect trigger="onSelfBuffStart" action="AddBuff" buff="buffAimShakeInterpolation"/>
- </effect_group>
- </buff>
- <!-- the actual interpolation buff -->
- <buff name="buffAimShakeInterpolation">
- <stack_type value="replace"/>
- <duration value="0"/>
- <update_rate value="0.05"/>
- <effect_group name="init timer">
- <triggered_effect trigger="onSelfBuffStart" action="RemoveBuff" buff="buffAimShakeBuffConverter"/>
- <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeStepsCur" operation="set" value="0"/>
- <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeStepsCur" operation="set" value="0"/>
- <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeStepsTotal" operation="set" value="20"/>
- <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeStepsTotal" operation="set" value="20"/>
- <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeStepsCur" operation="add" value="1"/>
- </effect_group>
- <effect_group name="update shake speed">
- <!-- calculate increase per update -->
- <!-- <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeSpeedIncrease" operation="set" value="@.aimShakeSpeedTarget"/>
- <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeSpeedIncrease" operation="subtract" value="@.aimShakeSpeedBase"/>
- <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeSpeedIncrease" operation="divide" value="@.aimShakeStepsTotal"/>
- <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeSpeedIncrease" operation="set" value="@.aimShakeSpeedTarget"/>
- <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeSpeedIncrease" operation="subtract" value="@.aimShakeSpeedBase"/>
- <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeSpeedIncrease" operation="divide" value="@.aimShakeStepsTotal"/> -->
- <!-- modify cvar -->
- <!-- <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeSpeed" operation="set" value="@.aimShakeSpeedTarget"/>
- <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeSpeed" operation="set" value="@.aimShakeSpeedTarget"/>
- <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeSpeed" operation="add" value="@.aimShakeSpeedIncrease"/> -->
- <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeSpeed" operation="set" value="@.aimShakeSpeedTarget"/>
- <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeSpeed" operation="set" value="@.aimShakeSpeedTarget"/>
- </effect_group>
- <effect_group name="update shake amplitude">
- <!-- calculate increase per update -->
- <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeAmpIncrease" operation="set" value="@.aimShakeAmpTarget"/>
- <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeAmpIncrease" operation="subtract" value="@.aimShakeAmpBase"/>
- <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeAmpIncrease" operation="divide" value="@.aimShakeStepsTotal"/>
- <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeAmpIncrease" operation="set" value="@.aimShakeAmpTarget"/>
- <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeAmpIncrease" operation="subtract" value="@.aimShakeAmpBase"/>
- <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeAmpIncrease" operation="divide" value="@.aimShakeStepsTotal"/>
- <!-- modify cvar -->
- <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".aimShakeAmp" operation="set" value="@.aimShakeAmpBase"/>
- <triggered_effect trigger="onSelfBuffStack" action="ModifyCVar" cvar=".aimShakeAmp" operation="set" value="@.aimShakeAmpBase"/>
- <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".aimShakeAmp" operation="add" value="@.aimShakeAmpIncrease"/>
- </effect_group>
- <effect_group name="update shake and timer">
- <triggered_effect trigger="onSelfBuffStart" action="ShakeCamera" shake_speed="@.aimShakeSpeed" shake_amplitude="@.aimShakeAmp" shake_time="-1"/>
- <triggered_effect trigger="onSelfBuffStack" action="ShakeCamera" shake_speed="@.aimShakeSpeed" shake_amplitude="@.aimShakeAmp" shake_time="-1"/>
- <triggered_effect trigger="onSelfBuffUpdate" action="ShakeCamera" shake_speed="@.aimShakeSpeed" shake_amplitude="@.aimShakeAmp" shake_time="-1"/>
- <triggered_effect trigger="onSelfBuffUpdate" action="RemoveBuff" buff="buffAimShakeInterpolation">
- <requirement name="CVarCompare" cvar=".aimShakeStepsCur" operation="GTE" value="@.aimShakeStepsTotal"/>
- </triggered_effect>
- <triggered_effect trigger="onSelfBuffRemove" action="ShakeCamera" shake_speed="0" shake_amplitude="0" shake_time="-1">
- <requirement name="!HasBuff" buff="buffHoldBreathAiming01"/>
- </triggered_effect>
- </effect_group>
- </buff>
- </append>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement