Raised This Month: $32 Target: $400
 8% 

Event triggered on weapon strip?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Geesu
Veteran Member
Join Date: Mar 2004
Location: Cincinnati, OH
Old 02-23-2007 , 16:21   Event triggered on weapon strip?
Reply With Quote #1

When a user's weapons are stripped (i.e. on cs_deagle5) is there an event that is triggered?

Josh
__________________
Need war3ft help? DO NOT PM ME... Check the forums
Geesu is offline
Send a message via AIM to Geesu Send a message via MSN to Geesu
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 02-23-2007 , 18:45   Re: Event triggered on weapon strip?
Reply With Quote #2

This may help you.

Code:
L 02/23/2007 - 18:47:07: MessageBegin (CurWeapon "66") (Destination "One<1>") (Args "3") (Entity "1") (Classname "player") (Netname "Avalanche") (Origin "0.000000 0.000000 0.000000")
L 02/23/2007 - 18:47:07: Arg 1 (Byte "0")
L 02/23/2007 - 18:47:07: Arg 2 (Byte "0")
L 02/23/2007 - 18:47:07: Arg 3 (Byte "0")
L 02/23/2007 - 18:47:07: MessageEnd (CurWeapon "66")
It seems when all of a player's weapons are stripped, a blank CurWeapon event is sent to him, to tell him to clear his weapon-related displays.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 02-25-2007 , 06:34   Re: Event triggered on weapon strip?
Reply With Quote #3

Be aware that this event is also called on spawn(alive)/death(dead).

Last edited by VEN; 03-05-2007 at 13:15. Reason: typo
VEN is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 03-05-2007 , 13:14   Re: Event triggered on weapon strip?
Reply With Quote #4

Ham Sandwich module by sawce can catch this. Hook player_weaponstrip entity use.
VEN 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 06:56.


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