SHARE
TWEET

Untitled

a guest Sep 9th, 2016 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void CCharacter::OutputAllFG()
  2. {
  3.     OutputFG_IsGrouded(m_pMovement->IsOnGround());
  4.     OutputFG_Direction(m_pMovement->GetLocalMoveDirection());
  5.     OutputFG_EntityId(GetEntityId());
  6.    
  7.     if (lastSpeed > 0.01f)
  8.         OutputFG_IsMove();
  9.  
  10.     OutputFG_Speed(lastSpeed);
  11. }
  12.  
  13. void CCharacter::OutputFG_IsMove()
  14. {
  15.     TFlowInputData data;
  16.     data.SetUserFlag(true);
  17.     ActivateFlowNodeOutput(eOutputPort_IsMove, data);
  18. }
  19.  
  20. void CCharacter::OutputFG_Speed(float value)
  21. {
  22.     TFlowInputData data;
  23.     data.SetUserFlag(true);
  24.     data.Set<float>(value);
  25.     ActivateFlowNodeOutput(eOutputPort_Speed, data);
  26. }
  27.  
  28. void CCharacter::OutputFG_EntityId(EntityId value)
  29. {
  30.     TFlowInputData data;
  31.     data.SetUserFlag(true);
  32.     data.Set<EntityId>(value);
  33.     ActivateFlowNodeOutput(eOutputPort_EntityId, data);
  34. }
  35.  
  36. void CCharacter::OutputFG_Direction(Vec3 value)
  37. {
  38.     TFlowInputData data;
  39.     data.SetUserFlag(true);
  40.     data.Set<Vec3>(value);
  41.     ActivateFlowNodeOutput(eOutputPort_Direction, data);
  42. }
  43.  
  44. void CCharacter::OutputFG_IsGrouded(bool value)
  45. {
  46.     TFlowInputData data;
  47.     data.SetUserFlag(true);
  48.     data.Set<bool>(value);
  49.     ActivateFlowNodeOutput(eOutputPort_IsGrounded, data);
  50. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top