pawn.AddItem("upgrade_weighted_shots");
pawn.SellItem("upgrade_weighted_shots");Ability values, by the name modifiers and AddModifier overrides use. Tier columns are what each upgrade adds; "scaling" is how much more the value grows with spirit power or another stat.
| Property | English label | Value | Tier 1 | Provides |
| TechPower | Spirit Power | 0 | TECH_POWER | |
| TechResist | Spirit Resist | 0 | TECH_RESIST | |
| SlowPercent | Move Speed | 24 | +16 | MOVEMENT_SPEED_SLOW_PERCENT |
| WeaponPower | Weapon Damage | 0 | WEAPON_POWER | |
| SlowDuration | Slow Duration | 3.5 | ||
| AbilityCharges | Charges | 0 | ||
| BonusMoveSpeed | Move Speed | -0.5m | MOVEMENT_SPEED_MAX | |
| BuildUpPerShot | 0.7 | |||
| AbilityCooldown | Cooldown | 0 | ||
| AbilityDuration | Duration | 0 | ||
| BuildUpDuration | 5 | |||
| AbilityCastDelay | Cast Delay | 0 | ||
| AbilityCastRange | Cast Range | 0 | ||
| ChannelMoveSpeed | -1 | |||
| AbilityChannelTime | Channel Duration | 0 | ||
| AbilityResourceCost | 0 | |||
| AbilityUnitTargetLimit | 1 | |||
| AbilityPostCastDuration | 0 | |||
| BaseAttackDamagePercent | Weapon Damage | 30 | +35 | WEAPON_DAMAGE_INCREASE |
| BonusBulletSpeedPercent | Bullet Velocity | 0 | BONUS_BULLET_SPEED_PERCENT | |
| StatusResistancePercent | Debuff Resist | 22 | +10 | STATUS_RESISTANCE |
| StaminaCooldownReduction | Stamina Recovery | -14 | STAMINA_REGEN_PER_SECOND_PERCENTAGE | |
| GroundDashReductionPercent | Dash Distance | -20 | +-8 | MOVEMENT_GROUND_DASH_REDUCTION_PERCENT |
| AbilityCooldownBetweenCharge | Charge Delay | -1.0 |
Defined inside this ability. AddModifier finds each by its scoped name.
| Name for AddModifier | Class | Reads ability values |
| upgrade_weighted_shots/modifier_slowing_bullets_buildup_modifier | modifier_citadel_base_buildup | |
| upgrade_weighted_shots/modifier_slowing_bullets_proc | modifier_slowing_bullets_proc | |
| upgrade_weighted_shots/slowing_bullets_debuff Slowed | modifier_slow_base | SlowPercent, GroundDashReductionPercent |
| upgrade_weighted_shots/weighted_shots_intrinsic | modifier_intrinsic_base | BaseAttackDamagePercent, StatusResistancePercent, StaminaCooldownReduction, BonusMoveSpeed |
| _class | "citadel_item" |
| _editor | 1 key{
"folder_name": "Weapon"
} |
| _multibase | 1 item[ "weapon_upgrade_t3" ] |
| m_iItemTier | "EModTier_3" |
| m_WeaponInfo | 1 key{
"m_flBulletSpeed": 10000
} |
| m_strCSSClass | "closeRange" |
| m_eAbilityType | "EAbilityType_Item" |
| m_eShopFilters | "EShopFilterWeaponDamage" |
| m_bStartTrained | true |
| m_eItemSlotType | "EItemSlotType_WeaponMod" |
| m_strAbilityImage | "file://{images}/upgrades/mods_armor/improved_bullet_armor.psd" |
| m_nUpgradeSlotCost | 1 |
| m_strAG2SourceName | "item" |
| m_strShopIconLarge | "file://{images}/items/weapon/weighted_shots.psd" |
| m_flBossDamageScale | 1 |
| m_vecComponentItems | 1 item[ "upgrade_slowing_bullets" ] |
| m_eAbilityActivation | "CITADEL_ABILITY_ACTIVATION_PASSIVE" |
| m_PreviewPathParticle | "particles/generic/generic_arc.vpcf" |
| m_nAbilityTargetTypes | "CITADEL_UNIT_TARGET_HERO_ENEMY" |
| m_strCastAnimGraphParam | "e_GenericCast" |
| m_vecTooltipSectionInfo | 2 items[
{
"m_eAbilitySectionType": "EArea_Innate",
"m_vecSectionAttributes": [
{
"m_vecAbilityProperties": [
"StatusResistancePercent",
"StaminaCooldownReduction",
"BonusMoveSpeed"
],
"m_vecElevatedAbilityProperties": [
"BaseAttackDamagePercent"
]
}
]
},
{
"m_eAbilitySectionType": "EArea_Passive",
"m_vecSectionAttributes": [
{
"m_strLocString": "#upgrade_weighted_shots_desc",
"m_vecAbilityProperties": [
"GroundDashReductionPercent",
"SlowDuration",
"BuildUpPerShot"
],
"m_vecImportantAbilityProperties": [
{
"m_strImportantProperty": "SlowPercent"
}
]
}
]
}
] |
| m_AutoIntrinsicModifiers | 2 items[
{
"_class": "modifier_intrinsic_base",
"m_bIsHidden": true,
"_my_subclass_name": "weighted_shots_intrinsic",
"m_vecAutoRegisterModifierValueFromAbilityPropertyName": [
"BaseAttackDamagePercent",
"StatusResistancePercent",
"StaminaCooldownReduction",
"BonusMoveSpeed"
]
},
{
"_class": "modifier_slowing_bullets_proc",
"m_bIsHidden": true,
"m_DebuffModifier": {
"_class": "modifier_slow_base",
"m_bIsHidden": true,
"_my_subclass_name": "slowing_bullets_debuff",
"m_vecAutoRegisterModifierValueFromAbilityPropertyName": [
"SlowPercent",
"GroundDashReductionPercent"
]
},
"_my_subclass_name": "modifier_slowing_bullets_proc",
"m_BuildUpModifier": {
"_class": "modifier_citadel_base_buildup",
"m_eBuildupMode": "BUILDUP_MODE_MAX_FILL_DURATION",
"_my_subclass_name": "modifier_slowing_bullets_buildup_modifier",
"m_eDrawOverheadStatus": "OVERHEAD_DRAW_FOR_CASTER_ONLY",
"m_eHudDisplayLocation": "DISPLAY_HUD_NONE",
"m_flBuildUpDecayDelay": 2,
"m_strSmallIconCssClass": "slowed_buildup",
"m_eModifierDisplayLocaiton": "MODIFIER_DISPLAY_HEALTHBAR",
"m_bBuildupAffectedByEffectiveness": true
},
"m_bProcAppliesBuildup": true,
"m_eHudDisplayLocation": "DISPLAY_HUD_LEFT",
"m_eModifierDisplayLocaiton": "MODIFIER_DISPLAY_LOCAITON_ALL"
}
] |
| m_strCastAnimSequenceName | "ability_generic_cast" |
| m_strSelectionNameOverride | "item" |
| m_eAbilityTargetingLocation | "CITADEL_ABILITY_TARGETING_LOCATION_SELF" |
| m_bitsChannelEnabledStateMask | "MODIFIER_STATE_BUSY_WITH_ACTION" |
| m_bitsPreCastEnabledStateMask | "MODIFIER_STATE_BUSY_WITH_ACTION" |
| m_bitsPostCastEnabledStateMask | "MODIFIER_STATE_BUSY_WITH_ACTION" |
0.3→-0.2−0.50{
primary =
{
m_flBulletSpeed = 10000
}
}{
m_Upgrade =
{
m_vecPropertyUpgrades =
[
{
m_strBonus = "40"
m_strPropertyName = "BaseAttackDamagePercent"
},
{
m_strBonus = "23"
m_strPropertyName = "StatusResistancePercent"
},
{
m_strBonus = "12"
m_strPropertyName = "SlowPercent"
},
{
m_strBonus = "-12"
m_strPropertyName = "GroundDashReductionPercent"
},
{
m_strBonus = "1.5"
m_strPropertyName = "SlowDuration"
},
{
m_strBonus = "0.3"
m_strPropertyName = "BuildUpPerShot"
},
]
}
}#CurrentStacks_label""true→falseDISPLAY_HUD_NONEMODIFIER_DISPLAY_HEALTHBAR""{
m_flBulletSpeed = 10000
}EShopFilterWeaponDamage1