Raised This Month: $ Target: $400
 0% 

Detect C4 creation/spawn


Post New Thread Reply   
 
Thread Tools Display Modes
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 12-24-2008 , 11:22   Re: Detect C4 creation/spawn
Reply With Quote #11

Quote:
i don't want to retrieve c4 index when logevent/sound/textmsg is fired.
Why ? In others words, what's the goal wanted, to do what ?
Arkshine is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 12-24-2008 , 11:30   Re: Detect C4 creation/spawn
Reply With Quote #12

Doesn't matter why, what matters is how to
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 12-24-2008 , 11:46   Re: Detect C4 creation/spawn
Reply With Quote #13

It does matters.

Since it seems that there is not direct way found atm, depending what you want to do, choosing the best alternative method.
Arkshine is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 12-24-2008 , 11:55   Re: Detect C4 creation/spawn
Reply With Quote #14

Don't want alternative.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 12-24-2008 , 12:01   Re: Detect C4 creation/spawn
Reply With Quote #15

Well, it's a pain because it's the same classname as grenade. Ham_SetObjectCollisionBox will work ( called right after ) but called severals times at once and will be called for grenade too.
Arkshine is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 12-24-2008 , 12:19   Re: Detect C4 creation/spawn
Reply With Quote #16

FM_CreateEntity as post, will work fine.

As notes, It will called one time at the very start of server to create the special entity max_client + 1.
Arkshine is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 12-24-2008 , 12:37   Re: Detect C4 creation/spawn
Reply With Quote #17

Quote:
Originally Posted by arkshine View Post
FM_CreateEntity as post, will work fine.

As notes, It will called one time at the very start of server to create the special entity max_client + 1.
I know, problem is :
Quote:
Originally Posted by ConnorMcLeod View Post
FM_CreateEntity is fired but well, entity is not valid yet.
Post register give the correct index using get_orig_retval, but no way to check what the entity is.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod 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 09:06.


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