AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Get angles in playbackevent hook (https://forums.alliedmods.net/showthread.php?t=335951)

karaulov 01-16-2022 08:33

Get angles in playbackevent hook
 
I always got zero angles, how to get event angles?

Shadows Adi 01-16-2022 09:50

Re: Get angles in playbackevent hook
 
Quote:

Originally Posted by karaulov (Post 2768563)
event angles?

What?

CrazY. 01-16-2022 10:17

Re: Get angles in playbackevent hook
 
Not possible. Looking through regamedll source, origin and angles are both set to a {0, 0, 0} vector.
TraceAttack is probably always called before PlaybackEvent, what you could do is store the value of direction[3] in a global variable and use it inside PlaybackEvent.

Not sure if this is what you need, you should provide details of what you're trying to do.


All times are GMT -4. The time now is 10:08.

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