Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (AndrewAMD), 14,661 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
How can I make climbing big hills hard on a terrain?(FPS Game) #253986
02/28/09 08:38
02/28/09 08:38
Joined: Jul 2008
Posts: 23
Turkey
H
Hatean Offline OP
Newbie
Hatean  Offline OP
Newbie
H

Joined: Jul 2008
Posts: 23
Turkey
I am working on a FPS player code. And I coded almost everything it needs but I got a problem which is:
When player walks on a terrain, because of GLIDE, player walks so easily on the world even climbing very big hills. It should be harder and sometimes it should be impossible, player shoudln't be able to climb that big hills. How can I do that?

Waiting for help, thanks...


The Life Game is disgustingly bad but the graphics and reality are extremely cool...
Re: How can I make climbing big hills hard on a terrain?(FPS Game) [Re: Hatean] #253988
02/28/09 09:08
02/28/09 09:08
Joined: Jan 2003
Posts: 4,615
Cambridge
Joey Offline
Expert
Joey  Offline
Expert

Joined: Jan 2003
Posts: 4,615
Cambridge
have a look at disable_z_glide, move_min_z and move_friction.

Re: How can I make climbing big hills hard on a terrain?(FPS Game) [Re: Joey] #253994
02/28/09 09:45
02/28/09 09:45
Joined: Jul 2008
Posts: 23
Turkey
H
Hatean Offline OP
Newbie
Hatean  Offline OP
Newbie
H

Joined: Jul 2008
Posts: 23
Turkey
Hmm, I didn't know these, thanks! But I tried them and couldn't get them to work. My code is:
Code:
move_min_z = 1;
move_friction = 1;
c_move(player,HAREKET,nullvector,IGNORE_PASSABLE|GLIDE|USE_AABB);
Player can still run through big hills with that code smirk


The Life Game is disgustingly bad but the graphics and reality are extremely cool...
Re: How can I make climbing big hills hard on a terrain?(FPS Game) [Re: Hatean] #254012
02/28/09 12:45
02/28/09 12:45
Joined: Jan 2003
Posts: 4,615
Cambridge
Joey Offline
Expert
Joey  Offline
Expert

Joined: Jan 2003
Posts: 4,615
Cambridge
don't use aabb collision detection.

Re: How can I make climbing big hills hard on a terrain?(FPS Game) [Re: Joey] #254156
03/01/09 13:43
03/01/09 13:43
Joined: Jul 2008
Posts: 23
Turkey
H
Hatean Offline OP
Newbie
Hatean  Offline OP
Newbie
H

Joined: Jul 2008
Posts: 23
Turkey
Allright, I tried without USE_AABB but still the same result smirk They don't effect in any way...


The Life Game is disgustingly bad but the graphics and reality are extremely cool...
Re: How can I make climbing big hills hard on a terrain?(FPS Game) [Re: Hatean] #254162
03/01/09 14:02
03/01/09 14:02
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
Try having a look at this thread. It may give some ideas or answers.
Here


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial
Re: How can I make climbing big hills hard on a terrain?(FPS Game) [Re: EvilSOB] #254164
03/01/09 14:26
03/01/09 14:26
Joined: Jul 2008
Posts: 23
Turkey
H
Hatean Offline OP
Newbie
Hatean  Offline OP
Newbie
H

Joined: Jul 2008
Posts: 23
Turkey
Thanks for the idea, I tried that:
Code:
...
ANGLE a;
c_trace(player.x,my.x,IGNORE_ME);
vec_to_angle(a,normal);
...

me : It is a little object that always in front of player(almost 70 quants away). And I am getting the second c_trace vector from it's coordinates.So, player sends a beam 70 quants away.

I wrote a on a panel. But it returns always big values. And sometimes the numbers it returned don't make any sense. smirk

Last edited by Hatean; 03/01/09 14:43.

The Life Game is disgustingly bad but the graphics and reality are extremely cool...
Re: How can I make climbing big hills hard on a terrain?(FPS Game) [Re: Hatean] #254184
03/01/09 16:48
03/01/09 16:48
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
Ive never used this but leave your panel showing "a.tilt"
but slot in this line before the displays...
a.tilt = cycle(a.tilt, -90, 90);
If I understand 'c_trace' and 'normal' and 'vec_to_angle' correctly,
"a.tilt" is 45 = 45 degree slope away from player
"a.tilt" is 00 = flat wall-like structure.
"a.tilt" is -45 = 45 degree slope toward player (overhanging cliff)
I may have the calculations out by 90 degrees though.


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial
Re: How can I make climbing big hills hard on a terrain?(FPS Game) [Re: EvilSOB] #254188
03/01/09 16:56
03/01/09 16:56
Joined: Sep 2003
Posts: 929
Spirit Offline

Moderator
Spirit  Offline

Moderator

Joined: Sep 2003
Posts: 929
Have you tried the standard walk code from the manual? I think it makes the player slower on steep hills, when you adjust that parameter you can also make the player stop when the hill it too steep.


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

Gamestudio download | 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