• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

EvilHookVersion1

This bundle is marked as useful / simple. Simplicity is bliss, low effort and/or may contain minor bugs.
Well basically its just meathook with changed models.

Triggers:
CreateHooks
Events
Time - Every 0.04 seconds of game time
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
MeatHook_Snagged Equal to False
Then - Actions
Set MeatHook_Offset = (MeatHook_Offset + 40)
Set MeatHook_Loc[2] = (MeatHook_Loc[1] offset by (Real(MeatHook_Offset)) towards (Real(MeatHook_Angle)) degrees)
Unit - Create 1 Evil Hook Dummy for (Owner of MeatHook_Caster) at MeatHook_Loc[2] facing (Real(MeatHook_Angle)) degrees
Set MeatHook_Number = (MeatHook_Number + 1)
Set MeatHook_Dummy[MeatHook_Number] = (Last created unit)
Set MeatHook_DummyLoc = (Position of MeatHook_Dummy[MeatHook_Number])
Set MeatHook_Group[1] = (Units within 88.00 of MeatHook_DummyLoc matching ((((Matching unit) is A structure) Not equal to True) and ((((Matching unit) is A flying unit) Not equal to True) and ((((Matching unit) is dead) Not equal to True) and ((Matching unit) Not equal to MeatHook_C
Set MeatHook_Group[2] = (Random 1 units from MeatHook_Group[1])
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If -


EndHook
Events
Time - MeatHook_Timer_2 expires
Conditions
Actions
Unit - Unpause MeatHook_SnagUnit
Set MeatHook_SnagUnit = No unit
Trigger - Turn off RetractHook <gen>
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
MeatHook_Snagged Equal to True
Then - Actions
Trigger - Turn on RetractHookStart <gen>
Else - Actions
Custom script: call RemoveLocation(udg_MeatHook_Loc[1])
Custom script: call RemoveLocation(udg_MeatHook_Loc[3])


EvilHookCast
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Evil Hook
Actions
Set MeatHook_Snagged = False
Set MeatHook_Caster = (Triggering unit)
Set MeatHook_Loc[1] = (Position of MeatHook_Caster)
Set MeatHook_Loc[3] = (Target point of ability being cast)
Set MeatHook_Distance = 1500
Set MeatHook_Angle = (Integer((Angle from MeatHook_Loc[1] to MeatHook_Loc[3])))
Set MeatHook_Offset = 0
Set MeatHook_Number = 0
Countdown Timer - Start MeatHook_Timer_1 as a One-shot timer that will expire in ((Real(MeatHook_Distance)) / 1000.00) seconds
Set MeatHook_Timer_1 = (Last started timer)
Trigger - Turn on CreateHooks <gen>


RetractHook
Events
Time - Every 0.04 seconds of game time
Conditions
Actions
Set MeatHook_SnagLoc[1] = (Position of MeatHook_SnagUnit)
Set MeatHook_SnagLoc[2] = (MeatHook_SnagLoc[1] offset by 40.00 towards (Angle from MeatHook_SnagLoc[1] to MeatHook_Loc[1]) degrees)
Set MeatHook_Number = (MeatHook_Number - 1)
Unit - Remove MeatHook_Dummy[MeatHook_Number] from the game
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Integer((Distance between MeatHook_Loc[1] and MeatHook_SnagLoc[1]))) Greater than 85
Then - Actions
Unit - Move MeatHook_SnagUnit instantly to MeatHook_SnagLoc[2]
Else - Actions
Custom script: call RemoveLocation(udg_MeatHook_SnagLoc[1])
Custom script: call RemoveLocation(udg_MeatHook_SnagLoc[2])
Unit - Remove (Last created unit) from the game



RetractHookStart
Events
Time - MeatHook_Timer_1 expires
Conditions
Actions
Trigger - Turn off CreateHooks <gen>
Trigger - Turn on RetractHook <gen>
Countdown Timer - Start MeatHook_Timer_2 as a One-shot timer that will expire in ((Real(MeatHook_Distance)) / 1000.00) seconds
Set MeatHook_Timer_2 = (Last started timer)
Set MeatHook_Number = (MeatHook_Number + 1)







Keywords:
DotA
Contents

Evil Hook Spell (Map)

Reviews
12th Dec 2015 IcemanBo: Too long as NeedsFix. Rejected. The spell is not MUI and we already have a meat hook spell in the databse.

Moderator

M

Moderator

12th Dec 2015
IcemanBo: Too long as NeedsFix. Rejected.

Maker, EvilHookVersion1, 11:49, 18th Nov 2011

The spell is not MUI and we already have a meat hook spell in the databse.
 
Level 7
Joined
Sep 2, 2011
Messages
349
You do already know that there are a bunch of Hook spells in Hive. I'm really tired in seeing the same spell over and over again. This isn't any better. You only changed the model like as you said.
 
Top