I'm trying to go about figuring out what an efficient way of creating 'ledge
movement' for Source would be.

What I'm trying to accomplish is similar to Mirrors Edge and Assassins Creed
where you can jump and hang onto a ledge and move left/right and climb up.

Ideally I'd like it to work on both static brushes, moving brushes, and
models.


What would the ideal way of doing this be? My interpretation would be as
follows:

1: Trace out to the wall
2: Find the edges of the brush using GetBrushesInAABB and GetBrushInfo
3: Compare the distance of the player to the top edge. If it's less than X
amount, move them to the edge
4: Constrain movement to left/right

However, this would be a very constrained movement would probably only work
on a flat surface wall, and nothing like cylinders or something with a
ledge.

Has anyone ever tried implementing this kind of movement in source, or have
any ideas?

Thanks.
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to