Page 1 of 1

Gravity (Packethook 0x7, 0x8)

Posted: Thu Mar 16, 2006 7:44 am
by FreeSoul
The source isn't mine... I've made a few fixes for multis and z<0.
works for items placed on other items...

example: bottle on table
If you pick the table the bottle will fall down on the ground

Posted: Thu Mar 16, 2006 3:47 pm
by CWO
hehe you should have the bottle shatter into little pieces if you do that too :P :lol:

Posted: Thu Mar 16, 2006 6:07 pm
by FreeSoul
hehehe... yes, but if someone have pillow under the table? :)
or if you have nitro in the bottle??

Code: Select all

foreach item in listitemsnearlocation(bottle.x,bottle.y,bottle.z,20)
destroyitem(item);
//here make some explosion anims :)
endforeach
if (item.multi)
destroymulti(bottle.multi);
endif
destroyitem(bottle);
???:D

Posted: Fri Mar 17, 2006 6:58 am
by Matrix
explosion anims :)

Posted: Sat Mar 18, 2006 2:16 am
by FreeSoul
in drop.src should be:
MoveItemToLocation( item, x, y, z );

without forcelocation :)