RopeSlide

From CryWiki

Jump to: navigation, search


Flowgraph Walkthrough

To complete this flowgraph, a few things are required outside of the flowgraph editor. Firstly, you should have already created your specified wire or rope that the player will appear to slide down when the F key is pressed. This can be done by either using the Rope Tool (RollupBar → The Create Tab → Misc → Rope), or by using a GeomEntity or Brush structure if one exists.

Furthermore, create a Tagpoint (RollupBar → The Create Tab → AI → Tagpoint) that will define where the player will stop at the end of the slide. This should ideally be at the same height from the rope as the player will be when he uses it, to avoid continuity errors. When you have finished with the Tagpoint, assign it to the Entity:EntityPos node as pictured.

The flowgraph is actually rather simple in its execution. The AreaTrigger sets off the HUD message when the player enters its associated area, and hides it when the player leaves. Similarly, when the player enters the area, the Input:Key node is enabled and the rope slide ability is enabled. When the key is pressed (in this case, F) the player is moved to the destination of the Tagpoint at the designated speed, whilst still keeping the ability to look and shoot.

If you would like the speed to ease near the end, you can adjust the distance at which the player comes to a halt. When the player reaches the tagpoint, they are detached from the rope/wire and are able to move around freely once again.


Flowgraph Image

Preview of Rope Slide.
Preview of Rope Slide.

   

About this Sample

Name

Rope Slide

Created by

McGinge

Compatible with Multiplayer

No

Description

This flowgraph enables the player to be able to slide down a rope or wire after pressing the appropriate key in a designated area.


Download

Click here to download this sample's Graph XML file.

You may need to right-click on the link and select "Save As" from the menu.


» Discuss this sample...

» View other Flowgraph Samples

» Return to Crysis Modding Code Samples

Personal tools