Download scripts/3_Game/DayZ/Systems/Inventory/HandStableState.c from FelonieZ/DayZ_Scripts: direct link, hf CLI and curl.
- Browser
- Download file 886 Bytes
-
https://huggingface.co/datasets/FelonieZ/DayZ_Scripts/resolve/main/scripts/3_Game/DayZ/Systems/Inventory/HandStableState.c
- Command line
-
hf download hf://datasets/FelonieZ/DayZ_Scripts/scripts/3_Game/DayZ/Systems/Inventory/HandStableState.c
-
curl -L -o HandStableState.c https://huggingface.co/datasets/FelonieZ/DayZ_Scripts/resolve/main/scripts/3_Game/DayZ/Systems/Inventory/HandStableState.c
886 Bytes
| /**@class HandStableState | |
| * @brief represents stable state (i.e. the basic states that the fsm will spend the most time in) | |
| **/ | |
| class HandStableState extends HandStateBase | |
| { | |
| int m_AnimState; | |
| void HandStableState (Man player = NULL, HandStateBase parent = NULL, int anim_state = -1) { m_AnimState = anim_state; } | |
| void SyncAnimState () { } | |
| override void OnEntry (HandEventBase e) | |
| { | |
| super.OnEntry(e); | |
| SyncAnimState(); | |
| //m_weapon.OnStableStateEntry(); | |
| } | |
| override void OnUpdate (float dt) | |
| { | |
| super.OnUpdate(dt); | |
| SyncAnimState(); | |
| } | |
| override void OnAbort (HandEventBase e) | |
| { | |
| super.OnAbort(e); | |
| } | |
| override void OnExit (HandEventBase e) | |
| { | |
| //m_weapon.ResetWeaponAnimState(); | |
| super.OnExit(e); | |
| } | |
| override bool IsIdle () { return true; } | |
| int GetCurrentStateID () { return 0; } | |
| /// query for entity in hands | |
| bool HasEntityInHands () { return false; } | |
| }; | |