CTFSpellBook: Difference between revisions

From SigMod
Jump to navigation Jump to search
No edit summary
No edit summary
Line 26: Line 26:
| style="width: 50%;" |'''m_iSelectedSpellIndex'''
| style="width: 50%;" |'''m_iSelectedSpellIndex'''
| style="width: 15%;" |Integer
| style="width: 15%;" |Integer
| style="width: 35%;" |
| style="width: 35%;" |The spell currently stored.
{| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0;"
! colspan="1" | Values
|-
|
[https://wiki.teamfortress.com/wiki/Magic_spells#Regular_Magic_Spells Spell List]
* -2  - Rolling... (Unknown)
* -1  - Empty
*  0  - Fireball
*  1  - Swarm of Bats
*  2  - Overheal
*  3  - Pumpkin MIRV
*  4  - Blast Jump
*  5  - Stealth
*  6  - Shadow Leap
*  7  - Ball O' Lightning (RARE)
*  8  - Minify (RARE)
*  9  - Meteor Shower (RARE)
*  10 - Summon MONOCULUS! (RARE)
*  11 - Skeletons Horde (RARE)
*  12 - Boxing Rocket (BUMPER-CARS)
*  13 - B.A.S.E Jump (BUMPER-CARS)
*  14 - Overheal (BUMPER-CARS)
*  15 - Bomb Head (BUMPER-CARS)
|}
|-
|-
| style="width: 50%;" |'''m_iSpellCharges'''
| style="width: 50%;" |'''m_iSpellCharges'''
| style="width: 15%;" |Integer
| style="width: 15%;" |Integer
| style="width: 35%;" |
| style="width: 35%;" |The number of charges the spell has.
|-
|-
| style="width: 50%;" |'''m_flTimeNextSpell'''
| style="width: 50%;" |'''m_flTimeNextSpell'''

Revision as of 18:24, 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

CTFSpellBook
Name Type Description
m_iSelectedSpellIndex Integer The spell currently stored.
Values

Spell List

  • -2 - Rolling... (Unknown)
  • -1 - Empty
  • 0 - Fireball
  • 1 - Swarm of Bats
  • 2 - Overheal
  • 3 - Pumpkin MIRV
  • 4 - Blast Jump
  • 5 - Stealth
  • 6 - Shadow Leap
  • 7 - Ball O' Lightning (RARE)
  • 8 - Minify (RARE)
  • 9 - Meteor Shower (RARE)
  • 10 - Summon MONOCULUS! (RARE)
  • 11 - Skeletons Horde (RARE)
  • 12 - Boxing Rocket (BUMPER-CARS)
  • 13 - B.A.S.E Jump (BUMPER-CARS)
  • 14 - Overheal (BUMPER-CARS)
  • 15 - Bomb Head (BUMPER-CARS)
m_iSpellCharges Integer The number of charges the spell has.
m_flTimeNextSpell Float
m_bFiredAttack Boolean