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.

4 kinds of ice?

New postby ZsoyZ on Fri Jan 09, 2009 8:16 am

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^^
ZsoyZ
 
Posts: 5
Joined: Fri Jan 09, 2009 7:44 am

Re: 4 kinds of ice?

New postby 3ICE on Fri Jan 09, 2009 4:12 pm

http://www.3ice.hu/blog/3ice-sliding-system-for-roc/#comment-109The 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
User avatar
3ICE
Admin
 
Posts: 2126
Joined: Sat Mar 01, 2008 11:34 pm
Location: Hungary
Realm: US East
Account: 3ICE
Clan: 3ICE

Re: 4 kinds of ice?

New postby ZsoyZ on Wed Jan 14, 2009 12:19 pm

but can you give me a reverse slide trigger?
(if i click right i slide left...)
ZsoyZ
 
Posts: 5
Joined: Fri Jan 09, 2009 7:44 am

Re: 4 kinds of ice?

New postby 3ICE on Wed Jan 14, 2009 5:28 pm

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
User avatar
3ICE
Admin
 
Posts: 2126
Joined: Sat Mar 01, 2008 11:34 pm
Location: Hungary
Realm: US East
Account: 3ICE
Clan: 3ICE

Re: 4 kinds of ice?

New postby ZsoyZ on Thu Jan 15, 2009 8:47 am

pls can you did it for me?
ZsoyZ
 
Posts: 5
Joined: Fri Jan 09, 2009 7:44 am

Re: 4 kinds of ice?

New postby 3ICE on Thu Jan 15, 2009 2:39 pm

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
User avatar
3ICE
Admin
 
Posts: 2126
Joined: Sat Mar 01, 2008 11:34 pm
Location: Hungary
Realm: US East
Account: 3ICE
Clan: 3ICE

Re: 4 kinds of ice?

New postby ZsoyZ on Thu Jan 15, 2009 3:05 pm

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
ZsoyZ
 
Posts: 5
Joined: Fri Jan 09, 2009 7:44 am

Re: 4 kinds of ice?

New postby 3ICE on Thu Jan 15, 2009 3:52 pm

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
User avatar
3ICE
Admin
 
Posts: 2126
Joined: Sat Mar 01, 2008 11:34 pm
Location: Hungary
Realm: US East
Account: 3ICE
Clan: 3ICE

Re: 4 kinds of ice?

New postby ZsoyZ on Fri Jan 16, 2009 12:44 pm

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

Re: 4 kinds of ice?

New postby manstie on Thu Jun 18, 2009 6:45 am

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
User avatar
manstie
 
Posts: 273
Joined: Wed Jun 17, 2009 9:27 am
Location: Perth, Australia
Account: manstie

Next

Return to 3ICE's Sliding System for RoC



Who is online

Users browsing this forum: No registered users and 2 guests

cron