MCPcopy Create free account
hub / github.com/TurningWheel/Barony / hideShieldFromBasicCast

Method hideShieldFromBasicCast

src/magic/act_HandMagic.cpp:64–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64bool spellcasting_animation_manager_t::hideShieldFromBasicCast()
65{
66 if ( player < 0 || player >= MAXPLAYERS ) { return false; }
67 if ( active )
68 {
69 if ( stage == ANIM_SPELL_TOUCH
70 || stage == ANIM_SPELL_TOUCH_THROW
71 || stage == ANIM_SPELL_TOUCH_CHARGE
72 || stage == ANIM_SPELL_OVERCHARGE_READY
73 || stage == ANIM_SPELL_OVERCHARGE_CHARGE
74 || stage == ANIM_SPELL_OVERCHARGE_THROW )
75 {
76 return false;
77 }
78 return true;
79 }
80 return false;
81}
82
83static ConsoleVariable<int> cvar_vibe_spell_x("/vibe_spell_x", 4000);
84static ConsoleVariable<int> cvar_vibe_spell_y("/vibe_spell_y", 0);

Callers 3

actHudShieldFunction · 0.80
actHudAdditionalFunction · 0.80
actHudArrowModelFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected