Env gravity: Difference between revisions
Jump to navigation
Jump to search
Bug:Value 248 and lower breaks player's jump. It feels like player's jump is too low. [todo tested in ?]
Note:Even with 0, player's sliding speed has a limit, but only if player is standing. With crouch you can achieve high speed.
Note:With 0 value, physics objects in sleep state push player away. Moving physics objects kills player with a high chance.
No edit summary |
MyGamepedia (talk | contribs) (→Inputs) |
||
Line 6: | Line 6: | ||
==Inputs== | ==Inputs== | ||
{{IO|SetGravity|param=integer|Set {{code|sv_gravity}} to specific amount. Value in xen levels is 420. Value in earthbound levels is 600 (the default value). | {{IO|SetGravity|param=integer|Set {{code|sv_gravity}} to specific amount. Value in xen levels is 420. Value in earthbound levels is 600 (the default value).}} | ||
{{bug|Value 248 and lower breaks player's jump. It feels like player's jump is too low. | {{bug|Value 248 and lower breaks player's jump. It feels like player's jump is too low.}} | ||
[https://www.youtube.com/watch?v=xegwv1l9q10 Example] of the bug. | |||
{{IO|SetFriction|param=integer|Set {{code|sv_friction}} to specific amount. With 0 player will slide endlessly. High values will hinder players movement, making them slower. The default value is 4.}} | |||
{{IO|SetFriction|param=integer|Set {{code|sv_friction}} to specific amount. With 0 player will slide endlessly. High values will hinder players movement, making them slower. The default value is 4. | |||
{{note|Even with 0, player's sliding speed has a limit, but only if player is standing. With crouch you can achieve high speed.}} | {{note|Even with 0, player's sliding speed has a limit, but only if player is standing. With crouch you can achieve high speed.}} | ||
{{note|With 0 value, physics objects in sleep state push player away. Moving physics objects | {{note|With 0 value, physics objects in sleep state push player away. Moving physics objects kills player with a high chance.}} | ||
[https://www.youtube.com/watch?v=Ohp0E7s7UaU Example] of the bug. | |||
{{IO|SetFallDamageScale|param=float|Set {{code|sv_falldamagescale}} to specific amount. Value in xen levels is 0, so, player even don't need [[Item longjump|longjump module]] to escape fall damage in xen. Value in earthbound levels is 1 (the default value). With 355.2 value, player will die in any case if take fall damage.}} | {{IO|SetFallDamageScale|param=float|Set {{code|sv_falldamagescale}} to specific amount. Value in xen levels is 0, so, player even don't need [[Item longjump|longjump module]] to escape fall damage in xen. Value in earthbound levels is 1 (the default value). With 355.2 value, player will die in any case if take fall damage.}} | ||
Revision as of 04:00, 23 June 2024
env_gravity
is a point entity available in Black Mesa. This entity manage gravity, friction and fall damage scale. Affects globally for all clients/players and doesn't affects for other objects (physics objects, NPCs, e. t. c.). Used in xen levels from the original campaign to disable fall damage and set player's gravity to the slightly lower gravity value than in earthbound levels.
Keyvalues
Inputs
- SetGravity <integer >
- Set sv_gravity to specific amount. Value in xen levels is 420. Value in earthbound levels is 600 (the default value).

Example of the bug.
- SetFriction <integer >
- Set sv_friction to specific amount. With 0 player will slide endlessly. High values will hinder players movement, making them slower. The default value is 4.


Example of the bug.
- SetFallDamageScale <float >
- Set sv_falldamagescale to specific amount. Value in xen levels is 0, so, player even don't need longjump module to escape fall damage in xen. Value in earthbound levels is 1 (the default value). With 355.2 value, player will die in any case if take fall damage.