terrain kill in GUI

Do you need World Editor help? Ask here!
Forum rules
Before making a new topic:
First, check if your question has already been answered in the Tutorials section.
If you didn't find a solution, use the search function.
If searching didn't help either, you can make a new topic.

Topic title & content:
You must use a descriptive title. (Help plz is not good) (Need help with Dialog buttons is good)
Go into much detail when posting. You should post attachments. Like screenshots of the problem, the map you are making, replays of the error. Or you could even make a screencast (video) of your problem and upload it here.

Spelling:
Grammar seems to be a serious problem amongst teenagers, so use a spell checker or you will get no love.
Read your posts twice, before pressing the reply button.
And do not use profanity. Chatspeak (y r u nub) and Leetspeak (1 C4N S33 H4X) are not welcome here either.

Only World Editor related questions are allowed here!
(Click for Battle.net help) (Click for World Editor help)
User avatar
SHiNNiNG_FaiTH
Posts: 264
Joined: Fri Mar 21, 2008 1:57 am
Realm: US East
Account: SHiNNiNG_FaiTH
Clan: 3ICE
Location: Minnesota, USA
Contact:

Re: terrain kill in GUI

Unread post by SHiNNiNG_FaiTH »

agreed. but thats what it was in. can you help me please?
Last edited by 3ICE on Sat Mar 05, 2011 1:27 pm, edited 2 times in total.
Reason: Don't do that again.
APM Spamming mineral fields is fun!
Image

User avatar
3ICE
Admin
Posts: 2629
Joined: Sat Mar 01, 2008 11:34 pm
Realm: Europe
Account: 3ICE
Clan: 3ICE
Location: Hungary
Contact:

Re: terrain kill in GUI

Unread post by 3ICE »

I removed the massive amount of smileys you posted. Don't do it again.

I looked through all our exchanged PMs and this is the only related conversation I found:
shinning_faith wrote:oh and can you code the customizable region kill for me so i can copy paste? <3
3ICE wrote:no
Therefore, my homework was not written in a PM.
ImageImageImageImageImage
Image
ImageImage

User avatar
SHiNNiNG_FaiTH
Posts: 264
Joined: Fri Mar 21, 2008 1:57 am
Realm: US East
Account: SHiNNiNG_FaiTH
Clan: 3ICE
Location: Minnesota, USA
Contact:

Re: terrain kill in GUI

Unread post by SHiNNiNG_FaiTH »

hmmmm whats wrong with my god damn smileys? and it was under the (messages) file or w.e witch i was asuming was pm cause nobody but us can see it. i know u said something about polar offset mabs or some shit but why do you hate this so much?
APM Spamming mineral fields is fun!
Image

User avatar
3ICE
Admin
Posts: 2629
Joined: Sat Mar 01, 2008 11:34 pm
Realm: Europe
Account: 3ICE
Clan: 3ICE
Location: Hungary
Contact:

Re: terrain kill in GUI

Unread post by 3ICE »

TerrainCheck some points around the position of the hero and only kill the hero if the majority of those points would kill the hero.

I hate having to repeat myself.
ImageImageImageImageImage
Image
ImageImage

User avatar
SHiNNiNG_FaiTH
Posts: 264
Joined: Fri Mar 21, 2008 1:57 am
Realm: US East
Account: SHiNNiNG_FaiTH
Clan: 3ICE
Location: Minnesota, USA
Contact:

Re: terrain kill in GUI

Unread post by SHiNNiNG_FaiTH »

well im sorry for not understanding JASS and not nowing Shit about GUI. even tho i know some stuff i still have alot to learn and i am still somewhat used to RoC triggers.
APM Spamming mineral fields is fun!
Image

samtre
Posts: 82
Joined: Thu Nov 27, 2008 6:43 am

Re: terrain kill in GUI

Unread post by samtre »

so are you trying to convert 3ICE's JASS sliding system into GUI? or are you asking about how to kill a unit when it touches a terrain?
because I hear nobody successfully create a GUI sliding system that works as smooth and realistic as in JASS.
For the terrain kill part, you could use a periodic timer and check every unit's whether they are on a certain type of terrain, but this might leak a lot.

User avatar
3ICE
Admin
Posts: 2629
Joined: Sat Mar 01, 2008 11:34 pm
Realm: Europe
Account: 3ICE
Clan: 3ICE
Location: Hungary
Contact:

Re: terrain kill in GUI

Unread post by 3ICE »

My system comes with terran kill already, what SF wants is a more forgiving version. See pic:
Image    
Circle=hero, Line=border of killzone
Colored=part of hero that touches killzone
Red=kill hero, Green=don't kill hero

Just touching the edge of snow with one pixel of your hero's foot kills you originally. It is too strict. People die accidentally, because what they think safe is actually not.
ImageImageImageImageImage
Image
ImageImage

samtre
Posts: 82
Joined: Thu Nov 27, 2008 6:43 am

Re: terrain kill in GUI

Unread post by samtre »

here's the most forgiving part then, which i think, blocks out entry of the terrain.
or just do what 3ICE told everybody to do to remove terrainkill:

Code: Select all

//Delete these two lines to remove terrainkill (Between START2 and END2)
create a variable named "nokill" based on integer
at Setup2, add this line below the "udg_Slide = Nice" line
add this line ---> set udg_nokill = 'Nsnw'
but make sure you delete the line which say Nsnw before,

then at the slide trigger copy and paste this line below this line

Code: Select all

	if(t==udg_Slide)then
		call SetUnitX(u,x+udg_Speed*Cos(0.017453278*GetUnitFacing(u)))
		call SetUnitY(u,y+udg_Speed*Sin(0.017453278*GetUnitFacing(u)))
add these lines below

Code: Select all

	elseif(t==udg_nokill)and(UnitHasBuffBJ(u,'Bfro')==false)then
		call SetUnitX(u,x+(-udg_Speed)*Cos(0.017453278*GetUnitFacing(u)))
		call SetUnitY(u,y+(-udg_Speed)*Sin(0.017453278*GetUnitFacing(u)))
that's about it, you won't get kill on the snow, but rather somehow "blocked" by it,
i don't have the 3ICE's Sliding System for RoC v3.w3m so i tried redownloading it, seems that the server's down? oO
3ICE, is that the way to put reversed steering? oO
Last edited by 3ICE on Sun Mar 06, 2011 6:47 am, edited 1 time in total.
Reason: Fixed your post, somewhat. Why do you post CODE in [quote] tags? And how dare you use BJ in my system!? And without documenting what 'Bfro' is! (I left it there anyway, no clue why a unit would have the "Slowed" buff you are checking for...)

User avatar
3ICE
Admin
Posts: 2629
Joined: Sat Mar 01, 2008 11:34 pm
Realm: Europe
Account: 3ICE
Clan: 3ICE
Location: Hungary
Contact:

Re: terrain kill in GUI

Unread post by 3ICE »

He WANTS terrain kill. What good would it do if he removed it?
3ICE wrote:what SF wants is a more forgiving version.
ImageImageImageImageImage
Image
ImageImage

samtre
Posts: 82
Joined: Thu Nov 27, 2008 6:43 am

Re: terrain kill in GUI

Unread post by samtre »

how can death be forgiving? still makes no sense

Post Reply

Who is online

Users browsing this forum: No registered users and 297 guests