Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add spell Laser/Ray of Frost/Desintegrate #2698

Open
tdauth opened this issue Mar 29, 2024 · 14 comments
Open

Add spell Laser/Ray of Frost/Desintegrate #2698

tdauth opened this issue Mar 29, 2024 · 14 comments
Assignees
Labels
enhancement New feature or request spell system

Comments

@tdauth
Copy link
Owner

tdauth commented Mar 29, 2024

Summons a laser in the facing direction of the hero which can be blocked by ground units/destructables etc. and has a max range.
Damages everything which is in its way and is vulnerable.

Use PolarProjection, lightning and check for targets in the area.

https://www.youtube.com/watch?v=A96-WOCeLsc

https://www.youtube.com/watch?v=EGFUuUO1Osc

Add an onHit effect callback:

function interface OnHitUnit takes unit caster, unit target, integer abilityId returns nothing
function interface OnHitDestructable takes unit caster, unit target, integer abilityId returns nothing

Add Mass Ray spell which summons rays every 15 degree or something.

Existing Ray spell: https://www.hiveworkshop.com/threads/void-ray-v1-4.271098/

@tdauth tdauth added the spell label Mar 29, 2024
@tdauth tdauth self-assigned this Mar 29, 2024
@tdauth tdauth changed the title Add spell Laser Add spell Laser/Ray of Frost/Desintegrate Apr 3, 2024
@tdauth
Copy link
Owner Author

tdauth commented Apr 10, 2024

Add hero Ray Master:

Sorceress Spell Attack animation on loop.

tdauth added a commit that referenced this issue Apr 10, 2024
@tdauth
Copy link
Owner Author

tdauth commented Apr 10, 2024

https://www.hiveworkshop.com/threads/how-to-customise-lightning-effects.203171/

https://www.hiveworkshop.com/threads/spellbounds-custom-lightning-effects.292771/

We need:

  • Water: Moves away/knocks back
  • Holy: Heals or damages Undead.
  • Frost: Slows down.
  • Fire: Slow burning effect.
  • Poison: Slow damage effect.
  • Inner Fire: Armor and damage bonus and malus to enemies.

@tdauth
Copy link
Owner Author

tdauth commented Apr 11, 2024

Add:

  • function to get the distance offset from the caster
  • function to get the cooldown after disabling the ray ability
  • burn, poison etc. effects for targets
  • poison ray
  • ray as default attack (useful for turrets)
  • radius value per ray target, some rays consider more targets
  • option to allow multiple targets to be hit: the effect is applied in the filters to get the target. the X and Y will be depending on the length/max distance in this case
  • item for rays

Balance mana costs, values etc.

@tdauth
Copy link
Owner Author

tdauth commented Apr 12, 2024

  • Support hit sounds.
  • Fix offset x and y for double ray.
  • No cooldown.
  • Target effects with dummies.
  • Ignore locust units.

@tdauth tdauth added enhancement New feature or request system labels Apr 13, 2024
@tdauth
Copy link
Owner Author

tdauth commented Apr 13, 2024

  • Loot Ray should work with the custom backpack system and add the item to the backpack/equipment bag if the inventory is full.
  • Harvest Ray should work with mines with custom resources.

@tdauth
Copy link
Owner Author

tdauth commented Apr 13, 2024

Add some kind of duration effect by storing the duration on the same target in the target struct and passing it to the target effect.
We wait X seconds until the effect takes place for resurrection, cyclone etc. Harvest Ray should also consider duration on the same target.

Drain should cause damage from the caster to trigger creeps.

Update it in wow reforged for the resurrection not allied check and the new ticks counter.

@tdauth
Copy link
Owner Author

tdauth commented Apr 13, 2024

Add target skeleton summon sound for Raise Ray.

@tdauth
Copy link
Owner Author

tdauth commented Apr 13, 2024

Substract collision radius from the distance to the target.

@tdauth
Copy link
Owner Author

tdauth commented Apr 13, 2024

Add target and caster effects (special effects) and treat them like the target and loop sounds.

@tdauth
Copy link
Owner Author

tdauth commented Apr 13, 2024

Change icon of holy ray to heal?

@tdauth
Copy link
Owner Author

tdauth commented Apr 14, 2024

Add Hex/Polymorph Ray. It could either be permanent or only as long as you focus the unit but that would be rather weak.

@tdauth
Copy link
Owner Author

tdauth commented Apr 14, 2024

@tdauth
Copy link
Owner Author

tdauth commented Apr 18, 2024

Support holding key:

  • Flag to not move but only rotate.
  • Flag to rotate with the mouse while holding the key
  • Flag to allow holding key.

Holding key is detected by looping the cast of the spell with a maximum delay of 2 seconds or something (holdKeyMaxDelay). Warcraft will automatically recast the spell n times when you keep it pressed.

The mouse movement must be detected to get the direction while holding the key.

Add a single ray which is done like that or use Fire and Frost Ray.

@tdauth
Copy link
Owner Author

tdauth commented Apr 23, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request spell system
Projects
None yet
Development

No branches or pull requests

1 participant