Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: Colonol Dekker on July 30, 2008, 10:24:30 am

Title: Velocity / vector towards co-ordinate?
Post by: Colonol Dekker on July 30, 2008, 10:24:30 am
I had a totally random thought. Is it possible to implement this as a SEXP or a weapon flag to simulate a black hole or a <doc evil> "gravity bomb" </doc evil> for either i would hope you could set the "pull" and increment over time so whoever enters the area of effect has at least a chance to "turn and burn" to escape. The damage could be handled in a seperate sexp and flags but i thought this would be an interesting line of thought.
Title: Re: Velocity / vector towards co-ordinate?
Post by: Colonol Dekker on July 30, 2008, 04:04:23 pm
Anyone3 know what i'm trying to convey?
Title: Re: Velocity / vector towards co-ordinate?
Post by: FUBAR-BDHR on July 30, 2008, 04:09:40 pm
Point singularity weapons?
Title: Re: Velocity / vector towards co-ordinate?
Post by: lostllama on July 30, 2008, 04:17:55 pm
You mean like a gravity well that can snare a ship? And the force is stronger the closer the ship is to the source of gravity and weaker the further it is away from it?

Hmm... tractor beams!!  :cool:
Title: Re: Velocity / vector towards co-ordinate?
Post by: Colonol Dekker on July 30, 2008, 04:23:38 pm
You mean like a gravity well that can snare a ship? And the force is stronger the closer the ship is to the source of gravity and weaker the further it is away from it?


Yeah, either by SEXP or for a weapon flag.. <doc evil> "gravity bomb" <doc evil>

It'd be nie to have damage start say after six/sevenths towards the centre of the well.  killing the victim upon reaching dead centre.
Title: Re: Velocity / vector towards co-ordinate?
Post by: FUBAR-BDHR on July 30, 2008, 05:17:43 pm
Used with the time compression sexp you could also give the effect of time slowing down as you approach the center. 
Title: Re: Velocity / vector towards co-ordinate?
Post by: Colonol Dekker on July 30, 2008, 05:36:40 pm
Whoop!! 

FUBAR Aproves :yes: Time dialation = an aspect i hadn't thought of.

Hopefully this is all doable in chunks for 3.6.11 ;7
Title: Re: Velocity / vector towards co-ordinate?
Post by: WMCoolmon on July 30, 2008, 11:38:29 pm
I'm not sure but I thought someone had already done stuff with gravity in the code. I know for sure that there's been a script done for artificial gravity, but I'm not sure that it's acceptable for public release or not.
Title: Re: Velocity / vector towards co-ordinate?
Post by: Goober5000 on July 31, 2008, 01:53:55 am
Gravity points are on my to-do list.  Some of the flags are already in place, but most of the code hooks are not.
Title: Re: Velocity / vector towards co-ordinate?
Post by: JGZinv on July 31, 2008, 03:07:04 am
Bax has been working on different tractor beams as well. Might want to touch base with him.

Maybe I'm not on the same track, but I believe this could have implications for beam weaponry as well.