MCPcopy Create free account
hub / github.com/crossuo/crossuo / SetAnimation

Method SetAnimation

src/GameObjects/GameCharacter.cpp:449–468  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

447}
448
449void CGameCharacter::SetAnimation(
450 uint8_t id,
451 uint8_t interval,
452 uint8_t frameCount,
453 uint8_t repeatCount,
454 bool repeat,
455 bool frameDirection)
456{
457 AnimationGroup = id;
458 AnimIndex = 0;
459 AnimationInterval = interval;
460 AnimationFrameCount = frameCount;
461 AnimationRepeatMode = repeatCount;
462 AnimationRepeat = repeat;
463 AnimationDirection = frameDirection;
464 AnimationFromServer = false;
465
466 LastAnimationChangeTime = g_Ticks;
467 TimeToRandomFidget = g_Ticks + RANDOM_FIDGET_ANIMATION_DELAY;
468}
469
470void CGameCharacter::ResetAnimationGroup(uint8_t val)
471{

Callers 3

QFORFunction · 0.80
PACKET_HANDLERFunction · 0.80
WalkMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected