Conservation of Momentum fix 1.0.1 - Elevators fix
1 Attachment(s)
Conservation of Momentum Fix - v1.0.1 by Kidev
A simple physic fix Description: Tired of getting fall damage because you jumped in an elevator? In real life, jumping in an elevator moving down or up at a constant speed will be the same as if you jumped on the floor. But in Gold Src games, it's bugged. This plugin simply fixes it. Note: - In some Gold Src games (like Opposing Force, in the monorail for exemple), jumping while you're in an entity moving forward will push you back. To fix this, simply replace in the source code PHP Code:
PHP Code:
- If you jump quickly in a moving entity (bhop), some jumps may still be bugged. Changelog: Code:
v1.0.1 @ 02/11/14 HamletEagle - For some optimizations fysiks - For some optimizations Current version (stable): |
Re: Conservation of Momentum Fix
This remind me about Physic subject in secondary school.
Quote:
Nice, -Kid-. |
Re: Conservation of Momentum Fix
You picked a nice issue. Good job. Keep working on it.
|
Re: Conservation of Momentum Fix
Code:
Code:
Also you should check if AMXX_VERSION_NUM < 183 and define MAX_PLAYERS. GoldSrc engine has some bugs, glad to see that there are peoples which try to fix them. |
Re: Conservation of Momentum Fix
Thank you all!
Quote:
|
Re: Conservation of Momentum Fix
Quote:
In this case, you can simply do this: Code:
entity_get_vector(iEnt, EV_VEC_velocity, flEntPlayerIsOnSpeed); |
Re: Conservation of Momentum Fix
Here it is, updated.
|
Re: Conservation of Momentum Fix
Quote:
|
Re: Conservation of Momentum fix 1.0.1 - Elevators fix
Array assignment is valid when both arrays have the same size. This is just another compiler tip among others.
|
Re: Conservation of Momentum fix 1.0.1 - Elevators fix
Ok it's good to know! But it wasn't needed here finally since the method I used was redundant. I changed it.
|
All times are GMT -4. The time now is 16:02. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.