4 kinds of ice?

The perfect one step solution for creating Ice/Sliding Mazes in both Reign of Chaos and The Frozen Throne. It is the only decent system around and it even works in RoC, is lagfree, perfectly optimized, fast and reliable. The included TerrainKill feature frees you from the tedious task of creating a thousand kill-regions.
ZsoyZ
Posts: 5
Joined: Fri Jan 09, 2009 7:44 am

4 kinds of ice?

Unread post by ZsoyZ »

Hello, i need 4 kinds of ice for my escape map^^

1 Normal =Nordend ice (Nice)
2 Very Fast = Icecrown Ice (Iice)
3 Uncontrollable = Icecrown Dark-Ice (Idki)
4 Reverse = Underground Ice (Glav)

Pls pls...can you do this for me in a new Map then i can copy this in my map?
Of course, make a (blue) credit in my map!
(I will not give my map^^)




Ps: sry for my bad english, i come from germany and i can not verry good english^^

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

Re: 4 kinds of ice?

Unread post by 3ICE »

http://www.3ice.hu/blog/3ice-sliding-system-for-roc/#comment-109 wrote:The three-kinds-of-ice sliding system I made for Maze Designer is private. It would be too much work to make it user-friendly like this.
In [...]
http://www.3ice.hu/blog/3ice-sliding-system-for-roc/#comment-109
ImageImageImageImageImage
Image
ImageImage

ZsoyZ
Posts: 5
Joined: Fri Jan 09, 2009 7:44 am

Re: 4 kinds of ice?

Unread post by ZsoyZ »

but can you give me a reverse slide trigger?
(if i click right i slide left...)

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

Re: 4 kinds of ice?

Unread post by 3ICE »

3ICE's Sliding System for RoC can do this.
Set Speed to -4.00 and units will slide backwards.
Reversing the steer direction would be more work.
ImageImageImageImageImage
Image
ImageImage

ZsoyZ
Posts: 5
Joined: Fri Jan 09, 2009 7:44 am

Re: 4 kinds of ice?

Unread post by ZsoyZ »

pls can you did it for me?

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

Re: 4 kinds of ice?

Unread post by 3ICE »

Sure: t_set Set Speed = -4.00
Do it while players are on ice or they won't be able to start sliding. (Or spawn them ON the ice to start with.)
ImageImageImageImageImage
Image
ImageImage

ZsoyZ
Posts: 5
Joined: Fri Jan 09, 2009 7:44 am

Re: 4 kinds of ice?

Unread post by ZsoyZ »

but can you give me a reverse slide trigger?
(>if i click right i slide left...<)
i cant this
pls do you this
i have tried it so but if i click below i slide right...
3ICE's Sliding System for RoC → Steer trigger 3ICE's Sliding System for RoC → Steer trigger
     t_dia JASS code follows...

Code: Select all

function Turn takes nothing returns nothing
	local unit u=GetTriggerUnit()
	local real x=GetUnitX(u)
	local real y=GetUnitY(u)
	local location p=GetUnitLoc(GetOrderTargetUnit())
	if(GetTerrainType(x,y)==udg_Slide)and(IsUnitInGroup(u,udg_H))then
		call SetUnitFacing(u,57.295828*Atan2(GetLocationY(p)-y,GetLocationX(p)-x))
	endif
	call RemoveLocation(p)
	set p=null
	set u=null
endfunction

function Steer takes nothing returns nothing
	local unit u=GetTriggerUnit()
	local real x=GetUnitX(u)
	local real y=GetUnitY(u)
	local real a=GetOrderPointY()
	local real b=GetOrderPointX()
	if(GetTerrainType(x,y)==udg_Slide)and(IsUnitInGroup(u,udg_H))then
		call SetUnitFacing(u,57.295828*Atan2(b-y,a-x))
	endif
	set u=null
endfunction

function ReturnTrue takes nothing returns boolean
	return true
endfunction

function InitTrig_Steer takes nothing returns nothing
	local integer i=0
	local filterfunc nullboolexpr=Filter(function ReturnTrue)
	local trigger gg_trg_Turn=CreateTrigger()
	set gg_trg_Steer=CreateTrigger()
	call TriggerAddAction(gg_trg_Turn,function Turn)
	call TriggerAddAction(gg_trg_Steer,function Steer)
	loop
		exitwhen i>12
		call TriggerRegisterPlayerUnitEvent(gg_trg_Turn,Player(i),EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER,nullboolexpr)
		call TriggerRegisterPlayerUnitEvent(gg_trg_Steer,Player(i),EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER,nullboolexpr)
		set i=i+1
	endloop
endfunction
Last edited by 3ICE on Thu Jan 15, 2009 3:56 pm, edited 3 times in total.
Reason: fixed

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

Re: 4 kinds of ice?

Unread post by 3ICE »

Revert your modifications and change:
call SetUnitFacing(u,57.295828*Atan2(GetLocationY(p)-y,GetLocationX(p)-x))
to
call SetUnitFacing(u,57.295828*Atan2(GetLocationY(p)-y,GetLocationX(p)-x)+180)
and change:
call SetUnitFacing(u,57.295828*Atan2(b-y,a-x))
to
call SetUnitFacing(u,57.295828*Atan2(b-y,a-x)+180)
in the Steer trigger.

Please note that this works exactly how you described it. (Click left, turn right.) I can only hope that you described it properly and won't "change your mind"...

Use bbcode to make your post readable. Eg.:

Code: Select all

[t]post triggers between these special [t] bbcode tags[/t]

or simply use [code] and [/code} tags.
I've fixed your post above.
ImageImageImageImageImage
Image
ImageImage

ZsoyZ
Posts: 5
Joined: Fri Jan 09, 2009 7:44 am

Re: 4 kinds of ice?

Unread post by ZsoyZ »

thank you :D

User avatar
manstie
Posts: 310
Joined: Wed Jun 17, 2009 9:27 am
Account: manstie
Location: Perth, Australia
Contact:

Re: 4 kinds of ice?

Unread post by manstie »

Wow cool! Reverse Steering!!!
Oh wait...

Is there a way to make it that one ice has normal steering and another ice has reverse steering???
I copied the steer trigger and replaces a few stuff as u said to make it a backwards steering one but I seem to get those saving errors again... :cry:
Image

Post Reply

Who is online

Users browsing this forum: No registered users and 61 guests