CPhysicsProp: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{{CD|CPhysicsProp|file1=1}}
{{CD|CPhysicsProp|file1=1}}
{{Linked entities|prop_physics|physics_prop|prop_physics_override}}
{{Linked entities|prop_physics|physics_prop|prop_physics_override}}
== Fields ==
{{DEFINE_FIELD|m_bThrownByPlayer|FIELD_BOOLEAN}}
{{DEFINE_FIELD|m_bFirstCollisionAfterLaunch|FIELD_BOOLEAN}}
{{DEFINE_FIELD|m_bAwake|FIELD_BOOLEAN}}
=== Keyfields ===
{{DEFINE_KEYFIELD|m_massScale|FIELD_FLOAT|massscale}}
{{DEFINE_KEYFIELD|m_inertiaScale|FIELD_FLOAT|inertiascale}}
{{DEFINE_KEYFIELD|m_damageType|FIELD_INTEGER|Damagetype}}
{{DEFINE_KEYFIELD|m_iszOverrideScript|FIELD_STRING|overridescript}}
{{DEFINE_KEYFIELD|m_damageToEnableMotion|FIELD_INTEGER|damagetoenablemotion}}
{{DEFINE_KEYFIELD|m_flForceToEnableMotion|FIELD_FLOAT|forcetoenablemotion}}
=== Input functions ===
{{DEFINE_INPUTFUNC|FIELD_VOID|EnableMotion|InputEnableMotion}}
{{DEFINE_INPUTFUNC|FIELD_VOID|DisableMotion|InputDisableMotion}}
{{DEFINE_INPUTFUNC|FIELD_VOID|Wake|InputWake}}
{{DEFINE_INPUTFUNC|FIELD_VOID|Sleep|InputSleep}}
{{DEFINE_INPUTFUNC|FIELD_VOID|DisableFloating|InputDisableFloating}}
<!-- === Outputs ===  DEFINE_OUTPUT
{{O|m_OnAwakened|OnAwakened}}
{{O|m_MotionEnabled|OnMotionEnabled}}
{{O|m_OnPhysGunPickup|OnPhysGunPickup}}
{{O|m_OnPhysGunOnlyPickup|OnPhysGunOnlyPickup}}
{{O|m_OnPhysGunPunt|OnPhysGunPunt}}
{{O|m_OnPhysGunDrop|OnPhysGunDrop}}
{{O|m_OnPlayerUse|OnPlayerUse}}
{{O|m_OnPlayerPickup|OnPlayerPickup}}
{{O|m_OnOutOfWorld|OnOutOfWorld}}-->
=== Think function ===
{{DEFINE_FIELD|FIELD_VOID|ClearFlagsThink}} <!-- DEFINE_THINKFUNC -->

Revision as of 08:25, 20 September 2024

C++ Class hierarchy
CPhysicsProp
CBreakableProp
CBaseProp
CBaseAnimating
CBaseEntity
C++ props.cpp

Entities linked to this class

Fields

m_bThrownByPlayer <FIELD_BOOLEAN>

m_bFirstCollisionAfterLaunch <FIELD_BOOLEAN>

m_bAwake <FIELD_BOOLEAN>


Keyfields

m_massScale <FIELD_FLOAT> (massscale)

m_inertiaScale <FIELD_FLOAT> (inertiascale)

m_damageType <FIELD_INTEGER> (Damagetype)

m_iszOverrideScript <FIELD_STRING> (overridescript)

m_damageToEnableMotion <FIELD_INTEGER> (damagetoenablemotion)

m_flForceToEnableMotion <FIELD_FLOAT> (forcetoenablemotion)


Input functions

EnableMotion <FIELD_VOID> linked function: InputEnableMotion

description todo

DisableMotion <FIELD_VOID> linked function: InputDisableMotion

description todo

Wake <FIELD_VOID> linked function: InputWake

description todo

Sleep <FIELD_VOID> linked function: InputSleep

description todo

DisableFloating <FIELD_VOID> linked function: InputDisableFloating

description todo


Think function

FIELD_VOID <ClearFlagsThink>