Spellpack Wild Axes, Chronosphere, Macropyre, Borrowed Time & Beast Rage

Doomhammer

Bob Kotick - Gamers' corporate spoilsport No. 1
Reaction score
67
That's a real surprise: a quite tricky spell made with GUI! Especially the curved movement of the axes is very nice.

+rep

May I bow down, King of GUI? :D

Here's quite* the same thing using vJass and ABC (and CasterSystem, and CSSafety)
JASS:

scope axes requires ABC, CSSafety, HelperFunctions
    
globals
    constant integer axes_spellid = 'A04B'
    private constant real width = 90.0
    private constant integer leftaxe_id = 'n010'
    private constant integer rightaxe_id ='n001'
    private constant real speed = 800.0
    private constant real interval = 0.04
    private constant real spilldamage = 0.2 //spilldamage factor
    private constant real flyheight = 65
    private rect ax_rect
    private boolexpr unitfilter
    private boolexpr destfilter
    private unit u
endglobals

private constant function Damage takes integer level returns real
    return 90.0 + level * 60.0
endfunction

public function AxesInit takes nothing returns nothing
    set ax_rect=Rect(-64.0,-64.0,64.0,64.0)
    set unitfilter=Filter(function IsEnemy) 
    set destfilter=Filter(function IsDestructableVulnerable)
endfunction

private function DamageDestructable takes nothing returns nothing
	call SetWidgetLife(GetEnumDestructable(),GetWidgetLife(GetEnumDestructable())-bj_enumDestructableRadius)
endfunction  //use bj_enumDestructableRadius to transfer damage

struct axes
    unit array u[4]
    real array r[14]  //total axes instances limited to 585
    
    method set_axes takes unit c, unit u, player p returns nothing
        set .u[0]=c
        set .u[1]=u
        set .r[0]=0.0  //t
        set .r[1]=GetUnitX(c)  //x
        set .r[2]=GetUnitY(c)  //y
        set .r[3]=GetUnitX(u)-.r[1]  //dx
        set .r[4]=GetUnitY(u)-.r[2]  //dy
        set .r[5]=SquareRoot(.r[3]*.r[3]+.r[4]*.r[4]+.1)  //d
        set .r[6]=width/(.r[5]*.r[5]) //a
        set .r[7]=-width*.r[4]/.r[5]  //xa
        set .r[8]=width*.r[3]/.r[5]   //ya
        set .r[9]=Atan2(.r[4],.r[3])      //w
        set .r[10]=Sin(.r[9])
        set .r[11]=Cos(.r[9])
        if GetUnitFlyHeight(u)!=0 then
            set .r[12]=GetUnitFlyHeight(u)-flyheight
        else
            set .r[12]=0.0
        endif
        set .r[13]=flyheight
        set .u[2]=CreateUnit(p,leftaxe_id,.r[1]+.r[7],.r[2]+.r[8],bj_RADTODEG*.r[9])
        set .u[3]=CreateUnit(p,rightaxe_id,.r[1]-.r[7],.r[2]-.r[8],bj_RADTODEG*.r[9])
    endmethod
    
    method onDestroy takes nothing returns nothing
        local integer i=0
        call KillUnit(.u[2])
        call KillUnit(.u[3])
        loop
            exitwhen i>3
            set .u<i>=null
            set i=i+1
        endloop
    endmethod
    
endstruct

function HurtGroup takes nothing returns nothing
    call UnitDamageTarget(u, GetEnumUnit(), bj_enumDestructableRadius, false, false, ATTACK_TYPE_HERO, DAMAGE_TYPE_NORMAL, null)
endfunction 

