Speed when hitting a wall

Post here if you need help setting up your server, etc.
Post Reply
User avatar
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

Post by pie goes moo »

Is it possible for me to make it so when you hit an opponents wall you slow down, but not the wall wall?
Image
User avatar
Z-Man
God & Project Admin
Posts: 11589
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Re: Speed when hitting a wall

Post by Z-Man »

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.)
User avatar
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

Post by pie goes moo »

And how do I do that?
Image
User avatar
Z-Man
God & Project Admin
Posts: 11589
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Re: Speed when hitting a wall

Post by Z-Man »

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.
User avatar
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

Post by pie goes moo »

I dont know C++, and I meant in a cfg like CYCLE_RIM or something might have to do with it.
Image
epsy
Adjust Outside Corner Grinder
Posts: 2003
Joined: Tue Nov 07, 2006 6:02 pm
Location: paris
Contact:

Re: Speed when hitting a wall

Post by epsy »

Z-Man wrote:Only if you hack it in yourself.
User avatar
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

Post by pie goes moo »

Oh, OK. Thanks anyway!
Image
User avatar
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

Post by pie goes moo »

NOTE: THIS IS VERY POSSIBLE!!!
use the command cycle_accel_enemy and set it to a negative number!
(sorry about the caps :) )
Image
User avatar
Z-Man
God & Project Admin
Posts: 11589
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Re: Speed when hitting a wall

Post by Z-Man »

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.
User avatar
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

Post by pie goes moo »

Grinding is what I meant.
Image
Post Reply