CTFSpellBook: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 58: | Line 58: | ||
| style="width: 50%;" |'''m_flTimeNextSpell''' | | style="width: 50%;" |'''m_flTimeNextSpell''' | ||
| style="width: 15%;" |Float | | style="width: 15%;" |Float | ||
| style="width: 35%;" | | | style="width: 35%;" |A timestamp of when the last spell was cast. | ||
|- | |- | ||
| style="width: 50%;" |'''m_bFiredAttack''' | | style="width: 50%;" |'''m_bFiredAttack''' | ||
| style="width: 15%;" |Boolean | | style="width: 15%;" |Boolean | ||
| style="width: 35%;" | | | style="width: 35%;" |Stores whether or not our spell has just been cast. | ||
|} | |} |
Revision as of 18:36, 10 April 2022
Overview
The spellbook weapon usable by equipping the spellbook magazine or similar reskins is an instance of this class.
Source location : /game/shared/tf/halloween/tf_weapon_spellbook.h
Linked entity : tf_weapon_spellbook
Class Structure
SendProps
Name | Type | Description | ||
---|---|---|---|---|
m_iSelectedSpellIndex | Integer | The spell currently stored.
| ||
m_iSpellCharges | Integer | The number of charges the spell has. | ||
m_flTimeNextSpell | Float | A timestamp of when the last spell was cast. | ||
m_bFiredAttack | Boolean | Stores whether or not our spell has just been cast. |