Skip to content

Commit

Permalink
Azazel Purchasables - Elixiers (#2156)
Browse files Browse the repository at this point in the history
* Implementing #2110

* Added summon KV and extra abilities

Assumed 300 MS for farmer and 1.0 turn rate for all summons.

* Added azazel summon item entries and basic functionality

* Finished implementing #2111

- Used "funny" names for the summons, just change them if you don't like them or think they're not clear enough.
- Summon stats are tied to their actual stat block in npc_units_custom; the values in the item just change tooltips.
- The Farmer's cleave stats are tied to the ability's KV, not the item's; again, the item's KVs just change tooltips.

If the whole KV/tooltip thing is a bother, it can be changed, but I thought it was outside the scope of the issue, since the current behavior is easier to implement and consistent with (almost) every vanilla summon ability in the game.

* travis

* missing tooltip for modifier "dota_tooltip_modifier_azazel_summon_farmer_innate"
 - it's a hidden modifier that needs no tooltip.
* item/ability ID conflicts
 - fixed
* "cost is set correctly in kv for item_elixier_sustain_4"
 - I assume this means incorrectly. The items all cost 100g (recipe) + their core's cost (1500/2500/3500/4500) so I don't see the error here, but i set everything to 100 anyway, assuming cores have no real value.
* "[item] has reverse compatible upgrade [core x]"
 - If I understood correctly, this is intended.
* blah blah whitespace
 - fixed
* blah unused variable
 - fixed

Also made the items temporarily purchasable in the regular shop.

* seems like travis' "next free ID" is a fat old lie

fixed conflicting item/ability IDs

* test

test

* Fix Travis
  • Loading branch information
fcalife authored and carlosrpg committed May 17, 2018
1 parent 10c4eec commit 385cf58
Show file tree
Hide file tree
Showing 87 changed files with 5,873 additions and 7 deletions.
153 changes: 153 additions & 0 deletions content/particles/items/elixiers/elixier_burst.vpcf
Original file line number Diff line number Diff line change
@@ -0,0 +1,153 @@
<!-- kv3 encoding:text:version{e21c7f3c-8a33-41c5-9977-a76d3a32aa0d} format:vpcf1:version{d47d07e6-072c-49cb-9718-5bfd8d6c3d21} -->
{
_class = "CParticleSystemDefinition"
m_bShouldHitboxesFallbackToRenderBounds = false
m_nMaxParticles = 125
m_Renderers =
[
{
_class = "C_OP_RenderTrails"
VisibilityInputs =
{
m_flProxyRadius = 32.0
}
m_nSequenceCombineMode = "SEQUENCE_COMBINE_MODE_USE_SEQUENCE_0"
m_bAdditive = true
m_flOverbrightFactor = 4.0
m_hTexture = resource:"materials/particle/spotlight/spotlight_single_recentered.vtex"
m_flMaxLength = 86.0
m_flMinLength = 26.0
m_flRadiusScale = 0.5
m_flFinalTextureScaleV = -1.0
m_flFinalTextureOffsetV = 1.0
m_vEndTrailTintFactor = [ 1.0, 1.0, 2.0, 0.25 ]
m_flAddSelfAmount = 1.0
},
{
_class = "C_OP_RenderRopes"
m_nSequenceCombineMode = "SEQUENCE_COMBINE_MODE_USE_SEQUENCE_0"
m_bAdditive = true
m_flOverbrightFactor = 4.0
m_hTexture = resource:"materials/particle/particle_cone_gradient_1.vtex"
m_flRadiusScale = 0.5
m_flFinalTextureScaleU = -1.0
m_flFinalTextureOffsetU = 1.0
m_flTextureVWorldSize = 25.0
m_nMaxTesselation = 3
m_nMinTesselation = 3
},
]
m_Operators =
[
{
_class = "C_OP_BasicMovement"
m_Gravity = [ 0.0, 0.0, 550.0 ]
m_bDisableOperator = true
},
{
_class = "C_OP_InterpolateRadius"
m_flEndScale = 0.0
},
{
_class = "C_OP_LockToBone"
m_flLifeTimeFadeEnd = 1.0
m_flLifeTimeFadeStart = 1.0
},
{
_class = "C_OP_Decay"
},
{
_class = "C_OP_SetControlPointToCenter"
},
{
_class = "C_OP_DistanceCull"
m_flDistance = 220.0
},
{
_class = "C_OP_FadeOutSimple"
m_flFadeOutTime = 0.85
},
{
_class = "C_OP_ColorInterpolate"
m_ColorFade = [ 255, 0, 0, 255 ]
},
]
m_Initializers =
[
{
_class = "C_INIT_RandomColor"
m_ColorMax = [ 255, 0, 0, 255 ]
m_ColorMin = [ 255, 69, 0, 255 ]
},
{
_class = "C_INIT_RandomLifeTime"
m_fLifetimeMax = 0.4
m_fLifetimeMin = 0.4
},
{
_class = "C_INIT_RandomRadius"
m_flRadiusMax = 70.0
m_flRadiusMin = 10.0
},
{
_class = "C_INIT_RandomAlpha"
m_nAlphaMin = 140
},
{
_class = "C_INIT_CreateOnModel"
m_flHitBoxScale = 0.5
},
{
_class = "C_INIT_RandomTrailLength"
m_flMinLength = 0.5
m_flMaxLength = 1.0
},
{
_class = "C_INIT_VelocityRandom"
m_fSpeedMin = -50.0
m_fSpeedMax = 50.0
m_LocalCoordinateSystemSpeedMin = [ 0.0, 0.0, -10.0 ]
m_LocalCoordinateSystemSpeedMax = [ 0.0, 0.0, -100.0 ]
},
{
_class = "C_INIT_PositionOffset"
m_OffsetMin = [ -5.0, -5.0, -10.0 ]
m_OffsetMax = [ 5.0, 5.0, -20.0 ]
},
]
m_Emitters =
[
{
_class = "C_OP_ContinuousEmitter"
m_flEmitRate = 250.0
},
]
m_Children =
[
{
m_ChildRef = resource:"particles/items/elixiers/elixier_burst_glow_detail.vpcf"
},
{
m_ChildRef = resource:"particles/items/elixiers/elixier_burst_glow.vpcf"
},
{
m_ChildRef = resource:"particles/items/elixiers/elixier_burst_arcs.vpcf"
},
]
m_nConstantSequenceNumber = 6
m_controlPointConfigurations =
[
{
m_name = "preview"
m_drivers =
[
{
m_iAttachType = "PATTACH_WORLDORIGIN"
m_vecOffset = [ 0.0, 0.0, 0.0 ]
m_angOffset = [ null, null, null ]
m_entityName = "self"
},
]
},
]
}
137 changes: 137 additions & 0 deletions content/particles/items/elixiers/elixier_burst_arcs.vpcf
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
<!-- kv3 encoding:text:version{e21c7f3c-8a33-41c5-9977-a76d3a32aa0d} format:vpcf1:version{d47d07e6-072c-49cb-9718-5bfd8d6c3d21} -->
{
_class = "CParticleSystemDefinition"
m_bShouldHitboxesFallbackToRenderBounds = false
m_nMaxParticles = 32
m_flConstantRadius = 2.0
m_bShouldSort = false
m_Renderers =
[
{
_class = "C_OP_RenderSprites"
m_nSequenceCombineMode = "SEQUENCE_COMBINE_MODE_USE_SEQUENCE_0"
m_bAdditive = true
m_flOverbrightFactor = 4.0
m_hTexture = resource:"materials/particle/electrical_arc_white/electrical_arc_white.vtex"
m_flAddSelfAmount = 1.0
},
]
m_Operators =
[
{
_class = "C_OP_RampScalarLinearSimple"
m_flEndTime = 99999.0
m_Rate = -10.0
m_nField = 16
m_nOpEndCapState = 1
},
{
_class = "C_OP_LockToBone"
},
{
_class = "C_OP_Decay"
},
{
_class = "C_OP_RampScalarSpline"
m_nField = 12
m_RateMin = -10.0
m_RateMax = 10.0
},
{
_class = "C_OP_RampScalarSpline"
m_RateMax = 10.0
m_RateMin = -10.0
m_nField = 4
},
{
_class = "C_OP_OscillateScalar"
m_bProportional = false
m_FrequencyMax = 9.0
m_RateMax = 800.0
m_RateMin = -800.0
m_nField = 16
m_bDisableOperator = true
},
{
_class = "C_OP_BasicMovement"
m_fDrag = 0.1
m_Gravity = [ 0.0, 0.0, -100.0 ]
},
{
_class = "C_OP_OscillateVector"
m_flOscAdd = 0.75
m_FrequencyMax = [ 4.0, 4.0, 4.0 ]
m_FrequencyMin = [ 0.25, 0.25, 0.25 ]
m_RateMax = [ 5.0, 5.0, 5.0 ]
m_RateMin = [ -5.0, -5.0, -5.0 ]
},
{
_class = "C_OP_OscillateScalar"
m_nField = 3
m_RateMin = -300.0
m_RateMax = 300.0
m_FrequencyMin = 0.5
m_FrequencyMax = 9.0
m_bDisableOperator = true
},
]
m_Initializers =
[
{
_class = "C_INIT_RandomLifeTime"
m_fLifetimeMax = 0.15
m_fLifetimeMin = 0.05
m_fLifetimeRandExponent = 1.25
},
{
_class = "C_INIT_RandomAlpha"
},
{
_class = "C_INIT_CreateOnModel"
m_flHitBoxScale = 1.2
m_vecDirectionBias = [ 0.0, 0.0, 0.5 ]
},
{
_class = "C_INIT_RandomSequence"
m_nSequenceMax = 3
},
{
_class = "C_INIT_RandomRotation"
},
{
_class = "C_INIT_RandomRadius"
m_flRadiusMax = 25.0
m_flRadiusRandExponent = 0.5
m_flRadiusMin = 15.0
},
{
_class = "C_INIT_InitialVelocityNoise"
m_vecOutputMax = [ 250.0, 250.0, 500.0 ]
m_vecOutputMin = [ -250.0, -250.0, 0.0 ]
m_flNoiseScaleLoc = 1.0
m_flNoiseScale = 4.0
},
]
m_Emitters =
[
{
_class = "C_OP_ContinuousEmitter"
},
]
m_ConstantColor = [ 255, 69, 0, 255 ]
m_controlPointConfigurations =
[
{
m_name = "preview"
m_drivers =
[
{
m_iAttachType = "PATTACH_WORLDORIGIN"
m_vecOffset = [ 0.0, 0.0, 0.0 ]
m_angOffset = [ null, null, null ]
m_entityName = "self"
},
]
},
]
}
Loading

0 comments on commit 385cf58

Please sign in to comment.