Thread: YaPB2 Updates
View Single Post
Re: YaPB2 Updates
Old
  (#150)
wbyokomo
Zombie Slayer
 
Status: Offline
Posts: 17
Join Date: Apr 2012
Location: Cyberjaya MY
Default Re: YaPB2 Updates - 20-01-2016

Quote:
Originally Posted by wbyokomo View Post
Please change the method of team detection, using offset is better. https://github.com/alliedmodders/amx...layer.txt#L176
that offset has been used since 2005 and never change yet, Valve no longer update CS1.6. So it's relevant and safe to be use.

Using offset can detect team changes in realtime, no need to wait for next player spawn.
For example in TraceAttack https://github.com/s1lentq/ReGameDLL...layer.cpp#L868