function TwinAxes_child takes nothing returns nothing
    local timer t=GetExpiredTimer()
    local axes ax=GetStructA(t)
    local group g=CreateGroup()
    local real ds
    local real x
    local real y
    local real xr
    local real yr
    local real dam=Damage(GetUnitAbilityLevel(ax.u[0],axes_spellid))
    set ax.r[0]=ax.r[0]+interval
    set ds=ax.r[0]*speed
    if ds&lt;ax.r[5] then
        if ax.r[12]!=0.0 then
            set ax.r[13]=flyheight+ax.r[12]*ds/ax.r[5]
        endif
        set u=ax.u[0]
        set x=ds
        set y=-ax.r[6]*ds*ds
        set xr=x*ax.r[11]-y*ax.r[10]
        set yr=y*ax.r[11]+x*ax.r[10]
        call SetUnitPosition(ax.u[2],ax.r[1]+ax.r[7]+xr,ax.r[2]+ax.r[8]+yr)
        call SetUnitFlyHeight(ax.u[2],ax.r[13],0)
        call MoveRectTo(ax_rect,ax.r[1]+ax.r[7]+xr,ax.r[2]+ax.r[8]+yr)
        set bj_enumDestructableRadius=dam*spilldamage
        set bj_forceRandomCurrentPick=GetOwningPlayer(ax.u[0])
        call EnumDestructablesInRect(ax_rect,destfilter,function DamageDestructable)
        call GroupEnumUnitsInRect(g,ax_rect,unitfilter)
        if FirstOfGroup(g)!=null then
            call ForGroup(g, function HurtGroup)
            call GroupClear(g)
        endif
        set xr=x*ax.r[11]+y*ax.r[10]
        set yr=x*ax.r[10]-y*ax.r[11]
        call SetUnitPosition(ax.u[3],ax.r[1]-ax.r[7]+xr,ax.r[2]-ax.r[8]+yr)
        call SetUnitFlyHeight(ax.u[3],ax.r[13],0)
        call MoveRectTo(ax_rect,ax.r[1]-ax.r[7]+xr,ax.r[2]-ax.r[8]+yr)
        call EnumDestructablesInRect(ax_rect,destfilter,function DamageDestructable)
        call GroupEnumUnitsInRect(g,ax_rect,unitfilter)
        if FirstOfGroup(g)!=null then
            call ForGroup(g, function HurtGroup)
            call GroupClear(g)
        endif
    else
        call GroupEnumUnitsInRange(g, ax.r[1]+ax.r[3],ax.r[2]+ax.r[4],150.0,null)
        if IsUnitInGroup(ax.u[1],g) then
            call UnitDamageTarget(ax.u[0],ax.u[1], dam, false, false, ATTACK_TYPE_HERO, DAMAGE_TYPE_NORMAL, null)
        endif
        call ax.destroy()
        call ClearStructA(t)        
        call ReleaseTimer(t)    
    endif
endfunction

function TwinAxes takes nothing returns nothing
    local axes ax=axes.create()
    local unit u=GetTriggerUnit()
    local timer t=NewTimer()
    call ax.set_axes(u,GetSpellTargetUnit(),GetOwningPlayer(u))
    call SetUnitAnimationByIndex(u, 9)
    call SetStructA(t, ax)
    call TimerStart(t, interval, true, function TwinAxes_child)
endfunction

    endscope

//===========================================================================
function InitTrig_Axes takes nothing returns nothing
    call axes_AxesInit()
    call OnAbilityEffect(axes_spellid, &quot;TwinAxes&quot;)
endfunction</i>


(*) Except that the axes here don't return to the caster. Btw I mine is made for the Beastmaster
 

NetherHawk

New Member
Reaction score
26
sorry for taking so long naminator.. ive done the descriptions... i intend to add on more abilities to this map. is it ok?
 

Naminator

Coming Back To Life
Reaction score
76
sorry for taking so long naminator.. ive done the descriptions... i intend to add on more abilities to this map. is it ok?

No problem at all. Just post the code in the first post, and then tell me when you done :D. By the way try to change the map name to I don't know DotA Spells or something. If you want..
 

emjlr3

Change can be a good thing
Reaction score
395
it is my feeling that fairly complicated spells like this should be required to be in JASS

I know I would have a hard ass tiem trying to configure this shit, I can't imagine what a noob who actually needs to use these spells would do...
 

NetherHawk

