Raised This Month: $ Target: $400
 0% 

Entmod "Gun"


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
zssz
Member
Join Date: Aug 2008
Old 10-25-2008 , 14:27   Entmod "Gun"
Reply With Quote #1

Anyone know how to go about detecting if a player has this "gun" out? It doesn't have a weapon id (didn't think it would), or a name (once again, didn't think it would) since it is a seperate plugin to metamod.
__________________

Last edited by zssz; 10-25-2008 at 19:23.
zssz is offline
Prajch
Senior Member
Join Date: Dec 2007
Location: anger++
Old 10-25-2008 , 17:22   Re: Entmod "Gun"
Reply With Quote #2

Maybe catch the weapon_entmover command and check if they've switched away from it thereafter by catching the CurWeapon event?
Prajch is offline
zssz
Member
Join Date: Aug 2008
Old 10-25-2008 , 19:24   Re: Entmod "Gun"
Reply With Quote #3

Hmm never thought of that, sounds like it could work. Thanks a lot, I will try it out.

EDIT: Just thought of something while trying this;
How would I be able to tell if they have access to weapon_entmover? Anyone could just type weapon_entmover and even if they "gun" wasn't out, the script would still continue as if they did have it out.
__________________

Last edited by zssz; 10-25-2008 at 20:22.
zssz is offline
Prajch
Senior Member
Join Date: Dec 2007
Location: anger++
Old 10-25-2008 , 20:30   Re: Entmod "Gun"
Reply With Quote #4

I guess you'd have to cross-reference with your DF_admins file. You could stick a copy of it in the data folder and load the Steam IDs into your plugin.
Prajch is offline
stupok
Veteran Member
Join Date: Feb 2006
Old 10-25-2008 , 20:41   Re: Entmod "Gun"
Reply With Quote #5

I bet there's a pdata value for this, but I'm too lazy to look.
stupok 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 05:13.


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