Raised This Month: $ Target: $400
 0% 

Detect rotation of player while in air


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 09-22-2013 , 11:05   Detect rotation of player while in air
Reply With Quote #1

Hello everyone,

I'd like to know if it's possible to detect or get how many circles (360° Degree rotations) or how many degrees a player rotated from the moment he left solid floor until he touches it again. And if so, how to do that.

Greetz,
Kia.
__________________
Kia is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 10-06-2013 , 07:01   Re: Detect rotation of player while in air
Reply With Quote #2

Bump.

I tried to save the current angle at PreThink and then compare with PostThink, but it doesn't always detect 360° Rotations and when you enter a teleporter it counts this as 360° rotation.

Any suggestions for this?
__________________
Kia is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 10-06-2013 , 07:11   Re: Detect rotation of player while in air
Reply With Quote #3

Why don't you reset values @ CTriggerTeleport::TeleportTouch ??
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 10-06-2013 , 07:38   AW: Re: Detect rotation of player while in air
Reply With Quote #4

Quote:
Originally Posted by ConnorMcLeod View Post
Why don't you reset values @ CTriggerTeleport::TeleportTouch ??
I can do that, but the rotation detection doesn't work, because if I move left, the angle is -359.
So one small move would be detected as full circle.
__________________
Kia is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:58.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode