Data Realms Fan Forums
http://45.55.195.193/

probably simple problem
http://45.55.195.193/viewtopic.php?f=1&t=18059
Page 1 of 1

Author:  Miles_T3hR4t [ Mon Mar 08, 2010 9:01 am ]
Post subject:  probably simple problem

Okay, so, I decided to update/revamp/improve my mods, and start making a few more, and In the process I found a problem I am not sure how to fix.

I made a TDE, That includes 25 MOSR Gibs. these gibs are supposed to be shrapnel, they weigh I think it was mass = 50 but anyway. I have all the gib offsets set up, so that they fit together like tiles. if anyone remembers my tradestar:conscripted, and the Pirate bomb, thats the one. All the gibs, tiled together, look exactly like the sprite of the bomb, this way it looks like it just burst into a bunch of pieces.

Here's the problem. The parts where only hitting terrain, and I realized they where HitsMos = 1 and Getshitmos = 0... I changed it to a 1, and voila, they hit actors and guns and stuff like they should. The problem is, only about 6 of them shoot off, and thats up at more than a 60 degree angle, and the rest of them clump together on the same 4x4 pixel space, even though they have offsets that make them barely touch eachother at all.

What I need is for them to not clump together, and all 25 gibs, fly off in different directions at random, that can collide with other objects, people, ships, guns etc, but not eachother. It was going everywhere the way it should have been, until I changed GetsHitMos. Is there a way to keep them getshitmos, AND keep the offsets, without them doing this.

the ini-file is included,

Attachments:
Pirate Bomb.ini [17.15 KiB]
Downloaded 157 times

Author:  Geti [ Mon Mar 08, 2010 9:52 am ]
Post subject:  Re: probably simple problem

Pin?

Author:  Miles_T3hR4t [ Mon Mar 08, 2010 9:57 am ]
Post subject:  Re: probably simple problem

Geti wrote:
Pin?


Uh, what do you mean pin? it still explodes, that's not a problem. but never mind, I got it sort-of-working.

Author:  Geti [ Mon Mar 08, 2010 10:53 am ]
Post subject:  Re: probably simple problem

I meant pin (just add a PinStrength = line) it, but okay.

Author:  Miles_T3hR4t [ Mon Mar 08, 2010 11:59 am ]
Post subject:  Re: probably simple problem

Geti wrote:
I meant pin (just add a PinStrength = line) it, but okay.

er..... I don't know of pinstrength, where does it go, and what does it do?

Author:  CaveCricket48 [ Mon Mar 08, 2010 12:35 pm ]
Post subject:  Re: probably simple problem

PinStrength makes objects unmovable, like brain cases.

Your problem is probably that your gibs don't have the MaxVelocity or MinVelocity defined in the gibs thing to launch them anywhere.

Author:  PhantomAGN [ Mon Mar 08, 2010 3:55 pm ]
Post subject:  Re: probably simple problem

My two cents: If needed, you can attach a script that "arms" the gibs by setting them to hit things after a short period of time. This is probably overkill.

Author:  Miles_T3hR4t [ Mon Mar 08, 2010 11:05 pm ]
Post subject:  Re: probably simple problem

CaveCricket48 wrote:
PinStrength makes objects unmovable, like brain cases.

Your problem is probably that your gibs don't have the MaxVelocity or MinVelocity defined in the gibs thing to launch them anywhere.


my gibs include min/max velocity in the gibbing code, I got it working for the most part... THe problem was the gibs where hitting eachother, and gibbing themselves.

Author:  lafe [ Mon Mar 08, 2010 11:23 pm ]
Post subject:  Re: probably simple problem

Miles_T3hR4t wrote:
CaveCricket48 wrote:
PinStrength makes objects unmovable, like brain cases.

Your problem is probably that your gibs don't have the MaxVelocity or MinVelocity defined in the gibs thing to launch them anywhere.


my gibs include min/max velocity in the gibbing code, I got it working for the most part... THe problem was the gibs where hitting eachother, and gibbing themselves.


set hitsmos back to zero.
them attach a sexy timed lua script that changes hitsmos from zero to one after a set delay.
then attach the script to the gibs.

Author:  Miles_T3hR4t [ Mon Mar 08, 2010 11:30 pm ]
Post subject:  Re: probably simple problem

lafe wrote:
set hitsmos back to zero.
them attach a sexy timed lua script that changes hitsmos from zero to one after a set delay.
then attach the script to the gibs.


No need, with the addition of gibimpulselimit = 5000000, and spread = 360, enough of the gibs are spawning... actually i have to many gibs from when I added some, I need to tweak it now, but it's working. I'm testing it soon at 1 sim update per 2 ms @ 60 fps to make sure they are in the right places.

i got it working, this thread can be locked or deleted now.

Author:  lafe [ Tue Mar 09, 2010 12:45 am ]
Post subject:  Re: probably simple problem

Miles_T3hR4t wrote:
lafe wrote:
set hitsmos back to zero.
them attach a sexy timed lua script that changes hitsmos from zero to one after a set delay.
then attach the script to the gibs.


No need, with the addition of gibimpulselimit = 5000000, and spread = 360, enough of the gibs are spawning... actually i have to many gibs from when I added some, I need to tweak it now, but it's working. I'm testing it soon at 1 sim update per 2 ms @ 60 fps to make sure they are in the right places.

i got it working, this thread can be locked or deleted now.


good to hear.

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/