AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Hello everyone! NS Module Help =) (https://forums.alliedmods.net/showthread.php?t=127398)

mysticssjgoku4 05-20-2010 15:27

Hello everyone! NS Module Help =)
 
It has certainly been quite a while since I been here, and would like to say hello to all this is still kicking and moderating these forums! Hope you are doing well in life !

The problem I am having deals with trying to detect if a user is visible or not on the alien team.
MASK_CLOAKING only returns 1 if a player has selected* cloaking as an upgrade, not whether or not they are indeed visible or not.
MASK_SENSORY_NEARBY returns 1 when the sensory is built and the player is within a certain range, and is partially/full cloaked. If a player does not meet all of those conditions, it throws a 0 instead of 1. (So this would work, but not if they are out of range of a sensory chamber, even if cloaked.)


Anyone have any ideas?

Code:
    for (new i=1; i<33; i++)     {         new de = ns_get_mask(i, MASK_DETECTED);         new sighted = ns_get_mask(i, MASK_SIGHTED);         new ensnared = ns_get_mask(i, MASK_ENSNARED);         new none = ns_get_mask(i, MASK_NONE);         new sens_near = ns_get_mask(i, MASK_SENSORY_NEARBY);         new sens2 = ns_get_mask(i, MASK_SENSORY2);         new sens3 = ns_get_mask(i, MASK_SENSORY3);         new cloaking = ns_get_mask(i, MASK_CLOAKING);             client_print(i,print_chat," DETECTED: %i^n SIGHTED: %i^n ENSARED: %i^n NONE: %i^n SENS NEARBY: %i^n SENS2: %i^n SENS3: %i^n CLOAKING: %i^n",de,sighted,ensnared,none,sens_near,sens2,sens3,cloaking);     }


All times are GMT -4. The time now is 03:51.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.