Skip to content

CNavPathCostForTests

CS2 build 27045800 · Steam date 2026-11-30 · platform windows-x86_64 · cs2_schema.json

Kind: classSize: 72 bytes (0x48)Alignment: 8 bytesModule: serverBinary: !GlobalTypes

Relationships

Inherits from: CNavPathCost

Inheritance tree
Relationship diagram (2 edges)
classDiagram
    INavPathCost <|-- CNavPathCost
    CNavPathCost <|-- CNavPathCostForTests
Inheritance chain, direct subclasses (up to 20) and a few composition edges

Memory layout

13 fields, 0 declared here and 13 inherited. Offsets are absolute from the object base on windows-x86_64.

INavPathCostCNavPathCost

OffsetFieldTypeFromAnnotations
0x8m_navHullNavHull_tINavPathCost
0x10m_bAllowLaddersboolCNavPathCost
0x11m_bCanFlyboolCNavPathCost
0x12m_bCanSwimboolCNavPathCost
0x14m_flWaterToGroundMaxHeightfloat32CNavPathCost
0x18m_flGroundToWaterMaxHeightfloat32CNavPathCost
0x1cm_flGroundToWaterTransitionDistancefloat32CNavPathCost
0x20m_flWaterToGroundTransitionDistancefloat32CNavPathCost
0x24m_flFlyingTransitionTolerancefloat32CNavPathCost
0x28m_bOptimizeFlySpacePathfindsboolCNavPathCost
0x29m_bStringPullFlySpacePathfindsboolCNavPathCost
0x2am_bSupportsTransitionsboolCNavPathCost
0x2cm_flTransitionPenaltyfloat32CNavPathCost
KV3 class defaults
{
	"_class": "CNavPathCostForTests",
	"m_navHull":
	{
		"m_nHullIdx": 0
	},
	"m_bAllowLadders": true,
	"m_bCanFly": false,
	"m_bCanSwim": false,
	"m_flWaterToGroundMaxHeight": 100.000000,
	"m_flGroundToWaterMaxHeight": 100.000000,
	"m_flGroundToWaterTransitionDistance": -1.000000,
	"m_flWaterToGroundTransitionDistance": -1.000000,
	"m_flFlyingTransitionTolerance": 140.000000,
	"m_bOptimizeFlySpacePathfinds": true,
	"m_bStringPullFlySpacePathfinds": false,
	"m_bSupportsTransitions": false,
	"m_flTransitionPenalty": 200.000000
}