Raised This Month: $51 Target: $400
 12% 

Disabling an attack in NS


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
KCE
Senior Member
Join Date: Jan 2005
Location: Los Angeles, CA
Old 03-06-2005 , 22:03   Disabling an attack in NS
Reply With Quote #1

How do I disable an attack in NS, in this case, devour?
KCE is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 03-07-2005 , 16:22  
Reply With Quote #2

Use the Client_PreThink forward, and check if they are on the alien team. If so, use get_user_button and check if they are IN_ATTACK. If they are, check if they have the devour weapon out. If so, set it so they are no longer IN_ATTACK.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
KCE
Senior Member
Join Date: Jan 2005
Location: Los Angeles, CA
Old 03-07-2005 , 17:29  
Reply With Quote #3

I don't know if it's safe to use preThink, I think I might break something with it. Is there a way to do it with with the event when they switch weapons? Sorry, I wasn't clear in the initial post, what I really was trying to do was so when the user switches to that weapon (WEAPON_DEVOUR on slot2) and tries to fire, the player gets a message telling him they can't do that (I know how to do this part with client_print), and then they get switched back to the previous weapon they were using before they switched to devour.
KCE is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 03-07-2005 , 22:25  
Reply With Quote #4

You won't break anything with client_PreThink. You could detect when they switch to devour and switch to a different weapon if you want to do it simply.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
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 17:06.


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