danielmm8888 / TF2Classic

A repo containing the source code for Team Fortress 2 Classic
Other
40 stars 15 forks source link

Return of the airblast #182

Closed NicknineTheEagle closed 8 years ago

NicknineTheEagle commented 8 years ago
NicknineTheEagle commented 8 years ago

And that is one of the main reasons why airblast is hated by some which is why we need to come up with something different

Iamgoofball commented 8 years ago

Or we don't, and go for a 100% accurate to live port first, THEN do changes.

Deathreus commented 8 years ago

Me randomly chipping in: There's a stun flag in TF2 known as LIMITMOVEMENT which disables forward and backwards movement, this is called in the stun event when airblasted so you can only strafe against the velocity. They remove the stun the moment you touch the ground again. From an include file the flag is given (1 << 2)

NicknineTheEagle commented 8 years ago

Hmm, can you explain more on this? Does it just block your forward\back buttons or does it prevent movement in certain directions based on airblast direction?

Deathreus commented 8 years ago

As far as I can tell, it seems to just nullify any forward or backwards velocity you try to make pressing forward or back, but you can still navigate while strafing as if you rocket jumped a small distance.

It has nothing to do with direction of blast, it just prevents you from achieving any momentum with the use of those keys.

But at the same time, you can still use backwards button to stop all velocity if you face the opposite direction you were airblasted, this is how I save myself off cliffs many times. Strafe to the side while making a motion to turn 180 degrees then press backwards and it stops momentum. I'm not sure if it's due to a flaw in code that you can do this, but I know you can not pull the same thing off using forward, it won't work.

NicknineTheEagle commented 8 years ago

I'm thinking of setting up a system that crops player's speed based on angle between his desired movement direction and direction towards airblast so you can still easily move sideways at any point with airstrafing but not towards airblast origin point.