Raised This Month: $ Target: $400
 0% 

The Specialists: Weapon Event? Anyone?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mysticssjgoku4
Veteran Member
Join Date: Jan 2005
Location: Chicago Heights, IL
Old 02-15-2007 , 20:03   The Specialists: Weapon Event? Anyone?
Reply With Quote #1

Hmm, well to all of you coders who are familiar with the modification "The Specialists" have any of you figured out a way to detect when a players picks up a weapon? May be the custom event name? Because I've tried "WeapPickup" and it hasn't triggered anything.

Thanks
__________________

mysticssjgoku4 is offline
Send a message via AIM to mysticssjgoku4 Send a message via MSN to mysticssjgoku4
stupok
Veteran Member
Join Date: Feb 2006
Old 02-15-2007 , 20:22   Re: The Specialists: Weapon Event? Anyone?
Reply With Quote #2

I remember searching for an event like this. I don't remember exactly how it went, but I think there was no message sent on weapon pickup and CurWeapon sent on weapon change. Use Damaged Soul's plugin if you'd like to confirm that.

If you want to prevent picking up weapons you might want to consider disabling the IN_USE button in prethink.
stupok is offline
lunarwolfx
Member
Join Date: Feb 2005
Old 02-15-2007 , 23:16   Re: The Specialists: Weapon Event? Anyone?
Reply With Quote #3

It's pretty far back, but I think I did it by checking the slot change. For picking up the weapon, check only when the slot decreases
lunarwolfx is offline
stupok
Veteran Member
Join Date: Feb 2006
Old 02-15-2007 , 23:58   Re: The Specialists: Weapon Event? Anyone?
Reply With Quote #4

But there is no message sent on weapon pickup, am I right? You'd have to constantly check to see if pdata has changed.
stupok is offline
lunarwolfx
Member
Join Date: Feb 2005
Old 02-16-2007 , 00:22   Re: The Specialists: Weapon Event? Anyone?
Reply With Quote #5

Quote:
Originally Posted by stupok69 View Post
But there is no message sent on weapon pickup, am I right? You'd have to constantly check to see if pdata has changed.
There's event for slot change so that the speed changes when the player gains or loses weapons. I think it's called tslot or something like that.
lunarwolfx is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 02-16-2007 , 00:19   Re: The Specialists: Weapon Event? Anyone?
Reply With Quote #6

WeaponInfo is sent when you change weapons. Not sure how to make sure if they just picked it up.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Ryu2877
Member
Join Date: Sep 2006
Location: China
Old 02-16-2007 , 00:37   Re: The Specialists: Weapon Event? Anyone?
Reply With Quote #7

"WeapPickup" fired "right before" the weapon been picked up, when this event trigger, the player isn't have the weapon yet.
Ryu2877 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 00:42.


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