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

[L4D2] Detect if holding item (gas can, oxy tank, etc)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
cheewongken
Senior Member
Join Date: Feb 2009
Old 09-11-2010 , 11:51   [L4D2] Detect if holding item (gas can, oxy tank, etc)
Reply With Quote #1

Could someone help me out with this? i'm not sure how to do this..
It has something to do with the netprop m_holdingObject right?
cheewongken is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 09-11-2010 , 14:05   Re: [L4D2] Detect if holding item (gas can, oxy tank, etc)
Reply With Quote #2

Maybe GetClientWeapon() should return weapon_oxygentank etc?

http://docs.sourcemod.net/api/index....d=show&id=425&
http://wiki.alliedmods.net/Left_4_Dead_2_Weapons
__________________
Silvers is offline
cheewongken
Senior Member
Join Date: Feb 2009
Old 09-11-2010 , 14:21   Re: [L4D2] Detect if holding item (gas can, oxy tank, etc)
Reply With Quote #3

Quote:
Originally Posted by Silvers View Post
hmm.. i'll try out the prop first and if it fails i'll try out that.. thanks a lot.
cheewongken 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 18:32.


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