Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (vicknick, dr_panther, VoroneTZ), 1,255 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Climbing Water Edge #336189
08/02/10 09:06
08/02/10 09:06
Joined: Jul 2008
Posts: 168
8
82RJZAE Offline OP
Member
82RJZAE  Offline OP
Member
8

Joined: Jul 2008
Posts: 168
Hi, can anyone describe a method on how I might get my player to detect whether he is by the edge of water so that he can climb out properly?

Re: Climbing Water Edge [Re: 82RJZAE] #336217
08/02/10 12:32
08/02/10 12:32
Joined: Dec 2008
Posts: 605
47°19'02.40" N 8°32'54.67" E...
hopfel Offline
User
hopfel  Offline
User

Joined: Dec 2008
Posts: 605
47°19'02.40" N 8°32'54.67" E...
I hope I understood your question right:
You can use c_trace twice, first to detect the end of the water and second to get the high of the land. Something like this:
Click to reveal..


If the land is low enough, he can climb out, else he can't. ^^


Hilf mir, dir zu helfen!
Re: Climbing Water Edge [Re: hopfel] #336271
08/02/10 18:05
08/02/10 18:05
Joined: Jul 2008
Posts: 168
8
82RJZAE Offline OP
Member
82RJZAE  Offline OP
Member
8

Joined: Jul 2008
Posts: 168
Thanks, that makes a lot of sense.

Re: Climbing Water Edge [Re: hopfel] #338452
08/18/10 11:54
08/18/10 11:54
Joined: Jul 2008
Posts: 168
8
82RJZAE Offline OP
Member
82RJZAE  Offline OP
Member
8

Joined: Jul 2008
Posts: 168
I am having some problems properly tracing both the distance to the wall and the height of the land. Could anyone provide an example of what the c_trace start and target position vectors should look like for both cases?

Re: Climbing Water Edge [Re: 82RJZAE] #338461
08/18/10 13:01
08/18/10 13:01
Joined: Jan 2002
Posts: 300
Usa
Rich Offline
Senior Member
Rich  Offline
Senior Member

Joined: Jan 2002
Posts: 300
Usa
I would use something like this:

If the player is near the top of the water, and is pushing against a wall, the player will perform a hop up pushing him up and out of the water. No traces involved.


A8 com / A7 free
Re: Climbing Water Edge [Re: Rich] #338469
08/18/10 13:49
08/18/10 13:49
Joined: Aug 2008
Posts: 482
B
bart_the_13th Offline
Senior Member
bart_the_13th  Offline
Senior Member
B

Joined: Aug 2008
Posts: 482
You still need trace to measure the height you can climb. Trace when your entity hit the wall.
Code:
fromvec.x = my.ent.z + fcos(my.pan,this_ent_width*2);
fromvec.y = my.ent.z + fsin(my.pan,this_ent_width*2);
fromvec.z = my_ent.z + max_climbable_height;
vec_set(tovec.x, fromvec.x);
c_trace(...);//argh, I forgot what to put here, been a while since I do 3DGS



Re: Climbing Water Edge [Re: bart_the_13th] #338603
08/19/10 14:33
08/19/10 14:33
Joined: Mar 2009
Posts: 146
USA
P
paracharlie Offline
Member
paracharlie  Offline
Member
P

Joined: Mar 2009
Posts: 146
USA
Couldnt you just use 3runs climbing script? Basically this is just the same thing as ledge grabbing.


A8 Commercial

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1