Page 1 of 2

4 kinds of ice?

Posted: Fri Jan 09, 2009 8:16 am
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^^

Re: 4 kinds of ice?

Posted: Fri Jan 09, 2009 4:12 pm
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

Re: 4 kinds of ice?

Posted: Wed Jan 14, 2009 12:19 pm
by ZsoyZ
but can you give me a reverse slide trigger?
(if i click right i slide left...)

Re: 4 kinds of ice?

Posted: Wed Jan 14, 2009 5:28 pm
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.

Re: 4 kinds of ice?

Posted: Thu Jan 15, 2009 8:47 am
by ZsoyZ
pls can you did it for me?

Re: 4 kinds of ice?

Posted: Thu Jan 15, 2009 2:39 pm
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.)

Re: 4 kinds of ice?

Posted: Thu Jan 15, 2009 3:05 pm
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

Re: 4 kinds of ice?

Posted: Thu Jan 15, 2009 3:52 pm
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.

Re: 4 kinds of ice?

Posted: Fri Jan 16, 2009 12:44 pm
by ZsoyZ
thank you :D

Re: 4 kinds of ice?

Posted: Thu Jun 18, 2009 6:45 am
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: