View unanswered posts | View active topics It is currently Sat Jan 11, 2025 1:18 pm



Reply to topic  [ 8 posts ] 
 ignore gravity 
Author Message

Joined: Thu Feb 24, 2011 6:44 am
Posts: 4
Reply with quote
Post 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
Profile
User avatar

Joined: Sun May 30, 2010 5:30 am
Posts: 853
Location: Auckland, NZ
Reply with quote
Post 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
Profile

Joined: Thu Feb 24, 2011 6:44 am
Posts: 4
Reply with quote
Post 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
Profile
User avatar

Joined: Sun May 30, 2010 5:30 am
Posts: 853
Location: Auckland, NZ
Reply with quote
Post Re: ignore gravity
Anywhere in the MO code, but usually just below the Mass, for neatness' sake.


Mon Apr 18, 2011 11:58 pm
Profile

Joined: Thu Feb 24, 2011 6:44 am
Posts: 4
Reply with quote
Post Re: ignore gravity
thank you sir


Tue Apr 19, 2011 5:26 pm
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: 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
Profile
User avatar

Joined: Sat Nov 03, 2007 9:44 pm
Posts: 1916
Location: Flint Hills
Reply with quote
Post 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
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: 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
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 8 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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.031s | 14 Queries | GZIP : Off ]