- 28 Апр 2016
- 231
- 0
- Проект
- Защитники Изобилия | Defenders of Abundance
Как мне наложить на героя эффект заморозки от Скади?
Код:
function modifier_item_skadi_corruption:OnCreated(kv)
local nFXIndex = ParticleManager:CreateParticle( "particles/status_fx/status_effect_frost.vpcf", PATTACH_ABSORIGIN_FOLLOW, self:GetCaster() )
ParticleManager:SetParticleControl( nFXIndex, 0, Vector( 0, 0, 0 ) )
self.cold_movement_speed = self:GetAbility():GetSpecialValueFor("skadi_cold_movement_speed")
self.cold_attack_speed = self:GetAbility():GetSpecialValueFor("skadi_cold_attack_speed")
end
function modifier_item_skadi_corruption:OnRefresh(kv)
local nFXIndex = ParticleManager:CreateParticle( "particles/status_fx/status_effect_frost.vpcf", PATTACH_ABSORIGIN_FOLLOW, self:GetCaster() )
ParticleManager:SetParticleControl( nFXIndex, 1, Vector( self:GetStackCount(), 0, 0 ) )
--local nFXIndex = ParticleManager:CreateParticle( "particles/status_fx/status_effect_frost.vpcf", PATTACH_CUSTOMORIGIN, self:GetCaster() )
--ParticleManager:SetParticleControlEnt( nFXIndex, 0, self:GetCaster(), PATTACH_POINT_FOLLOW, "attach_staff_base", self:GetCaster():GetOrigin(), true )
self.cold_movement_speed = self:GetAbility():GetSpecialValueFor("skadi_cold_movement_speed")
self.cold_attack_speed = self:GetAbility():GetSpecialValueFor("skadi_cold_attack_speed")
end
Последнее редактирование модератором: