Hi guys,
I'm writing an add-on to LFS Lapper and am having trouble working out how to determine which PLID a player is viewing. What I am trying to do is to capture the ViewPLID from the IS_CPP packet, but have run into a view problems.
First is how to actually get LFS to send an IS_CPP packet. The docs say to send an IS_TINY with a SubT of TINY_SCP, but I cannot for the life of me get LFS to respond to that packet (using the InSimSniffer tool). If anyone has a working example of how to get an IS_CPP sent, that would be appreciated.
Secondly, to determine if the player is viewing a different user, I'm looking at using the IS_CCH packet to determine that a view change has occurred. The problem is that when using the Tab key to switch players, an IS_CCH is generated when you first move away from your PLID, but never for any subsequent Tabs. So you know that the View has shifted to another player only once, and if someone is tabbing like heck, you cannot capture those events. Is this a bug in the IS_CCH method, or by design?
If it's by design, then I suppose I have to poll the player a few times a second to get an IS_CPP packet to see who they are viewing and adjust the output accordingly, but see problem above on how to get an IS_CPP packet sent back.
Any help would be appreciated.
I'm writing an add-on to LFS Lapper and am having trouble working out how to determine which PLID a player is viewing. What I am trying to do is to capture the ViewPLID from the IS_CPP packet, but have run into a view problems.
First is how to actually get LFS to send an IS_CPP packet. The docs say to send an IS_TINY with a SubT of TINY_SCP, but I cannot for the life of me get LFS to respond to that packet (using the InSimSniffer tool). If anyone has a working example of how to get an IS_CPP sent, that would be appreciated.
Secondly, to determine if the player is viewing a different user, I'm looking at using the IS_CCH packet to determine that a view change has occurred. The problem is that when using the Tab key to switch players, an IS_CCH is generated when you first move away from your PLID, but never for any subsequent Tabs. So you know that the View has shifted to another player only once, and if someone is tabbing like heck, you cannot capture those events. Is this a bug in the IS_CCH method, or by design?
If it's by design, then I suppose I have to poll the player a few times a second to get an IS_CPP packet to see who they are viewing and adjust the output accordingly, but see problem above on how to get an IS_CPP packet sent back.
Any help would be appreciated.