View unanswered posts | View active topics It is currently Thu Dec 26, 2024 4:16 am



Reply to topic  [ 10 posts ] 
 Exploding Arms 
Author Message

Joined: Thu Oct 04, 2012 4:53 am
Posts: 30
Reply with quote
Post Exploding Arms
Alright, I admit, I am a very new modder. The problem I am having is probably due to my own incompetence, but here we go. Whenever I try to make a gun, which I've done twice now, both assault rifles, simply touching an enemy with the gun causes the user's arms to explode. I have tried every solution I can think of, and I can't fix it. I'll show the code if it's needed to figure out the problem, though I doubt it will be. If anyone has any clue what the problem is, please tell me.
It seems to happen whenever I walk the actor into a surface, allowing the gun to touch something. The arms simply explode and the gun falls to the ground.


Sun Apr 13, 2014 4:09 am
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Fri Jan 07, 2011 8:01 am
Posts: 6211
Location: In your office, earning your salary.
Reply with quote
Post Re: Exploding Arms
Sounds like a problem of JointStrength/JointStiffness. JointStrength is how much strength you need to apply to the attachable to make it detach from the parent (in this case, how much strength you need to apply to the gun to make the actor drop it). JointStiffness is how much energy is transferred from the attachable to the parent (using strength*JointStiffness, reason why JointStiffness should always be between 0 and 1).

I think that you are using high values in both, particularily JointStiffness, in such way that when the gun touches something, the strength the arm recieves is multiplied greatly, destroying the arm.

Just a blind guess, only thing that comes to mind without staring at the code :P


Sun Apr 13, 2014 5:21 am
Profile

Joined: Thu Oct 04, 2012 4:53 am
Posts: 30
Reply with quote
Post Re: Exploding Arms
I thought that was the issue too. My JointStiffness is set to 0.5, and the JointStrength is 100.
Both of the guns are mostly the same. The second was made in hope that I wouldn't make the same mistake again.





Sun Apr 13, 2014 5:34 am
Profile
User avatar

Joined: Sun Jan 28, 2007 10:32 pm
Posts: 1609
Location: UK
Reply with quote
Post Re: Exploding Arms
Those rifles look to be way too heavy. Most guns are in the 3-6 Mass range.

That said I can't say anything more without seeing the stats of the magazine and projectile. What's the mass of the bullets and what's their firevelocity? 1000RPM with high-mass rounds is probably the cause of the problem here.

Also, the important part of JointStrength/Stiffness is on the wielding actor, not the gun itself, IIRC?


Sun Apr 13, 2014 5:42 am
Profile YIM
Data Realms Elite
Data Realms Elite
User avatar

Joined: Fri Jan 07, 2011 8:01 am
Posts: 6211
Location: In your office, earning your salary.
Reply with quote
Post Re: Exploding Arms
Yeah, was thinking of that.

If he's using a modded actor the issue could be the actor.

I'm also intrigued, it only happened when the gun touched something? What about when it fired?


Sun Apr 13, 2014 5:46 am
Profile
User avatar

Joined: Sun May 30, 2010 5:30 am
Posts: 853
Location: Auckland, NZ
Reply with quote
Post Re: Exploding Arms
Nah, mass shouldn't be the problem, IIRC the heavy cannon in my Dummy expansion weighs 65 and fires 400kg mass slugs.


Sun Apr 13, 2014 8:02 am
Profile

Joined: Thu Oct 04, 2012 4:53 am
Posts: 30
Reply with quote
Post Re: Exploding Arms
Firing was completely fine, and the weight seemed to have about as much affect on the actors as a standard Coalition rifle. The arms just break off whenever the actor walks into a surface with the gun facing forward. It's as soon as pressure is put on the gun itself.


Sun Apr 13, 2014 9:26 am
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Fri Jan 07, 2011 8:01 am
Posts: 6211
Location: In your office, earning your salary.
Reply with quote
Post Re: Exploding Arms
Are you using a modded actor? Or is it a vanilla one?


Sun Apr 13, 2014 8:08 pm
Profile

Joined: Thu Oct 04, 2012 4:53 am
Posts: 30
Reply with quote
Post Re: Exploding Arms
Vanilla. And I've tried many different ones. I made the first gun and gave up because of this problem about a year ago and just recently decided to try again.


Tue Apr 15, 2014 3:55 am
Profile

Joined: Sun Jul 22, 2012 3:06 pm
Posts: 129
Reply with quote
Post Re: Exploding Arms
Try using more standard AtomGroup and DeepGroup settings;



Edit: nvm a lot of weapons seem to use your atomgroup settings... Are you having the magazine with HitsMOs/GetsHitByMOs?


Tue Apr 15, 2014 5:24 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 10 posts ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.045s | 14 Queries | GZIP : Off ]