Bullets fly through entity
I created an entity which is solid,taking damage and have 200 hp.
Code:
new g_Model[] = {"models/chick.mdl"}But it takes damage because it gones after getting 200 dmg. So how can i fix it? And is it possible? |
Re: Bullets fly through entity
search: creating func_breakable
|
Re: Bullets fly through entity
Thanks, i changed size and it works.
Next question. How can i make bullets not damage through entity? This time i mean: not damage players through specific entity? Like as everyone know in CS you can shot through walls/entitys, how can i block this for my entity? Sorry for my bad english. |
Re: Bullets fly through entity
You could hook Ham_TakeDamage and then use trace_line(), checking the attacker'a aim vector and see if it hit your entity.
|
Re: Bullets fly through entity
It sounds pretty hard, can you give me please an example?
|
| All times are GMT -4. The time now is 19:14. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.