Data Realms Fan Forums http://45.55.195.193/ |
|
ignore gravity http://45.55.195.193/viewtopic.php?f=1&t=22737 |
Page 1 of 1 |
Author: | nawhle [ Mon Apr 18, 2011 10:16 pm ] |
Post subject: | ignore gravity |
alright ive been learning as much as i can about the coding of the game before i move on to lua and ive run into a block. is there a way that i can make particles or sprites that i fire out of a weapon or emmiter ignore gravity, and on top of that ricochet of anything it comes in contact with EXCEPT with enemies. if this is possible please let me know how and if it isnt to tedious break it up so i can apply any one of those properties as well |
Author: | Major [ Mon Apr 18, 2011 10:38 pm ] |
Post subject: | Re: ignore gravity |
The effect of gravity on an MO is GlobalAccScalar. Scale is from 0 to 1. I don't know about the bouncyness/ can't be bothered to look for it. |
Author: | nawhle [ Mon Apr 18, 2011 11:40 pm ] |
Post subject: | Re: ignore gravity |
where would you put the code under a defined particle? i.e. AddEffect = MOPixel PresetName = Particle Coalition Sniper Heavy Mass = 1 LifeTime = 600 Sharpness = 100 HitsMOs = 1 GetsHitByMOs = 0 Color = Color R = 255 G = 0 B = 0 Atom = Atom Material = Material CopyOf = Bullet Metal TrailColor = Color R = 255 G = 0 B = 0 TrailLength = 42 where would place it? or would you place it undder the code where you specify this particle to be the rounds in a weapons file? |
Author: | Major [ Mon Apr 18, 2011 11:58 pm ] |
Post subject: | Re: ignore gravity |
Anywhere in the MO code, but usually just below the Mass, for neatness' sake. |
Author: | nawhle [ Tue Apr 19, 2011 5:26 pm ] |
Post subject: | Re: ignore gravity |
thank you sir |
Author: | Asklar [ Tue Apr 19, 2011 9:55 pm ] |
Post subject: | Re: ignore gravity |
Major wrote: The effect of gravity on an MO is GlobalAccScalar. Scale is from 0 to 1. Small note on that. The scale can go from -1 to 1, that means that you can do anti-gravity stuff. |
Author: | Azukki [ Wed Apr 20, 2011 2:12 am ] |
Post subject: | Re: ignore gravity |
It can be below -1 or above 1, too. So that allows 'extra' gravity, and extreme 'negative' gravity. Keep in mind that anything that ends up going over 500m/s disappears, though, because Data deems such speeds to be "stupidly fast". [even though most rifles' bullets fly faster than that in reality.] |
Author: | Asklar [ Thu Apr 21, 2011 9:21 pm ] |
Post subject: | Re: ignore gravity |
Really? They can be bigger than 1 and smaller than -1? I didn't knew that. I'll try that thing with evil purposes. |
Page 1 of 1 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |