CPropVehicleDriveable: Difference between revisions

From SigMod
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 ==
...
TBD


'''Source location : [https://github.com/sreechar/TF2-Source-Code/tree/master/tf2_src/game/server/vehicle_base.h /game/server/vehicle_base.h]'''
'''Source location : [https://github.com/sreechar/TF2-Source-Code/tree/master/tf2_src/game/server/vehicle_base.h /game/server/vehicle_base.h]'''
Line 83: Line 83:
! style="width: 15%; background-color: #303030; color: white" |Type
! style="width: 15%; background-color: #303030; color: white" |Type
! style="width: 35%; background-color: #303030; color: white" |Description
! style="width: 35%; background-color: #303030; color: white" |Description
|-
| style="width: 50%;" |'''InputAction'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''InputHandBrakeOff'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''InputHandBrakeOn'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
|-
| style="width: 50%;" |'''InputLock'''
| style="width: 50%;" |'''InputLock'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''InputSteering'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''InputThrottle'''
| style="width: 15%;" |
| style="width: 15%;" |
| style="width: 35%;" |
| style="width: 35%;" |
Line 117: Line 97:
|-
|-
| style="width: 50%;" |'''InputUnlock'''
| style="width: 50%;" |'''InputUnlock'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| colspan="3" style="padding: 0; margin: 0;" |
{| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0;"
! colspan="3" |m_VehiclePhysics
|-
| style="width: 50%;" |'''m_actionScale'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_actionSpeed'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_actionValue'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_bIsOn'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_bLastBoost'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_bLastSkid'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_bLastThrottle'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_controls.bHasBrakePedal'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_controls.boost'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_controls.brake'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_controls.brakepedal'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_controls.handbrake'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_controls.handbrakeLeft'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_controls.handbrakeRight'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_controls.steering'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_controls.throttle'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_debugRadius'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_fLastBoost'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_flMaxRevThrottle'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_flMaxSpeed'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_flVehicleVolume'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_maxThrottle'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_nBoostTimeLeft'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_nHasBoost'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_nLastSpeed'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_nRPM'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_nSpeed'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_poseParameters'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_throttleActiveTime'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_throttleRate'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_throttleStartTime'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_turboTimer'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_wheelBaseHeight'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_wheelCount'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_wheelPosition'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_wheelRotation'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_wheelTotalHeight'''
| style="width: 15%;" |
| style="width: 35%;" |
|}
|-
| style="width: 50%;" |'''m_VehiclePhysics.m_pVehicle'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_VehiclePhysics.m_pWheels'''
| style="width: 15%;" |
| style="width: 15%;" |
| style="width: 35%;" |
| style="width: 35%;" |
Line 310: Line 129:
|-
|-
| style="width: 50%;" |'''m_bUnableToFire'''
| style="width: 50%;" |'''m_bUnableToFire'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_flLastPhysicsInfluenceTime'''
| style="width: 15%;" |
| style="width: 15%;" |
| style="width: 35%;" |
| style="width: 35%;" |
Line 334: Line 149:
|-
|-
| style="width: 50%;" |'''m_hNPCDriver'''
| style="width: 50%;" |'''m_hNPCDriver'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_hPhysicsAttacker'''
| style="width: 15%;" |
| style="width: 15%;" |
| style="width: 35%;" |
| style="width: 35%;" |
Line 366: Line 177:
|-
|-
| style="width: 50%;" |'''m_nSpeed'''
| style="width: 50%;" |'''m_nSpeed'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_nVehicleType'''
| style="width: 15%;" |
| style="width: 15%;" |
| style="width: 35%;" |
| style="width: 35%;" |
Line 533: Line 340:
|-
|-
| style="width: 50%;" |'''m_vecGunCrosshair'''
| style="width: 50%;" |'''m_vecGunCrosshair'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_vecSmoothedVelocity'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_vehicleScript'''
| style="width: 15%;" |
| style="width: 15%;" |
| style="width: 35%;" |
| style="width: 35%;" |
|}
|}

Latest revision as of 23:11, 10 August 2022

Overview[edit | edit source]

TBD

Source location : /game/server/vehicle_base.h

Linked Entity : prop_vehicle_driveable

Class Structure[edit | edit source]

SendProps[edit | edit source]

CPropVehicleDriveable
Name Type Description
m_hPlayer Integer
m_nSpeed Integer
m_nRPM Integer
m_flThrottle Float
m_nBoostTimeLeft Integer
m_nHasBoost Boolean
m_nScannerDisabledWeapons Boolean
m_nScannerDisabledVehicle Boolean
m_bEnterAnimOn Boolean
m_bExitAnimOn Boolean
m_bUnableToFire Boolean
m_vecEyeExitEndpoint Vector
m_bHasGun Boolean
m_vecGunCrosshair Vector

Entity DataMaps[edit | edit source]

CPropVehicleDriveable
Name Type Description
InputLock
InputTurnOff
InputTurnOn
InputUnlock
m_attack2axis
m_attackaxis
m_bEngineLocked
m_bEnterAnimOn
m_bExitAnimOn
m_bHasGun
m_bLocked
m_bUnableToFire
m_flMinimumSpeedToEnterExit
m_flThrottle
m_flTurnOffKeepUpright
m_hKeepUpright
m_hNPCDriver
m_hPlayer
m_nBoostTimeLeft
m_nHasBoost
m_nRPM
m_nScannerDisabledVehicle
m_nScannerDisabledWeapons
m_nSpeed
m_pServerVehicle
m_PassengerInfo
m_ViewSmoothing
bRunningEnterExit
bWasRunningAnim
flEnterExitDuration
flEnterExitStartTime
flFOV
vecAngleDiffMin
vecAngleDiffSaved
vecAnglesSaved
vecOriginSaved
m_chPreviousTextureType
m_flSpeedPercentage
m_flTurnDegrees
m_flVehicleVolume
m_hExitBlocker
m_iCurrentExitAnim
m_iSoundGear
m_lastSpeed
m_nNPCButtons
m_nPrevNPCButtons
m_pStateSound
m_pStateSoundFade
m_savedViewOffset
m_soundState
m_soundStateStartTime
m_vecCurrentExitEndPoint
m_vehicleSounds
crashSounds
iszSound
iszStateSounds
minStateTime
pGears
m_playerOff
m_playerOn
m_pressedAttack
m_pressedAttack2
m_vecEyeExitEndpoint
m_vecGunCrosshair