Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / Ropes 'n Ladders

Author
Message
PackratPete
12
Years of Service
User Offline
Joined: 10th Jan 2012
Location:
Posted: 15th Feb 2012 20:20
Has anyone done any work in scripting a climbing script for ladders and ropes,(vines)etc.??
I have no experience, but it seems like an awesome addition to any library.
BlackFox
FPSC Master
16
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 15th Feb 2012 20:41
There have been ladders and ladder scripts done before.

Ladder & script by Xplosys

Wall ladder by Xplosys

Wall ladder and script by Xplosys


Twitter: @NFoxMedia
PackratPete
12
Years of Service
User Offline
Joined: 10th Jan 2012
Location:
Posted: 16th Feb 2012 02:11
Many apologies...did not mean to include ladders, looking for rope/vine
BlackFox
FPSC Master
16
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 16th Feb 2012 02:58
No problem. I have not seen any ropes or vines yet.


Twitter: @NFoxMedia
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 16th Feb 2012 14:14
A ladder script could be used as a rope/vine script as well. While I'm sure there are some new commands that may be helpful or better, this old script should work and can be adjusted to suit.

Quote: ";Artificial Intelligence Script
;by xplosys

;Header

desc = Ladder (Automatic in range)

;Triggers

:state=0:state=6,coloff,setalphafade=0

:state=1,raycastup=60 80:state=5,unassociateplayer
:state=1:associateplayer,moveup=2

:state=5,raycastup=0 -20:state=6
:state=5:moveup=-2

:state=6,plrdistwithin=40:state=1,associateplayer

;End of Script
"


The thing about this script is that it uses a distances.
From the rope or vine: plrdistwithin=40
(The player will climb when he gets within 40 units)

and...
from the upper segment: raycastup=0 -20
(The player will climb until he gets to the next segment above)

This means that the rope or vine can be as tall as you like, but there must be a segment place one level above the top of it, or the player will continue to climb past the top of the rope. That segment can of course be invisible if it won't fit well in the scene.

Once the player moves away from the rope (40 units) he will no longer climb.

As with everything else, you'll need to play around and adjust until it's usable, if at all, for your needs.

Brian.

!retupmoc eht ni deppart m'I !pleH

Login to post a reply

Server time is: 2024-11-24 01:33:44
Your offset time is: 2024-11-24 01:33:44