#Alchemist Model (gesture)

1 messages · Page 1 of 1 (latest)

tiny patrol
#

i we're looking how to swap alchemist normal model into rage one, after some research i saw that people were using gesture

parent:StartGesture(ACT_DOTA_ALCHEMIST_CHEMICAL_RAGE_START)

and

self.parent:StartGesture(ACT_DOTA_ALCHEMIST_CHEMICAL_RAGE_END)

Somehow, mine just do the model change for smth like 1 second and then swap back to the original one, what im doing wrong?

    self:OnRefresh()
    if not IsServer() then return end

    local parent = self:GetParent()
    parent:StartGesture(ACT_DOTA_ALCHEMIST_CHEMICAL_RAGE_START)

    self:StartIntervalThink(1.0)

    self.pfx = ParticleManager:CreateParticle("particles/units/heroes/hero_troll_warlord/troll_warlord_battletrance_buff.vpcf", PATTACH_ABSORIGIN_FOLLOW, parent)
    self:AddParticle(self.pfx, false, false, -1, false, false)

    parent:EmitSound("Hero_TrollWarlord.BattleTrance.Cast")

    self:PlayEffects()
end```

```function modifier_antaurus_mask_buff:OnDestroy()
    if not IsServer() then return end
    local parent = self:GetParent()
    self.parent:StartGesture(ACT_DOTA_ALCHEMIST_CHEMICAL_RAGE_END)

end```
pulsar muskBOT
glacial wraith
#

add a "ActivityModifier"

tiny patrol
#
GitHub

A repository for creating Dota 2 Lua abilities. Contribute to Elfansoer/dota-2-lua-abilities development by creating an account on GitHub.

GitHub

A repository for creating Dota 2 Lua abilities. Contribute to Elfansoer/dota-2-lua-abilities development by creating an account on GitHub.

topaz thorn
#

It was made 6 years ago and might be based around valve features. Most likely to correctly swap you need to add activity modifier like suggested above (check correct name in model editor for rage animations) and change skin to purple one (not sure about that part)

glacial wraith
#

have you ever verified that this code really runs as expected?

tiny patrol
glacial wraith
#

confirm again
what's the difference between "normal model" and "rage model" that you metioned
the skin's color or the way alchemist hold weapons

tiny patrol
#

The way it holds weapon, im not doing the pink effect on the skin

glacial wraith
#

that's what the activity modifier does

#

use MODIFIER_PROPERTY_TRANSLATE_ACTIVITY_MODIFIERS and return chemical_rage in GetActivityTranslationModifiers

#

the libray you posted is missing this, and I doubt if it is fully functional