Raised This Month: $51 Target: $400
 12% 

prop/entity - how to know which one is not human?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
VsX
AlliedModders Donor
Join Date: Jul 2007
Old 05-04-2016 , 18:35   prop/entity - how to know which one is not human?
Reply With Quote #1

Hello Guys.

I set some models like chair, pallets and other props to players. Players can spawn models like themselves (ex. if someone is barrel, he can spawn barrel (clone) etc.). And here's my problem. I want to hook damage made to non-human props - in this case I want to know, when other player is hitting barrel clone (made by player-barrel). How...?

I hook PropTakeDamage(const String:Output[], Caller, Activator, Floatelay)
I assumed maybe this condition have to be true Caller > MaxClients but I'm not sure. Am I wrong? If so - how can I do this another way?

Thank You in advance for Your help.
VsX is offline
m_bNightstalker
Senior Member
Join Date: Jan 2015
Location: JWD
Old 05-04-2016 , 21:51   Re: prop/entity - how to know which one is not human?
Reply With Quote #2

Looks like you like to copy the prop hunt decoy feature zipcore made
m_bNightstalker is offline
zipcore
Veteran Member
Join Date: Mar 2010
Location: m_flZipcore
Old 05-04-2016 , 21:54   Re: prop/entity - how to know which one is not human?
Reply With Quote #3

Well feel free to add me, no matter if you are trying to copy my mod or not. I can help you if you add me on steam.
__________________
zipcore is offline
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 05-04-2016 , 21:56   Re: prop/entity - how to know which one is not human?
Reply With Quote #4

umm well maybe something like following

int entity = CreateEntityByName("blablah");
SDKHook(entity , SDKHook_OnTakeDamage, OnTakeDamage);
__________________
8guawong 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 03:27.


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