AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How does cs handle player jumping, landing and moving (https://forums.alliedmods.net/showthread.php?t=334435)

AnimalMonster 09-24-2021 03:51

How does cs handle player jumping, landing and moving
 
Title says it all, i'm curious about this because i want to remake those things in amxx. I want to make a amxx plugin which controls the velocity making it's oen system and any velocity from cs to be fully ignored but i would need the recreate those things too

HamletEagle 09-24-2021 05:56

Re: How does cs handle player jumping, landing and moving
 
Your question is very broad, try to ask something more focused.

If you want to know how to make an entity jump, you have to give it some velocity on the Z axis. Then, gravity will slow it down eventually and it will land back on the ground.

DJEarthQuake 09-24-2021 08:51

Re: How does cs handle player jumping, landing and moving
 
Quote:

Originally Posted by AnimalMonster (Post 2758714)
Title says it all, i'm curious about this because i want to remake those things in amxx. I want to make a amxx plugin which controls the velocity making it's oen system and any velocity from cs to be fully ignored but i would need the recreate those things too

Actively search. Bhop abilities plugin is worth expanding your knowledge.

AnimalMonster 09-24-2021 13:29

Re: How does cs handle player jumping, landing and moving
 
Quote:

Originally Posted by HamletEagle (Post 2758728)
Your question is very broad, try to ask something more focused.

If you want to know how to make an entity jump, you have to give it some velocity on the Z axis. Then, gravity will slow it down eventually and it will land back on the ground.

I know but i was thinking on something more efficient, not just the jump, if you run into a wall or jump while moving into a wall the x and y velocity gets affected and i want the stafes to also be possible.

Quote:

Originally Posted by DJEarthQuake (Post 2758752)
Actively search. Bhop abilities plugin is worth expanding your knowledge.

I know about those but didn't look too much since i already know what to do and how to do here, the only thing i need to know is how cs actually performs the jump, how it reacts to landing (since you get slowed down after you land and that's why, i wanted to know this too) and how cs calculates the direction the player is going to.

jimaway 09-24-2021 17:18

Re: How does cs handle player jumping, landing and moving
 
https://github.com/FWGS/hlsdk-xash3d...ed/pm_shared.c


All times are GMT -4. The time now is 11:36.

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