CPhysMagnet: Difference between revisions

From SigMod
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 1: Line 1:
== Overview ==
== Overview ==
...
Acts like a magnet, attaching metallic objects when they collide.


'''Source location : [https://github.com/sreechar/TF2-Source-Code/tree/master/tf2_src/game/server/physobj.h /game/server/physobj.h]'''
'''Source location : [https://github.com/sreechar/TF2-Source-Code/tree/master/tf2_src/game/server/physobj.h /game/server/physobj.h]'''

Latest revision as of 20:13, 10 July 2022

Overview[edit | edit source]

Acts like a magnet, attaching metallic objects when they collide.

Source location : /game/server/physobj.h

Linked Entity : phys_magnet

Class Structure[edit | edit source]

Entity DataMaps[edit | edit source]

CPhysMagnet
Name Type Description
InputToggle
InputTurnOff
InputTurnOn
m_MagnettedEntities
m_OnMagnetAttach
m_OnMagnetDetach
m_bActive
m_bHasHitSomething
m_flNextSuckTime
m_flRadius
m_flTotalMass
m_forceLimit
m_iMaxObjectsAttached
m_iszOverrideScript
m_massScale
m_pConstraintGroup
m_torqueLimit