diff options
Diffstat (limited to 'src/netvars.cpp')
| -rw-r--r-- | src/netvars.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/netvars.cpp b/src/netvars.cpp index adb5a6a..834aa2f 100644 --- a/src/netvars.cpp +++ b/src/netvars.cpp | |||
| @@ -93,9 +93,13 @@ static void collect_netvars(uintptr_t table, uintptr_t base_off, int depth) { | |||
| 93 | g_net.activeweapon < 0) { | 93 | g_net.activeweapon < 0) { |
| 94 | g_net.activeweapon = (int)(base_off + (uint32_t)poff); | 94 | g_net.activeweapon = (int)(base_off + (uint32_t)poff); |
| 95 | } else if (strcmp(pname2, "m_hOwnerEntity") == 0 && g_net.owner < 0) { | 95 | } else if (strcmp(pname2, "m_hOwnerEntity") == 0 && g_net.owner < 0) { |
| 96 | g_net.owner = (int)(base_off + (uint32_t)poff); | 96 | int off = (int)(base_off + (uint32_t)poff); |
| 97 | if (off > 0 && off < 0x2000) | ||
| 98 | g_net.owner = off; | ||
| 97 | } else if (strcmp(pname2, "m_hOwner") == 0 && g_net.weapon_owner < 0) { | 99 | } else if (strcmp(pname2, "m_hOwner") == 0 && g_net.weapon_owner < 0) { |
| 98 | g_net.weapon_owner = (int)(base_off + (uint32_t)poff); | 100 | int off = (int)(base_off + (uint32_t)poff); |
| 101 | if (off > 0 && off < 0x2000) | ||
| 102 | g_net.weapon_owner = off; | ||
| 99 | } else if (strcmp(pname2, "m_iTeamNum") == 0 && g_net.teamnum < 0) { | 103 | } else if (strcmp(pname2, "m_iTeamNum") == 0 && g_net.teamnum < 0) { |
| 100 | g_net.teamnum = (int)(base_off + (uint32_t)poff); | 104 | g_net.teamnum = (int)(base_off + (uint32_t)poff); |
| 101 | } else if (strcmp(pname2, "m_vecOrigin") == 0 && g_net.origin < 0) { | 105 | } else if (strcmp(pname2, "m_vecOrigin") == 0 && g_net.origin < 0) { |
