Raised This Month: $ Target: $400
 0% 

Conservation of Momentum fix 1.0.1 - Elevators fix


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Plugin Info:     Modification:   ALL        Category:   Gameplay       
Kidev
Veteran Member
Join Date: Jun 2010
Location: France
Old 11-02-2014 , 10:48   Conservation of Momentum fix 1.0.1 - Elevators fix
Reply With Quote #1

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:
new const giAxis] = { 00}; 
by
PHP Code:
new const giAxis] = { 11}; 
Known bugs:

- If you jump quickly in a moving entity (bhop), some jumps may still be bugged.


Changelog:

Code:
v1.0.1  @ 02/11/14
* Code optimized 
v1.0.0  @ 02/11/14
^ First public release
Credits:

HamletEagle - For some optimizations
fysiks - For some optimizations


Current version (stable):
Attached Files
File Type: sma Get Plugin or Get Source (momentumfix_1.0.1.sma - 644 views - 1.3 KB)

Last edited by Kidev; 11-20-2014 at 19:01.
Kidev is offline
 



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 02:00.


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