|
Post by kiwi2112 on May 25, 2018 2:06:47 GMT
Does anybody know a way to cause dismemberment with the shooter melee template? I can create models that are cut up.
|
|
|
Post by Devistute on May 25, 2018 4:03:46 GMT
Does anybody know a way to cause dismemberment with the shooter melee template? I can create models that are cut up. One idea would be to have sub meshes on the original character with parts cut out, and then just switch to them when needed. Say you got Float value, and if it reaches the max of that value or over the hand or whatever flies off.
I do it by simply deleting the actual character controller and spawning sliced up version of the character to the place of original
Then again the question itself is little bit confusing, do you mean to dismember the player character or AI?
|
|
|
Post by witcher on May 25, 2018 14:03:00 GMT
theres a dismembering plugin in assest store. You can use that
|
|
|
Post by spf on May 25, 2018 15:04:10 GMT
theres a dismembering plugin in assest store. You can use that You have a video lesson on integration in invector?
|
|
|
Post by witcher on May 25, 2018 15:08:17 GMT
theres a dismembering plugin in assest store. You can use that You have a video lesson on integration in invector? you just need to link their damage with invectors damage
|
|
|
Post by spf on May 25, 2018 15:20:40 GMT
You have a video lesson on integration in invector? you just need to link their damage with invectors damage Just at me it also does not turn out...
|
|
|
Post by kiwi2112 on Jun 2, 2018 13:33:29 GMT
I was wanting to do this on enemies, iv'e noticed that body parts have different damage amounts so i'm sure it could be linked to that, my coding knowledge is bare at the moment but I can work with parameters lol.
|
|
|
Post by Devistute on Jun 3, 2018 10:56:41 GMT
I was wanting to do this on enemies, iv'e noticed that body parts have different damage amounts so i'm sure it could be linked to that, my coding knowledge is bare at the moment but I can work with parameters lol.
You could use triggers at the body parts, as children objects. When the said attack hits em, be it bullet or sword etc it takes the float value of the attack damage and by that the script decides if to cut parts off or not, you would also need an float to compare the damage with.
The "script" would need to be in every body part though. Additionally you could trigger
certain "Got Hit" animations if the value of float is not great enough to blow your head off.
My scripting is also very bad, but i use playMaker to make things happen
|
|
|
Post by kiwi2112 on Jun 26, 2018 15:26:55 GMT
I was wanting to do this on enemies, iv'e noticed that body parts have different damage amounts so i'm sure it could be linked to that, my coding knowledge is bare at the moment but I can work with parameters lol.
You could use triggers at the body parts, as children objects. When the said attack hits em, be it bullet or sword etc it takes the float value of the attack damage and by that the script decides if to cut parts off or not, you would also need an float to compare the damage with.
The "script" would need to be in every body part though. Additionally you could trigger
certain "Got Hit" animations if the value of float is not great enough to blow your head off.
My scripting is also very bad, but i use playMaker to make things happen I've gotten playmaker now, hopefully I can pull this off lol i'm not missing much else for the game I've been making.
|
|
|
Post by Devistute on Jun 26, 2018 17:44:25 GMT
You could use triggers at the body parts, as children objects. When the said attack hits em, be it bullet or sword etc it takes the float value of the attack damage and by that the script decides if to cut parts off or not, you would also need an float to compare the damage with.
The "script" would need to be in every body part though. Additionally you could trigger
certain "Got Hit" animations if the value of float is not great enough to blow your head off.
My scripting is also very bad, but i use playMaker to make things happen I've gotten playmaker now, hopefully I can pull this off lol i'm not missing much else for the game I've been making. By using Variables it would work. You can either have character that is already dismembered, or just turn the body parts size to zero and activate some sort of gore to the place. You could make variable that is in charge of dismemberment, say the value is 0.8. If the value of attack goes beyond that value your hand or whatever flies off.
|
|
|
Post by kiwi2112 on Jul 26, 2018 17:38:14 GMT
I found a glass breaking script that works on collision, it works with creating the effect of the head being destroyed on death, but since it's not destroying the head using the damage variables from that body member I can shoot his head off by aiming anywhere on his body, rather than only when I shoot a headshot.
|
|
|
Post by tsuyoiraion on Dec 6, 2018 22:31:08 GMT
I found a glass breaking script that works on collision, it works with creating the effect of the head being destroyed on death, but since it's not destroying the head using the damage variables from that body member I can shoot his head off by aiming anywhere on his body, rather than only when I shoot a headshot. Here check this out: www.assetstore.unity3d.com/en/#!/content/78899 I'm currently integrating it into my own project and seems to be working well so far, i needed to make a few adjustments to some of the scripts to get the desired response as well as create 1 small script to call the hit with the shooter bullet ray. My only issue is calling the zombie dead trigger through the invector AI script, once a fatal hit is given/called, can't seem to figure out how :(
|
|
|
Post by kiwi2112 on May 22, 2019 11:06:41 GMT
I found a glass breaking script that works on collision, it works with creating the effect of the head being destroyed on death, but since it's not destroying the head using the damage variables from that body member I can shoot his head off by aiming anywhere on his body, rather than only when I shoot a headshot. Here check this out: www.assetstore.unity3d.com/en/#!/content/78899 I'm currently integrating it into my own project and seems to be working well so far, i needed to make a few adjustments to some of the scripts to get the desired response as well as create 1 small script to call the hit with the shooter bullet ray. My only issue is calling the zombie dead trigger through the invector AI script, once a fatal hit is given/called, can't seem to figure out how :( So iv'e been re trying this and using the event system is way easier, I made a model with a separate head n on dead I enable destroy objects on the head/ eyes, I'd also enable a neck mesh. My only issue is this method activates the dismemberment no matter which part of the enemy is shot.
|
|
|
Post by kiwi2112 on May 23, 2019 23:34:17 GMT
anybody know how i would replace a material once a bullet hits a certain body part? If so I think I can solve this.
|
|