|
Post by tharindu on Sept 22, 2017 18:07:25 GMT
I am going to be around for another hour at least. Do you want to share screen and give it a go ? www.join.me/ You'll need to download and setup a meeting and send me the meeting ID. [EDIT] : Aww ma it's 12 AM and I need to catch a flight :'( Let's work this one out. I am very interested to figure out what's going on
|
|
|
Post by Strider on Sept 28, 2017 1:55:00 GMT
I am going to be around for another hour at least. Do you want to share screen and give it a go ? www.join.me/ You'll need to download and setup a meeting and send me the meeting ID. [EDIT] : Aww ma it's 12 AM and I need to catch a flight :'( Let's work this one out. I am very interested to figure out what's going on ups, well, didn't make it on time... still no luck, no damage applied to the body parts. :(
|
|
|
Post by vikingos on Sept 28, 2017 2:03:49 GMT
I'm close to figuring it out myself. I have the damage applying to the vCollision.cs then to AI or Player(I'm not quite sure if that is how it should be or not) but I'm running into some sight problems when I work them out I can pass along my findings to you.
problems are blocking is not getting registered and getting hit multiple times with one swing.
|
|
|
Post by Strider on Sept 28, 2017 4:05:19 GMT
I'm close to figuring it out myself. I have the damage applying to the vCollision.cs then to AI or Player(I'm not quite sure if that is how it should be or not) but I'm running into some sight problems when I work them out I can pass along my findings to you. problems are blocking is not getting registered and getting hit multiple times with one swing. i've been working with everything that's been posted and still no luck... :(
|
|
|
Post by vikingos on Sept 28, 2017 4:07:00 GMT
Yeah I just solved it I'm pretty damn sure of it. I can post the modded scripts to you and how to set it up tomorrow.
|
|
|
Post by Strider on Sept 28, 2017 4:19:02 GMT
Yeah I just solved it I'm pretty damn sure of it. I can post the modded scripts to you and how to set it up tomorrow. THAT WOULD BE AWESOME! so there was a problem with the scripts? :D
|
|
|
Post by vikingos on Sept 28, 2017 17:03:29 GMT
Hey man, so ill post what I've done but I'm getting a weird thing happening every so often and I haven't found out exactly why yet but Ill post if I find it.(I'm thinking something is resetting the bone structure layer) The problem: Once and a while the BodyPart bugs outs and cant be hit, usually happens when you start up unity. The workaround for now: Reset the bone structure back to BodyPart layer. Notice: Back up your project before attempting to do this so you can revert it if you don't like it. Steps to allow damage pass to ragdoll damage detection system: Step 1: Create a new tag called "BodyPart", for each bodypart that you wish to apply damage to set to "BodyPart". Make sure to change the melee manager to include this tag "BodyPart" also insure that the bone structure of your AI layer is set to "BodyPart" and all its children. Step 2: On the vRagdoll.cs we need to blank out a line. (line 151:) Step 3: Download the 3 scripts attached at the bottom and overwrite the existing ones.(Best way search for each script and replace it, in the folder. Note: there are two vCollisionMessage.cs replace the one in the shooter scripts shooter folder.) Step 4: Compile and press play, I've added a few debug logs to vHitbox.cs and vCollisionMessage.cs (blank them out or remove them if they both fire). vHitbox debug, will tell you every thing the collider has come in contact with. vCollisionMessage debug , will just confirm that the damage function has been invoked. www.dropbox.com/s/386t1x1umhh1spb/vMeleeAttackObject.cs?dl=0www.dropbox.com/s/6w17zcwaucdaozf/vCollisionMessage.cs?dl=0www.dropbox.com/s/6qps2kup2yxwlbb/vHitBox.cs?dl=0Let me know if you run into any problems, I think I listed all the steps. Edit: Apparently weapons are only hitting while in the layer bodypart
|
|
|
Post by Strider on Sept 28, 2017 21:12:49 GMT
Ok, so far seems to work pretty well, the only problem i had was that in the very first moment i changed the scripts it said it didn't recognize ragdoll in contexto, so i added just inside the public partial class in vCollision Message:
[HideInInspector]
public vRagdoll ragdoll; and with that everything is working fine!
|
|
|
Post by vikingos on Sept 28, 2017 22:43:26 GMT
Awesome news man! I'm still looking for bugs and such Ill post updates when I can.
|
|