Blockland Forums > Help
How do I stop projectiles from carrying momentum
(1/1)
Snaked_Snake:
The default gun does this, where moving left will fire the bullet a lot more to the left, jumping will move the bullet up more and so on, and I'm wondering how exactly you stop this from happening.
thegoodperry:
It's a field called velInheritFactor or velInherit on the projectile data. Turning it to 0 means that source velocity will not be inherited by the projectile
Darksaber2213:

--- Quote from: thegoodperry on August 01, 2018, 02:56:54 PM ---It's a field called velInheritFactor or velInherit on the projectile data. Turning it to 0 means that source velocity will not be inherited by the projectile

--- End quote ---

Yep, the field is velInheritFactor on the projectile. Setting it to anywhere from 0.1 - 1 will scale the velocity with the players velocity, and setting it to 0 will remove the effect.
Navigation
Message Index

Go to full version