Author |
Message |
nawhle
Joined: Thu Feb 24, 2011 6:44 am Posts: 4
|
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
|
Mon Apr 18, 2011 10:16 pm |
|
|
Major
Joined: Sun May 30, 2010 5:30 am Posts: 853 Location: Auckland, NZ
|
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.
|
Mon Apr 18, 2011 10:38 pm |
|
|
nawhle
Joined: Thu Feb 24, 2011 6:44 am Posts: 4
|
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?
|
Mon Apr 18, 2011 11:40 pm |
|
|
Major
Joined: Sun May 30, 2010 5:30 am Posts: 853 Location: Auckland, NZ
|
Re: ignore gravity
Anywhere in the MO code, but usually just below the Mass, for neatness' sake.
|
Mon Apr 18, 2011 11:58 pm |
|
|
nawhle
Joined: Thu Feb 24, 2011 6:44 am Posts: 4
|
Re: ignore gravity
thank you sir
|
Tue Apr 19, 2011 5:26 pm |
|
|
Asklar
Data Realms Elite
Joined: Fri Jan 07, 2011 8:01 am Posts: 6211 Location: In your office, earning your salary.
|
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.
|
Tue Apr 19, 2011 9:55 pm |
|
|
Azukki
Joined: Sat Nov 03, 2007 9:44 pm Posts: 1916 Location: Flint Hills
|
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.]
|
Wed Apr 20, 2011 2:12 am |
|
|
Asklar
Data Realms Elite
Joined: Fri Jan 07, 2011 8:01 am Posts: 6211 Location: In your office, earning your salary.
|
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.
|
Thu Apr 21, 2011 9:21 pm |
|
|
|