Raised This Month: $12 Target: $400
 3% 

How does cs handle player jumping, landing and moving


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
AnimalMonster
Senior Member
Join Date: May 2020
Old 09-24-2021 , 03:51   How does cs handle player jumping, landing and moving
Reply With Quote #1

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

Last edited by AnimalMonster; 09-24-2021 at 03:54.
AnimalMonster is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 09-24-2021 , 05:56   Re: How does cs handle player jumping, landing and moving
Reply With Quote #2

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.
__________________
HamletEagle is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 09-24-2021 , 08:51   Re: How does cs handle player jumping, landing and moving
Reply With Quote #3

Quote:
Originally Posted by AnimalMonster View Post
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.
__________________
DJEarthQuake is offline
AnimalMonster
Senior Member
Join Date: May 2020
Old 09-24-2021 , 13:29   Re: How does cs handle player jumping, landing and moving
Reply With Quote #4

Quote:
Originally Posted by HamletEagle View Post
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 View Post
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.

Last edited by AnimalMonster; 09-24-2021 at 14:07.
AnimalMonster is offline
jimaway
Heeeere's Jimmy!
Join Date: Jan 2009
Location: Estonia
Old 09-24-2021 , 17:18   Re: How does cs handle player jumping, landing and moving
Reply With Quote #5

https://github.com/FWGS/hlsdk-xash3d...ed/pm_shared.c
jimaway is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:24.


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