Skip to content

Conversation

@khanghugo
Copy link

Ported from ReGameDLL_CS

Implementation details are here rehlds/ReGameDLL_CS#950

I couldn't get the project to build to test but I am pretty confident that this will just work.

if (!FNullEnt(pentLandmark))
{
Vector diff = pevToucher->origin - VARS(pentLandmark)->origin;
tmp += diff;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dlls/vector.h:

inline Vector operator+=(const Vector& v) { return (*this = *this + v); }

{
if (FStrEq(pkvd->szKeyName, "landmark"))
{
if (Q_strlen(pkvd->szValue) > 0)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are no Q_ wrappers in the project, so:

strlen(pkvd->szValue) > 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants