AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   how do i slow down player falling speed? (https://forums.alliedmods.net/showthread.php?t=324916)

Grovliom 05-31-2020 17:46

how do i slow down player falling speed?
 
how?

Natsheh 05-31-2020 19:54

Re: how do i slow down player falling speed?
 
either by decreasing his gravity or multiplying his z velocity by a percentage!

Grovliom 05-31-2020 19:56

Re: how do i slow down player falling speed?
 
Quote:

Originally Posted by Natsheh (Post 2703394)
either by decreasing his gravity or multiplying his z velocity by a percentage!

How do i decrease the Z velocity by a percentage?

Natsheh 05-31-2020 20:02

Re: how do i slow down player falling speed?
 
PHP Code:

static Float:fVelo[3];
pev(idpev_velocityfVelo);
fVelo[2] *= 0.5;
set_pev(idpev_velocityfVelo); 

here is a code shows how to decrease [ player index ( id ) ] z velocity. by 50%


All times are GMT -4. The time now is 17:00.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.