Raised This Month: $ Target: $400
 0% 

Hello everyone! NS Module Help =)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mysticssjgoku4
Veteran Member
Join Date: Jan 2005
Location: Chicago Heights, IL
Old 05-20-2010 , 15:27   Hello everyone! NS Module Help =)
Reply With Quote #1

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);     }
__________________


Last edited by mysticssjgoku4; 05-20-2010 at 16:16.
mysticssjgoku4 is offline
Send a message via AIM to mysticssjgoku4 Send a message via MSN to mysticssjgoku4
Old 05-21-2010, 13:20
mysticssjgoku4
This message has been deleted by Exolent[jNr]. Reason: Don't bump until 2 weeks have passed since last post.
Old 05-21-2010, 13:33
Brreaker
This message has been deleted by Exolent[jNr]. Reason: Don't bump until 2 weeks have passed since last post.
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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