Diffirentiate Entities in World that I Can Shoot from Those I Shouldn't
Sorry for the long title. It's a bit hard to explain.
I have this weapon that coded the whole shooting process. It uses ExecuteHam(Ham_TakeDamage) to dish out the damage. Damaging players is fine. Damaging part of the world, however, is where the problem is. If I enabled the "World Damage" it does its work fine but it also destroys stuff I'm not supposed to, like the supply boxes on de_dust maps which the C4 is supposed to blow up. If disabled, I can't destroy certain objects like vents, windows, and even hostages, which is really weird. So is there a way to filter out those objects I shouldn't be damaging?... |
Re: [HELP] Diffirentiate Entities in World that I Can Shoot from Those I Shouldn't
Try to check pev_takedamage for != DAMAGE_NO.
|
Re: [HELP] Diffirentiate Entities in World that I Can Shoot from Those I Shouldn't
Quote:
PHP Code:
|
| All times are GMT -4. The time now is 23:09. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.