Add and track new player entity field '.score'. Used to trag score points separate from frags.
This commit is contained in:
parent
373e844305
commit
34e722a012
2 changed files with 5 additions and 0 deletions
|
@ -209,6 +209,7 @@ PlayerPostThink(void)
|
|||
player pl = (player)self;
|
||||
g_grMode.PlayerPostFrame((NSClientPlayer)self);
|
||||
pl.EvaluateEntity();
|
||||
forceinfokey(pl, "*score", ftos(pl.score));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -84,4 +84,8 @@ private:
|
|||
NSXRInput m_xrInputHead;
|
||||
NSXRInput m_xrInputLeft;
|
||||
NSXRInput m_xrInputRight;
|
||||
|
||||
#ifdef SERVER
|
||||
float score;
|
||||
#endif
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue