It may not be an issue to you, but retreiving resources in ns from v.vuser4.z
for players is sometimes incorrect. This is because when a player is first
person spectating another player, this value is replaced with the value of the
person they are spectating (so that they can see how much resources they have).
iuser1 == 4 when a player is in first person spectate mode and the windows
offset for resources in NS3b4a is 0x190.
Quoting "Brian A. Stumm" <[EMAIL PROTECTED]>:
>
> So in phpua we would like to track personal score related information that
> is present on the scoreboard in some hl mods. For example Resources in
> nsp, Score in dod or money in cstrike/czero. We've got nsp and cstrike but
> I need to know the offset to this private data for dod... Here's what we
> are using now.
>
> float pScore = 0.0;
> if (strcmp(game_dir, "nsp") == 0) {
> pScore = pPlayer->v.vuser4.z;
> } else if (strcmp(game_dir, "cstrike") == 0 || strcmp(game_dir, "czero") == 0
> ) {
> pScore = (float)*((int*)pPlayer->pvPrivateData + OFFSET_CS_MONEY);
> }
> sprintf(temp_player[P_SCORE][i], "%f", pScore);
>
> Anyone now the offset for dod to get this personal score data?
>
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives, please
> visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>
>
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders