AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Detect rotation of player while in air (https://forums.alliedmods.net/showthread.php?t=226754)

Kia 09-22-2013 11:05

Detect rotation of player while in air
 
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 10-06-2013 07:01

Re: Detect rotation of player while in air
 
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?

ConnorMcLeod 10-06-2013 07:11

Re: Detect rotation of player while in air
 
Why don't you reset values @ CTriggerTeleport::TeleportTouch ??

Kia 10-06-2013 07:38

AW: Re: Detect rotation of player while in air
 
Quote:

Originally Posted by ConnorMcLeod (Post 2045738)
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.


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

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