Editing CBaseCombatCharacter

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.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 3: Line 3:


'''Source Location : [https://github.com/sreechar/TF2-Source-Code/blob/master/tf2_src/game/server/basecombatcharacter.h /game/server/basecombatcharacter.h]'''
'''Source Location : [https://github.com/sreechar/TF2-Source-Code/blob/master/tf2_src/game/server/basecombatcharacter.h /game/server/basecombatcharacter.h]'''
'''VScript : [https://developer.valvesoftware.com/wiki/Team_Fortress_2/Scripting/Script_Functions#CBaseCombatCharacter Script_Functions#CBaseCombatCharacter]'''


==[[Classes|Class Structure]]==
==[[Classes|Class Structure]]==
Line 31: Line 29:
| style="width: 15%;" |Float
| style="width: 15%;" |Float
| style="width: 35%;" |A timestamp for when this entity is ready to attack. (Weapon switches modify this time.)
| style="width: 35%;" |A timestamp for when this entity is ready to attack. (Weapon switches modify this time.)
|-
| colspan="3" style="padding: 0 auto; margin: 0 auto;" |
{| class="wikitable" style="margin: 0 auto; width: 100%; padding: 0;"
! colspan="3" style="background-color: rgb(45, 62, 97)" |
|}
|}
|}
|-
|-
Line 237: Line 230:
|Integer
|Integer
|
|
|-
| colspan="3" style="padding: 0 auto; margin: 0 auto;" |
{| class="wikitable" style="margin: 0 auto; width: 100%; padding: 0;"
! colspan="3" style="background-color: rgb(45, 62, 97)" |
|}
|}
|}
|}
|}
Line 253: Line 241:
|-
|-
| style="width: 50%;" |'''InputKilledNPC'''
| style="width: 50%;" |'''InputKilledNPC'''
| style="width: 15%;" |Input (Void)
| style="width: 15%;" |
| style="width: 35%;" |
| style="width: 35%;" |
|-
|-
Line 303: Line 291:
|-
|-
| style="width: 50%;" |'''m_bForceServerRagdoll'''
| style="width: 50%;" |'''m_bForceServerRagdoll'''
| style="width: 15%;" |Boolean
| style="width: 15%;" |Bool
| style="width: 35%;" |
| style="width: 35%;" |
|-
|-
Line 337: Line 325:
| style="width: 50%;" |'''m_flDamageAccumulator'''
| style="width: 50%;" |'''m_flDamageAccumulator'''
| style="width: 15%;" |Float
| style="width: 15%;" |Float
| style="width: 35%;" |So very small amounts of damage do not get lost.
| style="width: 35%;" |
|-
|-
| style="width: 50%;" |'''m_flFieldOfView'''
| style="width: 50%;" |'''m_flFieldOfView'''
Line 357: Line 345:
| style="width: 50%;" |'''m_iAmmo'''
| style="width: 50%;" |'''m_iAmmo'''
| style="width: 15%;" |Array (Integer)
| style="width: 15%;" |Array (Integer)
| style="width: 35%;" |Array of ammo amounts for each ammo type
| style="width: 35%;" |
{| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0;"
! colspan="1" |Values
|-
|
[https://github.com/sr2echa/TF2-Source-Code/blob/master/tf2_src/game/shared/tf/tf_shareddefs.h#L351 /game/shared/tf/tf_shareddefs.h#L351]
* <span style="color: #66b1fa">0</span> - TF_AMMO_DUMMY
* <span style="color: #66b1fa">1</span> - TF_AMMO_PRIMARY
* <span style="color: #66b1fa">2</span> - TF_AMMO_SECONDARY
* <span style="color: #66b1fa">3</span> - TF_AMMO_METAL
* <span style="color: #66b1fa">4</span> - TF_AMMO_GRENADES1 (Sandman / Wrap Assassin balls)
* <span style="color: #66b1fa">5</span> - TF_AMMO_GRENADES2 (Cleavers)
* <span style="color: #66b1fa">6</span> - TF_AMMO_GRENADES3
* <span style="color: #66b1fa">7</span> - TF_AMMO_COUNT
|}
|-
|-
| style="width: 50%;" |'''m_iDamageCount'''
| style="width: 50%;" |'''m_iDamageCount'''
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)