• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Clear Vision , Sight ability???

Status
Not open for further replies.
Level 5
Joined
Aug 9, 2012
Messages
119
Guys,

1.if you know about night stalker, one of dota heroes,
his ultimate darkness, with improvement

let him have a vision/sight around himself that through all obstacle,
like seeing through walls, trees, hills, whatever...
say if he have 1000 clear vision/sight,
then he has 1000 AoE vision through all obstacle,

the question is hows the ability works?
i have a skill that base on immolation, when activate,
it drains mana, and give the caster clear vision within 400 AoE

how should i make it? should i cast "Sentinel"(from WE base night elf ability that cast on tree and have full sight around) on the caster?
but how to remove that skill if i deactivate my immolation template skill.
thanks a lot for the help, i cant figure it out till now wha should i use.



2.Lastly, i cant seems to found any skill that like
vacuum ( dark seer in dota ), i manage to create a skill that have area knockback. but its different,

but this vacuum is an Area target ability,
and sucks ALL enemy unit to the center( not in instant, i believe it use looping or reverse from knockback )

how should i make it GUI and MUI?
just how should i make the animation better and the target is sucks to the center of target ability....



Thats all guys,
thanks for all the consideration, when im done....
ill post my map in hiveworkshop.
 
Level 13
Joined
Mar 24, 2013
Messages
1,105
For the Night Stalker, when they get the order immolation, create a dummy unit on the triggering unit with whatever sight you want, but if its not at least what the hero already has its pretty worthless, but the dummy in DotA is some flying dummy unit that has 1800 night vision allowing sight of everything around NS, the dummy is moved to the position of NS every X seconds.

When the unimmolate order is sent, kill the dummy.

For vaccum, pick all units in the target AoE, add them to a unit group, change the position of the units to the center of the target AoE offset by some value every .0something seconds till they get there then remove them from the group
 
Level 5
Joined
Aug 9, 2012
Messages
119
Nice, i really get the idea...
So the point is to move the unit again and again?
Is it MUI?

Thanks but can you help a bit in showing the trigger?
When looping and dragging them to middle,
Within 0.75s will do,
 
Level 20
Joined
Jul 14, 2011
Messages
3,213
1- You create a dummy flying unit with X sight and move it periodically to the position of the hero.

2. You pick every unit in AoE around the target point of ability being cast and every 0.03 seconds you set the position of the unit = position of the unit with polar offset towards (Angle Between Picked Unit and Target Point of ability being cast). The value of the offset in Dark Seer's case is based on distance between picked unit and the center (Since units that are closer to the center move slowly than those further away).
 
Level 5
Joined
Aug 9, 2012
Messages
119
The value of the offset in Dark Seer's case is based on distance between picked unit and the center (Since units that are closer to the center move slowly than those further away).


i got it, but the value of the offset... where does it store in calculation?
since we already know the formula.



and no i dont mean every 0.75scd,
i mean, every whatever seconds, till 0.75scd
at least all target must be in the centered point now...

but thx for all ur helps and suggestion :thumbs_up:
 
Level 20
Joined
Jul 14, 2011
Messages
3,213
You can store it in the Picked Unit ID into a Hashtable.

- Pick every unit from target point of ability being cast
- Check distance from center to unit
- Set Offset = Distance * 0.75 * 0.03 in the Unit ID.
- Set Angle = Angle between unit and center.
- Set collision off for the unit.
- Move unit every 0.03 by offset towards angle.
- Once in the center, turn collision on.
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
Speed = Distance / Time
Offset = DistanceFromPointToTarget / TimeTakenToArriveToPoint

Since you want all units to arrive at the same time (let's say 0.75s)

Speed = Distance / 0.75

There you have it.

BUT remember !
This is measured in per second meaning, let's say the distance of Unit A from Point is 300, therefore the Speed/Offset would be: Speed = 300 / 0.75 = 400

But your moving interval is 0.03s, right ?
Therefore you need to convert it to per 0.03s:
400 * moveInterval = 400 * 0.03 = 12

So the offset for Unit A would be 12 per 0.03s.
 
Level 20
Joined
Jul 14, 2011
Messages
3,213
Of course, all that is done automatically and incredibly fast by your computer :)

If you use Unit Indexer you use Arrays for data store. Else you use a Hashtable.
 
Level 5
Joined
Aug 9, 2012
Messages
119
Guys :) thx
i got it the calculation...

but could you please make it one for me? >.<
my bad, it seems like the unit isnot moving smoothly and i cant make it MUI for some reason...
 
Status
Not open for further replies.
Top