Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Unit Teleporting System
Unit Teleporting System
Feb 1 2009, 1:31 pm
By: NooBPooB  

Feb 1 2009, 1:31 pm NooBPooB Post #1



Hello guys, i´ve got a problem. Maybe an easy one.
So i want to make a map where units get teleported to the place, where they kill a unit. Sounds very easy.
Player x kills 1 ling in "1" --> Move Ghost from player "x" to "1"

So... i donßt want to make 10000 triggers and want to ask you how it could be possible, that its recognized which player kills the unit at a specific place.
So the problem is that if I kill a unit , every player ingame will be teleported to this place who kills a unit @ same time...
Do you understand what i mean?

Thanks for every response.



None.

Feb 1 2009, 1:44 pm JaFF Post #2



You can detect which player killed an enemy unit with the Kill Score conditions (Score -> kills). Killing a zergling gives the player 50 kill score. If you are sure that, in your case, a zergling can only be killed in the '1' location, then it's fine. If, however, you do not know for sure where the zergling is killed, this might get nasty.



None.

Feb 1 2009, 1:59 pm NooBPooB Post #3



Prob , there are over 250 lings to get killed. And if 2 players kill 1 ling @ same time they maybe get both teleported @ same location even they killed the ling on different locations if you understand... so.... how to fix taht prob..



None.

Feb 1 2009, 2:22 pm JaFF Post #4



If I am correct, two players cannot kill one unit at the same time. In other words, only one of them will get the kill score, thus only one of them will be teleported. Even if I'm wrong and two players can kill one unit simultaneously, you can just pretend that one of them was a little bit late and not teleport him - nobody will notice in a battle with 250 zerglings.

The true problem is detecting the location of a units death. There is a system that does that, but due to the way SC's engine works, it has only a 50% chance of detecting each units death position. There is an example map called Duplicating Marines that demonstrates how it is done. However, I suggest you drop your current idea and think of something simpler.



None.

Feb 1 2009, 2:46 pm NooBPooB Post #5



The zerglings use is not to fight.
I explain my game so it´s easier to understand what i want.
The game will be something like Sniper Paintball. You have a ghost and have to capture the flag. That you can move faster and that it is kind of more funny , you are a "Jumper" There are 250 Locations at the battlefield and you can move your own just by killing burrowed lings and then you "jump" there. The ling you killed will be created again in this location so you can always "Jump" again there.
Its just about your mousespeed, you can jump there, then there and kill your enemy if you understand? And when you battle each other ,you should be teleported on the place you want , or it will get very weird-



None.

Feb 1 2009, 7:04 pm JaFF Post #6



OK. Use Kill Score conditions (zergling gives you 50) to detect who killed a zergling and then detect where the zergling has been killed. If two players killed different zerglings within the same trigger loop, then you can detect which player is closer to which zergling, though this is not a fully reliable method. In fact, I cannot think of any way of detecting it with 100% accuracy (with your current setup) - in cases when nearby players kill zerglings within the same trigger loop, it may still give errors.

I suggest you think of something simpler for teleporting. Perhaps portal-like objects that are used as teleports to fixed locations scattered around the map?



None.

Feb 1 2009, 7:29 pm NudeRaider Post #7

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

How about making the snipers Dark Archons? When your map is designed like most sniper maps where 1 shot kills this would be totally viable. You could even implement a hp system, where you decrease the da's life by 20% each time they got mc-ed. Drawback (though realistic) each time you get hit, your unit loses orders (is stunned for a split second)

Another idea to support this: Make the flag a civilian or maybe a neutral zealot with speed (faster). When a da gets near the zeal (=flag) Always order the zeal to follow this da. Then enemy das could mealstrom the zeal so it stops following the da. There might be more...




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[01:55 am]
Vrael -- Right I forgot, maybe something more like: output_yr = getinternalengine().timecooker.timemethod.bake().steam().casserole().lookattheclockonthewall.converttotimezone.souvide().current().subtractepoch()
[11:56 pm]
l)ark_ssj9kevin -- Vrael
Vrael shouted: I mean, if you just used output_yr = datetime.datetime.fromtimestamp(time.time()).strftime("%Y") then you wouldnt have to log in and log off for the year and you'd save yourself a whole bunch of trouble
SEN is written in PHP so it's probably even more arcane than that
[11:32 am]
NudeRaider -- No, it's Corbo
[2025-1-13. : 10:41 pm]
Vrael -- is evildesk still working in the copyright office is that why
[2025-1-13. : 9:14 pm]
Ultraviolet -- request denied
[2025-1-13. : 8:02 pm]
Roy -- We have to go down to the copyright office and renew our registration before we're allowed to change the date on the site.
[2025-1-13. : 2:44 am]
Ultraviolet -- But then how can you pretend and bullshit yourself that you're going to make big wonderful changes?? Nope, manual entry is the only way
[2025-1-12. : 11:56 pm]
Vrael -- I mean, if you just used output_yr = datetime.datetime.fromtimestamp(time.time()).strftime("%Y") then you wouldnt have to log in and log off for the year and you'd save yourself a whole bunch of trouble
[2025-1-11. : 2:16 pm]
Ultraviolet -- Sounds about right ;)
[2025-1-11. : 12:35 pm]
Moose -- > Log in January 1. > "This is the year I'm really going to overhaul this website." > Change date in copyright footer. > Log off for the year.
Please log in to shout.


Members Online: Xqiehhu09