Raised This Month: $ Target: $400
 0% 

NS question


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Ramirez
Member
Join Date: Aug 2004
Old 01-09-2005 , 12:29   NS question
Reply With Quote #1

Quick question.
This is for natural-selection.
How would I go if I wanted to give the flag to walk on walls to another class?

ns_set_mask doesn't do what I tought I did..
I set the mask to stick on walls but it doesn't work..
If anyone wants to know the flag its in ns_const.inc

Any suggestions?
Ramirez is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 01-09-2005 , 16:11  
Reply With Quote #2

The ns_const.inc says that flags are for the pev->iuser4 fields. So I'd assume this would work:

Code:
new iuser4 = entity_get_int(id,EV_INT_iuser4); iuser4 |= MASK_WALLSTICKING; entity_set_int(id,EV_INT_iuser4,iuser4);

If you wanted it shorter than this should work as well:

Code:
entity_set_int(id,EV_INT_iuser4,entity_get_int(id,EV_INT_iuser4)&MASK_WALLSTICKING);
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Ramirez
Member
Join Date: Aug 2004
Old 01-09-2005 , 21:56  
Reply With Quote #3

Thanks buddy ill try this out!
Btw, if its not too much to ask..
I kinda dont get that function pretty good..
Could you explain it to me?
Ramirez is offline
Ramirez
Member
Join Date: Aug 2004
Old 01-09-2005 , 22:10  
Reply With Quote #4

I tested it and it doesnt work
Ramirez is offline
Reply


Thread Tools
Display Modes

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 19:24.


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