Staredit Network > Forums > SC2 Assistance > Topic: [SOLVED] Max Range Missile + Fully cloaked
[SOLVED] Max Range Missile + Fully cloaked
Feb 15 2013, 10:08 pm
By: payne  

Feb 15 2013, 10:08 pm payne Post #1

:payne:

I have a Target Effect Ability which launches a missile toward the selected point. That missile disappears if it hits a unit.
My problem is that I want the missile to keep moving in the direction of the cast until it hits the max range of the ability (instead of disappearing at the point the caster selected).

To summarize, the missile should disappear only if:
1) It reaches the max range, OR;
2) It hits a unit.

And how do I make it so that I have two different filters for the Search Area effect? I want a specific thing to happen if the missile hits an ally, and another thing to happen if it hits an enemy.

---

Second question: how do I fully cloak a unit? The default cloak effect still lets player see where the unit is because it deforms its surrounding.

Post has been edited 1 time(s), last time on Feb 23 2013, 11:59 am by payne.



None.

Feb 15 2013, 11:19 pm Ahli Post #2

I do stuff and thingies... Try widening and reducing the number of small nooks and crannies to correct the problem.

Offset the target point with a persistent. You need to offset it by (0, -forward, 0), negative Y value is important. You could try to use a big number for this. If a big number won't work properly, you could periodically redirect the missile via a behavior, too.

Use a behavior with a periodic search on the missile to detect collisions. You could use 2 behaviors, for example.
Else you could use a switch to do either search effect A or search effect B depending on a validator with the type "enumerate area".

This skillshot demonstration map might help you.




Feb 18 2013, 1:47 am payne Post #3

:payne:

Thanks for the Missile.
Any ideas for the Cloak?



None.

Feb 18 2013, 8:22 pm DevliN Post #4

OVERWATCH STATUS GO

You can fully cloak a unit by making it invisible (not cloaked, actually invisible), but then the player wouldn't be able to see it either.



\:devlin\: Currently Working On: \:devlin\:
My Overwatch addiction.

Feb 22 2013, 10:58 pm payne Post #5

:payne:

Here is the code my partner used for that:

Code
Cloaked
   Events
       Environment - Player Any Player uses Effect Ghost - Cloak (Buff)
   Local Variables
       alliedplayers = (Empty player group) <Player Group>
   Conditions
   Actions
       Variable - Set alliedplayers = (Allies of player (Triggering Effect Unit Owner(Caster)))
       Player Group - Add player (Triggering Effect Unit Owner(Caster)) to alliedplayers
       Fade Out (Actor for (Triggering Effect Unit(Target))) For (Enemies of player (Triggering Effect Unit Owner(Caster))) (Half Fade False)
       Fade Out (Actor for (Triggering Effect Unit(Target))) For (Copy of alliedplayers) (Half Fade True)
       General - Wait 0.25 Game Time seconds
       Hide (Actor for (Triggering Effect Unit(Target))) For (Enemies of player (Owner of (Triggering Effect Unit(Caster))))
       Ping - Hide BallPing
       General - While (Conditions) are true, do (Actions)
           Conditions
               ((Triggering Effect Unit(Target)) has Ghost - Cloaked (Buff)) == True
           Actions
               General - Wait 0.0625 Game Time seconds
       Show (Actor for (Triggering Effect Unit(Target))) For (Enemies of player (Owner of (Triggering Effect Unit(Caster))))
       Fade In (Actor for (Triggering Effect Unit(Target))) For (All players) (Half Fade False)
       Ping - Show BallPing




None.

Feb 23 2013, 12:02 am Ahli Post #6

I do stuff and thingies... Try widening and reducing the number of small nooks and crannies to correct the problem.

Methods for true inviisbility:
- no draw flag in a behavior
- burrowed flag in behavior (can potentially cause problems, if you got spells that ignore burrowed units. I'm not sure if Blizzard created any ability like that)
- set opacity to 0 via actor message
- hide actor for players via the code in Renee's GAx3 mod on sc2mapster

And it seems you found another method with an action that I didn't know it was existing.




Feb 23 2013, 5:02 am payne Post #7

:payne:

Quote from Ahli
Methods for true inviisbility:
- no draw flag in a behavior
- burrowed flag in behavior (can potentially cause problems, if you got spells that ignore burrowed units. I'm not sure if Blizzard created any ability like that)
- set opacity to 0 via actor message
- hide actor for players via the code in Renee's GAx3 mod on sc2mapster

And it seems you found another method with an action that I didn't know it was existing.
After making some research, I realized this action is actually a function taken from someone on sc2mapster.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[12:51 am]
Ultraviolet -- RIVE
RIVE shouted: Beta 4 lyfe, ya kno
feels like a lower commitment. like if someone bitches about something, I can say it's in beta phase whatchu expect? :P
[2023-9-28. : 6:46 am]
RIVE -- Beta 4 lyfe, ya kno
[2023-9-28. : 5:26 am]
NudeRaider -- Ultraviolet
Ultraviolet shouted: NudeRaider I suppose that's one justification for pushing it to 1.00. I'm still messing with some novel concepts, I completely revamped the Shadowcraft hero in v0.18 and there's some kinks to work out with some of the other changes I made, but I suppose that doesn't mean I can't call the currently version 1.XX
indeed
[2023-9-28. : 1:13 am]
Ultraviolet -- NudeRaider
NudeRaider shouted: Ultraviolet prediction: It will. ;)
:massimo:
[2023-9-28. : 1:13 am]
Ultraviolet -- NudeRaider
NudeRaider shouted: Ultraviolet Oh, then your versioning is maybe a bit misleading. I didn't have much trust in a v0.2
I suppose that's one justification for pushing it to 1.00. I'm still messing with some novel concepts, I completely revamped the Shadowcraft hero in v0.18 and there's some kinks to work out with some of the other changes I made, but I suppose that doesn't mean I can't call the currently version 1.XX
[2023-9-28. : 1:12 am]
Ultraviolet -- NudeRaider
NudeRaider shouted: Ultraviolet :lol: did you really just commit another shout just to add a bracket? :D
Damn straight! :P
[2023-9-27. : 7:22 pm]
NudeRaider -- Ultraviolet
Ultraviolet shouted: Imp UV3 is actually in the works with some major changes, but it's been slow going. I'd like to have a version of Imp UV for every tileset at one point.. hopefully it doesn't take until 2030 :P
prediction: It will. ;)
[2023-9-27. : 7:21 pm]
NudeRaider -- Ultraviolet
Ultraviolet shouted: NudeRaider Oh definitely fully playable. I used the first map as the shell, so it was basically complete from the first release. I've made some tweaks and improvements here and there based on nuances between the maps, like UV2 has more air units so certain ground-focused heroes like Psycho and Shadowcraft have needed some buffing. Other improvements have been little bug fixes or ways of stopping cheese strategies (like the bosses now spawn in a random location instead of at their lair so players can't just camp them with nukes. UV2 is definitely harder despite only being 4 levels + boss fight instead of 5. I'd say it's definitely worth a go, there's some unique mechanics that make each of the levels have kind of their own interesting spin
Oh, then your versioning is maybe a bit misleading. I didn't have much trust in a v0.2
[2023-9-27. : 7:21 pm]
NudeRaider -- Ultraviolet
Ultraviolet shouted: nukes).* lol
:lol: did you really just commit another shout just to add a bracket? :D
[2023-9-27. : 4:22 pm]
ubtrueblue -- hello
Please log in to shout.


Members Online: Wing Zero, C(a)HeK, pgslotssgp