Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Sniper Rifle Effect?
Sniper Rifle Effect?
May 14 2008, 5:36 pm
By: Madroc  

May 14 2008, 5:36 pm Madroc Post #1



Ok so I have this weapon in my map where you have a "guy with sniper rifle" (civilian) and "crossbeam" (observer). To fire, you position your observer over the target and bring the SCV to the beacon. Then you wait a few seconds and then a zealot suddenly appears and kills the target. You can't shoot through walls but you can shoot from as far as you want. Also you can shoot from buildingtops (this is the part I need help on).

How it works is when you bring the SCV to the beacon, an observer owned by player 8 is created at where your civilian is. Then it is ordered to go towards where the crossbeam is. Along the way, a cloaked ghost owned by player 8 is constantly moved to the observer owned by player 8. Along the way, if the ghost is not under the observer location, the observer blows up and a zealot that does 9999 damage is made and after 500 milliseconds is removed along with the P8 ghost. If the P8 observer gets to where your crossbeam is, it blows up and makes the zealot and after 500 millieseconds removes him with the P8 ghost. There is a 500 milliesecond wait before the ghost the P8 ghost is made so that you don't shoot yourself in the foot every time you try to fire.

Now is there any way to make it so the sniper rifle can be fired from rooftops (not the square crap) but when you are standing on ground level you can't shoot through them? Also I'd like to use that really cool lookin' terrain that someone made where there are different levels of rooftops and really freakishly tall buildings (made with starforge or SCMdraft). I'd rather not put a location on every single rooftop. If needbe I can make the rooftops just be 1 staredit square wide if that makes a difference. Also it would be cool if you could shoot from the ground onto rooftops but when the bullet reaches the edge of the rooftop where it goes back to ground terrain the bullet suddenly disappears like you shot into the sky.


That's probably really hard to do or impossible but I'm willing to do a lot, the map is almost done :( Thanks!! :D



None.

May 14 2008, 6:45 pm NudeRaider Post #2

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

What terrain is your rooftop? Just high elevation?
In that case it's not hard. You can create 3 locations where each of them just covers a single air layer (high, low, medium => high ground, normal ground, sunken ground). And center all of them on the observer.
When you fire set a dc 'elevation' to 0 and make those triggers:
If P8 brings obs to 'low'
set dc to 1
If P8 brings obs to 'med' and dc is at least 1
set dc to 100
If P8 brings obs to 'med' and dc is at most 0
set dc to 1
If P8 brings obs to 'high' and dc is at least 1
set dc to 100
If P8 suffered at least 100 of dc
<actions for shooting a wall>

If I have thought it through correctly the dc will stay 0 or 1 if the obs passed only one or only descending elevation on its flight and the dc will be set to 100 if the obs enters higher elevation than it was last trigger loop.




May 15 2008, 6:14 am Madroc Post #3



Excellent, that works great! I'm surprised I didn't think of that.

However I have a problem :crazy: - - For some reason in the X-tra Editor, I tryed to create a "Bring" trigger but when I tried to put in the location and pressed OK, instead of it saying "Location Whatever" it said "_" So I figured that it was just acting up or somethin'. So I decided that it was about time that I downloaded SCMdraft and tryed to load it there. When it opened it game an error message:
(Quote)
String corruption detected in line 4741, line......
String ID: 1024. String Contents: Location Whatever
REPORT THIS!
(Unquote)
What's the deal?

I was thinking part of the problem was that I was max on strings. I have gotten to a point where I just delete a comment in a trigger every time I need to make a new location or something that requires a string. Could that be part of the problem?

Thanks, I'm afraid I forgot to save under a new name recently, so I hope the map isn't corrupted or anything... :crazy: Any way I can fix it? :-(

EDIT hmm ok I deleted a location that crashed x-tra every time I scrolled over it and it seems to be doing fine. Now I just can't open it in SCMdraft, period. OK well nevermind! :ermm:

Post has been edited 1 time(s), last time on May 15 2008, 7:46 am by madroc.



None.

May 15 2008, 9:49 am NudeRaider Post #4

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

Although some guys claim otherwise (when using scmdraft) getting over 1024 strings can cause trouble (scmdraft) / is not possible (other editors).
You should restore your map to a point where it wasn't at/over the limit. Scmdraft -> advanced -> backup database might help.
I doubt you can fix the map once it got corrupted.




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[07:47 pm]
Ultraviolet -- Yeah, I suppose there's something to that
[2024-5-06. : 5:02 am]
Oh_Man -- whereas just "press X to get 50 health back" is pretty mindless
[2024-5-06. : 5:02 am]
Oh_Man -- because it adds anotherr level of player decision-making where u dont wanna walk too far away from the medic or u lose healing value
[2024-5-06. : 5:01 am]
Oh_Man -- initially I thought it was weird why is he still using the basic pre-EUD medic healing system, but it's actually genius
[2024-5-06. : 3:04 am]
Ultraviolet -- Vrael
Vrael shouted: I almost had a heart attack just thinking about calculating all the offsets it would take to do that kind of stuff
With the modern EUD editors, I don't think they're calculating nearly as many offsets as you might imagine. Still some fancy ass work that I'm sure took a ton of effort
[2024-5-06. : 12:51 am]
Oh_Man -- definitely EUD
[2024-5-05. : 9:35 pm]
Vrael -- I almost had a heart attack just thinking about calculating all the offsets it would take to do that kind of stuff
[2024-5-05. : 9:35 pm]
Vrael -- that is insane
[2024-5-05. : 9:35 pm]
Vrael -- damn is that all EUD effects?
[2024-5-04. : 10:53 pm]
Oh_Man -- https://youtu.be/MHOZptE-_-c are yall seeing this map? it's insane
Please log in to shout.


Members Online: jjf28, Roy