Download scripts/3_Game/DayZ/GUI/Effects/Rotator.c from FelonieZ/DayZ_Scripts: direct link, hf CLI and curl.
- Browser
- Download file 627 Bytes
-
https://huggingface.co/datasets/FelonieZ/DayZ_Scripts/resolve/main/scripts/3_Game/DayZ/GUI/Effects/Rotator.c
- Command line
-
hf download hf://datasets/FelonieZ/DayZ_Scripts/scripts/3_Game/DayZ/GUI/Effects/Rotator.c
-
curl -L -o Rotator.c https://huggingface.co/datasets/FelonieZ/DayZ_Scripts/resolve/main/scripts/3_Game/DayZ/GUI/Effects/Rotator.c
627 Bytes
| // ----------------------------------------------------------- | |
| class Rotator | |
| { | |
| reference float speed; | |
| protected Widget m_root; | |
| protected ref AnimatorTimer m_anim; | |
| // ----------------------------------------------------------- | |
| void Rotator() | |
| { | |
| m_anim = new AnimatorTimer(); | |
| } | |
| // ----------------------------------------------------------- | |
| protected void Update() | |
| { | |
| if (m_root) | |
| { | |
| m_root.SetRotation(0, 0, m_anim.GetTargetValue() * Math.RAD2DEG); | |
| } | |
| } | |
| // ----------------------------------------------------------- | |
| void OnWidgetScriptInit(Widget w) | |
| { | |
| m_root = w; | |
| m_anim.AnimateLoop(speed); | |
| } | |
| }; |