Zandronum Chat on our Discord Server Get the latest version: 3.2
Source Code

View Revisions: Issue #4007 All Revisions ] Back to Issue ]
Summary 0004007: New actor pointer that can return a player's camera view
Revision 2022-06-06 20:11 by Kaminsky
Description Currently TID is required to get the player number that is spying for. Therefore, if players are using the same TID, it cannot be obtained.

Current method
int GetPlayerSpyPN (int MyPN)
{
    SetActivator(CheckPlayerCamera(MyPN)); //TID assignment required
    int SpyPN = ConsolePlayerNumber();
    SetActivatorToPlayer(MyPN);
    
    return SpyPN;
}
Revision 2022-05-29 07:58 by Penguin
Description This function gets the player number that is spying.
Currently TID is required to get the player number that is spying for. Therefore, if players are using the same TID, it cannot be obtained.

Current method
int GetPlayerSpyPN (int MyPN)
{
    SetActivator(CheckPlayerCamera(MyPN)); //TID assignment required
    int SpyPN = ConsolePlayerNumber();
    SetActivatorToPlayer(MyPN);
    
    return SpyPN;
}






Questions or other issues? Contact Us.

Links


Copyright © 2000 - 2025 MantisBT Team
Powered by Mantis Bugtracker