CPhysForce: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
== Overview == | == Overview == | ||
A generic base class which implements a force/motion controller. | |||
'''Source location : [https://github.com/sreechar/TF2-Source-Code/blob/master/tf2_src/game/server/phys_controller.cpp /game/server/phys_controller.cpp]''' | '''Source location : [https://github.com/sreechar/TF2-Source-Code/blob/master/tf2_src/game/server/phys_controller.cpp /game/server/phys_controller.cpp]''' | ||
Line 11: | Line 11: | ||
== Entity DataMaps == | == Entity DataMaps == | ||
{| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0; | {| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0; | ||
|+ | |+CPhysForce | ||
! style="width: 50%; background-color: #303030; color: white" |Name | ! style="width: 50%; background-color: #303030; color: white" |Name | ||
! style="width: 15%; background-color: #303030; color: white" |Type | ! style="width: 15%; background-color: #303030; color: white" |Type | ||
Line 33: | Line 33: | ||
|- | |- | ||
| style="width: 50%;" |'''m_attachedObject''' | | style="width: 50%;" |'''m_attachedObject''' | ||
| style="width: 15%;" | | | style="width: 15%;" | | ||
| style="width: 35%;" | | | style="width: 35%;" | |
Latest revision as of 20:15, 10 July 2022
Overview[edit | edit source]
A generic base class which implements a force/motion controller.
Source location : /game/server/phys_controller.cpp
Class Structure[edit | edit source]
- CBaseEntity
- CPointEntity
- CPhysForce
- CPointEntity
Entity DataMaps[edit | edit source]
Name | Type | Description | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
CPhysForceForceOff | ||||||||||||||||||||
InputActivate | ||||||||||||||||||||
InputDeactivate | ||||||||||||||||||||
InputForceScale | ||||||||||||||||||||
m_attachedObject | ||||||||||||||||||||
m_force | ||||||||||||||||||||
m_forceTime | ||||||||||||||||||||
| ||||||||||||||||||||
m_nameAttach | ||||||||||||||||||||
m_pController |