Update CUserCmd class (#346)

Add missing fields to class `CUserCmd`.
This commit is contained in:
A1m` 2025-10-23 09:26:17 +07:00 committed by GitHub
parent 36fea391de
commit 72b927a0a4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -55,9 +55,15 @@ public:
mousedy = 0;
hasbeenpredicted = false;
#if defined( HL2_DLL ) || defined( HL2_CLIENT_DLL )
entitygroundcontact.RemoveAll();
#endif
// TrackIR
headangles.Init();
headoffset.Init();
// TrackIR
}
CUserCmd& operator =( const CUserCmd& src )
@ -85,6 +91,11 @@ public:
entitygroundcontact = src.entitygroundcontact;
#endif
// TrackIR
headangles = src.headangles;
headoffset = src.headoffset;
// TrackIR
return *this;
}
@ -152,6 +163,10 @@ public:
CUtlVector< CEntityGroundContact > entitygroundcontact;
#endif
// TrackIR
QAngle headangles;
Vector headoffset;
// TrackIR
};
void ReadUsercmd( bf_read *buf, CUserCmd *move, CUserCmd *from );