Speed when hitting a wall
- pie goes moo
- Round Winner
- Posts: 306
- Joined: Wed Aug 12, 2009 10:42 pm
- Location: San Antonio, Texas, USA
Speed when hitting a wall
Is it possible for me to make it so when you hit an opponents wall you slow down, but not the wall wall?
![Image](http://authorized.webs.com/piegoesmoosigpic.png)
Re: Speed when hitting a wall
Only if you hack it in yourself. Hitting a wall doesn't change your speed (your internal speed. Obviously, it does stop your actual movement.)
- pie goes moo
- Round Winner
- Posts: 306
- Joined: Wed Aug 12, 2009 10:42 pm
- Location: San Antonio, Texas, USA
Re: Speed when hitting a wall
Well, first, you'd need to learn C++ and how to compile Arma on your system. Then, you'll need to find the place where cycles hit walls (it's in gCycleMovement.cpp, there's even a specific point called exactly once in normal circumstances for each wall you hit, the point where rubber just starts getting used; there are some recursive timestep calls there). At that point, you fetch the wall type ahead from the frontal collision data (accessed pretty much everywhere around that code point) and modify the speed accordingly.
- pie goes moo
- Round Winner
- Posts: 306
- Joined: Wed Aug 12, 2009 10:42 pm
- Location: San Antonio, Texas, USA
Re: Speed when hitting a wall
I dont know C++, and I meant in a cfg like CYCLE_RIM or something might have to do with it.
![Image](http://authorized.webs.com/piegoesmoosigpic.png)
-
- Adjust Outside Corner Grinder
- Posts: 2003
- Joined: Tue Nov 07, 2006 6:02 pm
- Location: paris
- Contact:
Re: Speed when hitting a wall
Z-Man wrote:Only if you hack it in yourself.
- pie goes moo
- Round Winner
- Posts: 306
- Joined: Wed Aug 12, 2009 10:42 pm
- Location: San Antonio, Texas, USA
- pie goes moo
- Round Winner
- Posts: 306
- Joined: Wed Aug 12, 2009 10:42 pm
- Location: San Antonio, Texas, USA
Re: Speed when hitting a wall
NOTE: THIS IS VERY POSSIBLE!!!
use the command cycle_accel_enemy and set it to a negative number!
(sorry about the caps
)
use the command cycle_accel_enemy and set it to a negative number!
(sorry about the caps
![Smile :)](./images/smilies/icon_smile.gif)
![Image](http://authorized.webs.com/piegoesmoosigpic.png)
Re: Speed when hitting a wall
Well, that doesn't change the speed on hitting the wall, it changes the speed on grinding a wall. But if that's what you want, fine by me.
- pie goes moo
- Round Winner
- Posts: 306
- Joined: Wed Aug 12, 2009 10:42 pm
- Location: San Antonio, Texas, USA