New Member
Reaction score
26
im sorry >.< but i know nuts about how to write jass... i can understand what u have written in your other spells but i cant change it beyond that... i would say gui is alot easier to understand if you're a beginner... after all i learnt alot from tinki3's gui
 

waaaks!

Zinctified
Reaction score
256


im a dota player, and ive seen the movement of wild axes many times already....this is the actual movement....but i havent tested ur map yet, you better get screenies....

i believe that emjlr3 already made chronosphere

anyways, thanks for submitting it here
 

emjlr3

Change can be a good thing
Reaction score
395
it is, actually, it is also dependant on the spot of the caster, once they intersect the target point
 

Naminator

Coming Back To Life
Reaction score
76
i believe that emjlr3 already made chronosphere

Yes, he made Chronosphere, but in JASS. :D

The Burrow time remove all buffs from the unit, and making the hero invunerable for determinated seconds. Not making him go bersek giving extra attack and move speed.
Here's the description of Burrowtime. It's very simple.

Borrowed Time

When activated, most negative buffs will be removed and you will no longer take damage for the duration of the ability. If the ability is not in cooldown, it will passively activate when your hitpoints drop below 400.

Level 1 - Lasts 3 seconds.
Level 2 - Lasts 4 seconds.
Level 3 - Lasts 5 seconds.

Fix that and I will add this into the index. :D
 

NetherHawk

New Member
Reaction score
26
i add beserk beacuse i set the damage taken to -100%. if u realise, when burrowed time activates, u can still attack the hero. if u made him invulnerable, you cant attack him. i'll check the buffs thing.

-fixed a burrowed time bug
-updated descriptions
-made chronosphere size correspond better with the selected AoE

tell me there are any bugs or leaks =]
 
O

onemangang

Guest
I like your spells. One thing though, base your Borrowed Time on Wind Walk.
 

NetherHawk

New Member
Reaction score
26
thx nami.. haha ... but i thought waiting for approval would be better IMO, ahaha...

>>onemangang: why windwalk?
 

GoGo-Boy

You can change this now in User CP
Reaction score
40
Ehh i play DotA and well... i am quite new to editoring etc. but one thing that cut my balls are those axes who almost never hit correctly the unit which u took at target for your spell...
sometimes it doesn't even hit it.. sometimes 1 hit it and sometimes both hit it ..
 

~GaLs~

† Ғσſ ŧħə ѕαĸε Φƒ ~Ğ䣚~ †
Reaction score
180
>>sometimes it doesn't even hit it.. sometimes 1 hit it and sometimes both hit it ..
I played dota well too, in DotA, 100% hits :p.

@NetherHawk
I just read your Beast Rage and found a small bug. When i was hitting the enemy, then i keep press S, then I would be in super speed in REALLY fast. I think that DotA uses, unit damaged event as it didnt occur the bug i said.

>>thx nami.. haha ... but i thought waiting for approval would be better IMO, ahaha...
LoL
230px-Nami_face.jpg

Nami in wiki.
 

Naminator

Coming Back To Life
Reaction score
76
>>sometimes it doesn't even hit it.. sometimes 1 hit it and sometimes both hit it ..
I played dota well too, in DotA, 100% hits :p.

@NetherHawk
I just read your Beast Rage and found a small bug. When i was hitting the enemy, then i keep press S, then I would be in super speed in REALLY fast. I think that DotA uses, unit damaged event as it didnt occur the bug i said.

>>thx nami.. haha ... but i thought waiting for approval would be better IMO, ahaha...
LoL

Noooo. I'm a man, not a girl. :( :p
 
Z

Zenfarg

Guest
I have seen a lot of cronospheres & haven't seen in all of them the action, when units leave it. I think its not hard to do.

Interesting quiestion: can anybody make that sphere stops misseles & spells?
 

GoGo-Boy

You can change this now in User CP
Reaction score
40
>>sometimes it doesn't even hit it.. sometimes 1 hit it and sometimes both hit it ..
I played dota well too, in DotA, 100% hits :p.

Well that's what i ment... in dota it hits 100% while the posted WildAxes do what i mentioned >.<
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top