Editing
CTFSpellBook
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Overview == The spellbook weapon usable by equipping the spellbook magazine or similar reskins is an instance of this class. '''Source location : [https://github.com/sreechar/TF2-Source-Code/blob/master/tf2_src/game/shared/tf/halloween/tf_weapon_spellbook.h /game/shared/tf/halloween/tf_weapon_spellbook.h]''' '''Linked entity : [https://developer.valvesoftware.com/wiki/tf_weapon_spellbook tf_weapon_spellbook]''' ==[[Classes|Class Structure]]== *'''[[CBaseEntity]]''' **'''[[CBaseAnimating]]''' ***'''[[CEconEntity]]''' ****'''[[CBaseCombatWeapon]]''' *****'''[[CTFWeaponBase]]''' ******'''[[CTFWeaponBaseGun]]''' *******'''[[CTFJar]]''' ********'''[[CTFThrowable]]''' *********'''[[CTFSpellBook]]''' == SendProps == {| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0;" |+CTFSpellBook ! style="width: 50%; background-color: #303030; color: white" |Name ! style="width: 15%; background-color: #303030; color: white" |Type ! style="width: 35%; background-color: #303030; color: white" |Description |- | style="width: 50%;" |'''m_iSelectedSpellIndex''' | style="width: 15%;" |Integer | 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) |} {| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0;" ! colspan="1" | Usage |- |It is possible to change this value to change the spell in the spellbook, however there is an important aspect of the functionality of spellbooks to know before using this SendProp. If the spellbook displays the No Spell hud icon, changing the spell through this SendProp will not do anything. This is because m_iSpellCharges is currently 0. For the spell change to take effect, you must also give the spell some charges by setting m_iSpellCharges to something greater than 0. It should also be noted that using up all the charges in a spellbook simply sets m_iSpellCharges to 0, the selected spell is not changed. If you need more spells, all you have to do is set m_iSpellCharges. |} |- | style="width: 50%;" |'''m_iSpellCharges''' | style="width: 15%;" |Integer | style="width: 35%;" |The number of charges the spell has. |- | style="width: 50%;" |'''m_flTimeNextSpell''' | style="width: 15%;" |Float | style="width: 35%;" |A timestamp of when the last spell was cast. |- | style="width: 50%;" |'''m_bFiredAttack''' | style="width: 15%;" |Boolean | style="width: 35%;" |Stores whether or not our spell has just been cast. |}
Summary:
Please note that all contributions to SigMod are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
SigMod:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
British English
Views
Read
Edit
Edit source
View history
More
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information