4 kinds of ice?
Forum rules
Quicklinks: Download & Information • Create a new topic asking for help • All terraintype codes
Quicklinks: Download & Information • Create a new topic asking for help • All terraintype codes
4 kinds of ice?
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^^
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^^
- 3ICE
- Admin
- Posts: 2609
- Joined: Sat Mar 01, 2008 11:34 pm
- Realm: Europe
- Account: 3ICE
- Clan: 3ICE
- Location: Hungary
- Contact:
Re: 4 kinds of ice?
http://www.3ice.hu/blog/3ice-sliding-system-for-roc/#comment-109http://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 [...]
Re: 4 kinds of ice?
but can you give me a reverse slide trigger?
(if i click right i slide left...)
(if i click right i slide left...)
- 3ICE
- Admin
- Posts: 2609
- Joined: Sat Mar 01, 2008 11:34 pm
- Realm: Europe
- Account: 3ICE
- Clan: 3ICE
- Location: Hungary
- Contact:
Re: 4 kinds of ice?
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.
Set Speed to -4.00 and units will slide backwards.
Reversing the steer direction would be more work.
- 3ICE
- Admin
- Posts: 2609
- Joined: Sat Mar 01, 2008 11:34 pm
- Realm: Europe
- Account: 3ICE
- Clan: 3ICE
- Location: Hungary
- Contact:
Re: 4 kinds of ice?
Sure:
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.)

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?
i cant thisbut can you give me a reverse slide trigger?
(>if i click right i slide left...<)
pls do you this
i have tried it so but if i click below i slide right...


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
Reason: fixed
- 3ICE
- Admin
- Posts: 2609
- Joined: Sat Mar 01, 2008 11:34 pm
- Realm: Europe
- Account: 3ICE
- Clan: 3ICE
- Location: Hungary
- Contact:
Re: 4 kinds of ice?
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.:I've fixed your post above.
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.
- manstie
- Posts: 309
- Joined: Wed Jun 17, 2009 9:27 am
- Account: manstie
- Location: Perth, Australia
- Contact:
Re: 4 kinds of ice?
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...
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...


Who is online
Users browsing this forum: No registered users and 1 guest