Climb by Waitedboat4#2760
1 rule that allows you to climb any wall with any hero, with an animation. Just don't use my thirdperson mod whilst using this, it'll kill the immersion.
Code:
rule("Climb - by Waitedboat4#2760")
{
event
{
Ongoing - Each Player;
All;
All;
}
conditions
{
Distance Between(Eye Position(Event Player), Ray Cast Hit Position(Eye Position(Event Player), Eye Position(Event Player)
+ Facing Direction Of(Event Player) * 2, Null, Event Player, False)) <= 1;
Is Jumping(Event Player) == True;
Is Crouching(Event Player) == False;
}
actions
{
Apply Impulse(Event Player, Up, 13, To World, Cancel Contrary Motion);
Set Status(Event Player, Null, Knocked Down, 0.500);
}
}