Make entity breakable
Hello.
I have a KillStreak plugin for cod servers. There is one of option in it that creates a user-controlled predator missle. Below the code that creates it. I would like to modify it to make it has eg 50HP. I mean, make this missle breakable via gun or something. Could someone give me a hand with it, please? PHP Code:
|
Re: Make entity breakable
I tried add set_pev(ent, pev_health, 100.0); and set_pev(ent, pev_takedamage, DAMAGE_YES); but it doesn't work.
|
Re: Make entity breakable
probably it should be func_breakable
this will help by Arkshine: https://forums.alliedmods.net/showpo...0&postcount=10 Klippy: https://forums.alliedmods.net/showpo...91&postcount=8 |
Re: Make entity breakable
1 Attachment(s)
Well, I think in my case there is engine used, and yours is fakemeta.
Maybe could someone have a look at the original plugin? I totally dont know how to deal with entities and it's the last one thing left me to do. |
Re: Make entity breakable
Set entity <model>
Set entity <size> Set entity <takedamage> Set entity <Health> |
Re: Make entity breakable
1 Attachment(s)
So, first I tried to rip out the missle code to another plugin, this is what I got:
PHP Code:
Could somebody have a look at it? |
Re: Make entity breakable
you haven't set size
|
Re: Make entity breakable
Yeah, right. So, what size to set? Or how can I check model size?
|
Re: Make entity breakable
EDIT:
Well, I changed something and now it seems to work. But there's another problem. I can destory this entity, but only when shooting in one specific point of this model. I think it's "bone"? Just look at the model I attached before. There are no hitboxes, just some dot in the place I have to shoot to destroy entity. How can I deal with it? |
Re: Make entity breakable
Nobody?
|
All times are GMT -4. The time now is 07:55. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.