Raised This Month: $ Target: $400
 0% 

Shield Deploy


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Diegorkable
Veteran Member
Join Date: Jun 2011
Old 05-08-2012 , 03:16   Shield Deploy
Reply With Quote #1

Hey guys,

I tried using few methods of FakeMeta to detect when player has deployed a Shield. I want the plugin to call a function when the player, for example, picks up a riot shield from the floor ("weapon_shield").

I tried FM_PrecacheModel, it doesn't call the function when the model is shield for some reason, the fact I know this is cuz I hooked it up and client_print'd every model called on this function.

I tried FM_ModelIndex, It's good it's calling it but in a really fast frequency and I don't know how to get the player's ID who just picked that Shield up, also that when I forward_return(FMV_CELL, 0) it fucks things up.

I also used FM_ModelFrames and FM_SetModel, wasn't much of a help too.

What should I do??
Thanks.
__________________
My Projects:

Auto-Mix (Pug): 100%

Joined the Military (a soldier now) - Inactive
Diegorkable is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 05-08-2012 , 05:30   Re: Shield Deploy
Reply With Quote #2

RegisterHam(Ham_Touch, "weapon_shield", "CWSHield_Touch", 0)

If you supercede this, shield can't be picked up.

Question is what do you exactly want to do ?
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Diegorkable
Veteran Member
Join Date: Jun 2011
Old 05-08-2012 , 06:51   Re: Shield Deploy
Reply With Quote #3

Quote:
Originally Posted by ConnorMcLeod View Post
If you supercede this, shield can't be picked up.
Exactly, that.

Thanks I'll try it.

Edit: Works
__________________
My Projects:

Auto-Mix (Pug): 100%

Joined the Military (a soldier now) - Inactive

Last edited by Diegorkable; 05-08-2012 at 08:51.
Diegorkable is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-08-2012 , 13:05   Re: Shield Deploy
Reply With Quote #4

Wow, your first post never seems to explain what you actually want. It's very frustrating.
__________________
fysiks 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:19.


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