Here's what I'm trying to do. I want to fire a ghost then a projectile and have the ghost always be in the middle of the screen, moving forward, while having a 0.1 jku lead on the projectile behind it. Basically the ghost will be a guide for the projectile so that the projectile moves towards the crosshair.
Think of a mile long bar extending from inbetween kyles eyes.
I want the ghost to always stay on that bar, moving forward on it, no matter where kyle is looking, while maintaining a 0.1 jku lead on the projectile.
I think I can do it with something similar to this:
Pulse:
Lvec=GetThingLVec(headpitchghost);
FancyVector=Something based off LVec combined with some GetThingPos's + 0.1; ???
SetThingPos(centerproj, FancyVector);
SetThingLVec(centerproj, LVec);
SetThingVel(projectile, VectorSub(GetThingPos(centerproj), GetThingPos(projectile), #));
return;
I just need to know what FancyVector needs to be in order to get it all worked out.
I hope I haven't confused anyone, because this is the best that I can explain it.![http://forums.massassi.net/html/smile.gif [http://forums.massassi.net/html/smile.gif]](http://forums.massassi.net/html/smile.gif)
------------------
-Hell Raiser
Cogging type person that does, umm, stuff?
"Free, your, mind."
DBZ: TDIR has a new home!
[This message has been edited by Hell Raiser (edited January 05, 2002).]
Think of a mile long bar extending from inbetween kyles eyes.
![http://forums.massassi.net/html/smile.gif [http://forums.massassi.net/html/smile.gif]](http://forums.massassi.net/html/smile.gif)
I think I can do it with something similar to this:
Pulse:
Lvec=GetThingLVec(headpitchghost);
FancyVector=Something based off LVec combined with some GetThingPos's + 0.1; ???
SetThingPos(centerproj, FancyVector);
SetThingLVec(centerproj, LVec);
SetThingVel(projectile, VectorSub(GetThingPos(centerproj), GetThingPos(projectile), #));
return;
I just need to know what FancyVector needs to be in order to get it all worked out.
I hope I haven't confused anyone, because this is the best that I can explain it.
![http://forums.massassi.net/html/smile.gif [http://forums.massassi.net/html/smile.gif]](http://forums.massassi.net/html/smile.gif)
------------------
-Hell Raiser
Cogging type person that does, umm, stuff?
"Free, your, mind."
DBZ: TDIR has a new home!
[This message has been edited by Hell Raiser (edited January 05, 2002).]
-Hell Raiser