[SC] Detect when monster_* is killed
How can I use wildcard (*) in RegisterHam so it detect all killed monster_* entities by itself?
And prevent the message to spam/flood the players chat when a monster is killed and gibs. This script flooding the chat if you kill a headcrab with the crowbar. Also, execute server_cmd() when players receive every hundredths frags. Code:
|
Re: [SC] Detect when monster_* is killed
What's the entity name (not classname) ?
If, for example, the name is "info_target", you've to do that : Code:
|
Re: [SC] Detect when monster_* is killed
Quote:
|
Re: [SC] Detect when monster_* is killed
Ok so I don't know if you can hook Ham_* on non-existing entity.
Better to use RegisterHamFromEntity in your case. |
Re: [SC] Detect when monster_* is killed
You can use RegisterHam, MonsterMod creates the entities as "func_wall" though. You can use Devil259's code, just replace "info_target" with "func_wall".
|
Re: [SC] Detect when monster_* is killed
Quote:
So this is not for botman's MonsterMod. |
Re: [SC] Detect when monster_* is killed
Quote:
|
| All times are GMT -4. The time now is 07:46. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.