RegisterHam on several entity classes?
I'm making a plugin for Sven Co-op that increases damage done to monsters.
RegisterHam( Ham_TakeDamage, "*", "hook_TakeDamage" ); Doesn't work. Looping it through all monster classes would work, but surely there is a better way of doing it? :S :3 |
Re: RegisterHam on several entity classes?
Nope.
|
Re: RegisterHam on several entity classes?
Aight, thanks :3
|
Re: RegisterHam on several entity classes?
If I recall correctly if you register it on monster_headcrab, it will register on every entity derived from CBaseMonster.
See https://forums.alliedmods.net/showthread.php?t=281594 for a similar issue. |
Re: RegisterHam on several entity classes?
Quote:
For instance, CSquadMonster and CCycler have their own virtual tables even though they derive from CBaseMonster. Just to make things clear. :bee: |
Re: RegisterHam on several entity classes?
I didn't recall correctly :crab:
|
| All times are GMT -4. The time now is 18:42. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.