Raised This Month: $ Target: $400
 0% 

Weapon Drop with Orpheu? (CS)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
sake
Senior Member
Join Date: Jul 2011
Old 09-01-2011 , 17:20   Weapon Drop with Orpheu? (CS)
Reply With Quote #1

Here am I again with a new Orpheu issue. What is the ClassName for Hooking on a weapon-function in Orpheu. For Players it is "player", but for weapons?

I need that because I want to hook on a weapon drop on Death or whatever in order to get to know if a weapon is silenced.

Hmmm. Seems that there is no Drop(void) for CBasePlayerWeapon but there is one for CBasePlayerItem. A weapon is an item, right?
__________________

Last edited by sake; 09-01-2011 at 17:26.
sake is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-01-2011 , 17:29   Re: Weapon Drop with Orpheu? (CS)
Reply With Quote #2

cs_get_weapon_silen
__________________
Arkshine is offline
sake
Senior Member
Join Date: Jul 2011
Old 09-02-2011 , 05:05   Re: Weapon Drop with Orpheu? (CS)
Reply With Quote #3

Why the hell didn't I read this?

index should be the entity index of the weapon

Thx Arkshine .
__________________
sake is offline
sake
Senior Member
Join Date: Jul 2011
Old 09-02-2011 , 06:12   Re: Weapon Drop with Orpheu? (CS)
Reply With Quote #4

But I need the right point to determine if a weapon was silenced. I need that when the weapon is dropped. But I don't know how I can listen for that event.
__________________
sake is offline
Backstabnoob
BANNED
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 09-02-2011 , 06:29   Re: Weapon Drop with Orpheu? (CS)
Reply With Quote #5

register_clcmd("drop" ...) ?
Backstabnoob is offline
sake
Senior Member
Join Date: Jul 2011
Old 09-02-2011 , 07:13   Re: Weapon Drop with Orpheu? (CS)
Reply With Quote #6

Is this being called on death?
__________________
sake is offline
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 09-02-2011 , 07:28   Re: Weapon Drop with Orpheu? (CS)
Reply With Quote #7

No, but death is called on death there are plugins that hook death dropping weapons.
__________________
Hunter-Digital is offline
sake
Senior Member
Join Date: Jul 2011
Old 09-02-2011 , 07:49   Re: Weapon Drop with Orpheu? (CS)
Reply With Quote #8

Omg. Sry. I am kind of dumb right now .P
__________________
sake 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 06:43.


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