![]() |
How to disable hitting specific body parts? - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Help (/Forum-Script-Help) +--- Thread: How to disable hitting specific body parts? (/Thread-How-to-disable-hitting-specific-body-parts) Pages: 1 2 |
How to disable hitting specific body parts? - falsemirage - 07-23-2016 11:24 AM I've been searching forums for the past 2 days, but couldn't find anything about this. Is there a way to disable hitting specific parts of body ? When I hit someone games passes a sysmessage with "You hit <npc.name> chest!" "You hit <npc.name> left thigh!" Is it possible to disable this and treat hitbox as the whole body ? RE: How to disable hitting specific body parts? - Kanibal - 07-23-2016 04:19 PM (07-23-2016 11:24 AM)falsemirage Wrote: Is it possible to disable this and treat hitbox as the whole body ?Find this messages: Code: You hit <npc.name> chest! RE: How to disable hitting specific body parts? - XuN - 07-23-2016 10:07 PM The 'detail' command is allowing these messages to be shown or not, just type .detail 0 or set it via script for all characters. There's also a local managing which part of the body is being hit inside the @Hit trigger. RE: How to disable hitting specific body parts? - falsemirage - 07-24-2016 12:45 AM Sorry for not giving the important detail, I guess it happens when you ask a question at 3 AM lol Problem is not the messages (but knowing that it can be disabled is great Thx!) When I hit npc, I can't damage him if my hit lands on his thigh or some other parts. I guess I can only damage npc when hit lands on his head and few other. I have a custom combat system which lets me use elemental damage and resists. Can I make it so that hits only goes to shield so I can script custom parry or dodge system as well ? EDIT: Ok I've figured it out. I set <argn2> under both @hit and @gethit to 80 (which is dam_general) and it works as I wanted. RE: How to disable hitting specific body parts? - XuN - 08-08-2016 05:32 PM That local is meant to set which layer to hit on, setting it to 0 should prevent hitting any part. Which is the same that you did, but knowledge is power ![]() RE: How to disable hitting specific body parts? - Snaigel - 02-05-2017 11:57 PM Quote:EDIT: Ok I've figured it out. I set <argn2> under both @hit and @gethit to 80 (which is dam_general) and it works as I wanted. What did you write exactly? and you mean in the @hit of the weapons or where? Quote:There's also a local managing which part of the body is being hit inside the @Hit trigger. Where can I find that local?? RE: How to disable hitting specific body parts? - xwerswoodx - 02-06-2017 06:03 AM (02-05-2017 11:57 PM)Snaigel Wrote:Quote:EDIT: Ok I've figured it out. I set <argn2> under both @hit and @gethit to 80 (which is dam_general) and it works as I wanted. @Hit and @GetHit are character triggers. So for his solution is, he add his global event; Code: On=@Hit I do not know if you have any global event, but you can add new one from Sphere.ini, there is a section EventPlayer= If you enable it you can add e_player or any other event to there, or under your skillclass 0 (which can be found inside sphere_skills.scp) Code: On=@Login RE: How to disable hitting specific body parts? - Snaigel - 02-06-2017 06:28 AM Thank you very much!!, that was like the most important thing for my server, the random damage was making me sad. I learn about this things. RE: How to disable hitting specific body parts? - Snaigel - 02-06-2017 08:39 AM Tested it player vs player, and it seems to don't evalue the armor.. doesn't matter if I have 250 armor or 30, the weapon always do the same damage (tryied with different weapons) RE: How to disable hitting specific body parts? - xwerswoodx - 02-06-2017 08:10 PM Can you try it to change 80's to 080 And, so I read your message again, you asked to disable random damage don't you? I think dam_general (080) made it random, so if you want to do it to hit specific part, send a message so I can help you to code it. |