Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → Need Guided Missile .cog
Need Guided Missile .cog
2000-09-26, 9:19 AM #1
Uh, didn't you read the subject? Anyway, I will give whoever makes it FULL credit in my patch. Whoever finishs it, just post that you have the .cog in this thread and I will contact you, since I did NOT put my real e-mail address when I signed up (my Dad doesn't want to give away our e-mail address to everyone on the Net). I want the .cog to just be a .cog, like the smoke .cog, which I just need to attach to a template. Please set it up so that the template aligns itself with the player's Line Of Site. Thanks.

The way it REALLY happened...
*Stormtrooper talking to Luke and Obi-wan in Mos Eisly* "Go on, old man, don't worry about using Force mind tricks on me, everybody playing JK knows what lousy shots us stormies are..."
2000-09-26, 9:26 AM #2
Actually, I meant to say that I would like for the .cog to align the template to which the .cog is attached to the players Line Of Sight (I am sick with the flu, so forgive me for my bad grammar). I think Hideki could make one for me, although I will accept almost ANYONE'S help. If I use it in my patch, I will give credit to the creator.

The way it REALLY happened...
*Stormtrooper talking to Luke and Obi-wan in Mos Eisly* "Go on, old man, don't worry about using Force mind tricks on me, everybody playing JK knows what lousy shots us stormies are..."
2000-09-26, 9:55 AM #3
so you want the player to see from the missles point of view?

------------------
I'm better than you!
(The Pit)
It r0x0rz, j00 sux0rz
2000-09-26, 2:49 PM #4
no , buddy , he wants what ive been trying to get to work[only very partially successfully] for my half-life tc , for the missle to follow where the player is looking , so ie it will follow the players LOS..ken?
i'd appreciate one as well cuz i'm not doing too well on mine..

peace.
-Dormouse

------------------
#define QUESTION((2b) | | !(2b))
/*Shakespeare*/
Also, I can kill you with my brain.
2000-09-26, 3:54 PM #5
hmm... i dont have the time to do it on my own...but you might want to try somthing like this:

Playerlook=GetThingLook(player);

SetThingLook(missile, Playerlook);

just a thought...i dont know if it will work
I'm just an old man with a skooma problem.
2000-09-26, 4:10 PM #6
uhh. ok.

------------------
I'm better than you(The Pit)
It 0wnz0rz j00
2000-09-27, 12:52 AM #7
Thanks. I will try that. Another .cog I need is a Remote .cog (and no, I am not talking about those annoying droids), where when a specific template is created, your player freezes until the template is destroyed, your player's POV switch's to the template's POV, and instead of moving the player, you can move the template. Think Force Farsight from MotS, only with a gun and the ability to turn on switchs. Do you understand, can you help with this second .cog?

The way it REALLY happened...
*Stormtrooper talking to Luke and Obi-wan in Mos Eisly* "Go on, old man, don't worry about using Force mind tricks on me, everybody playing JK knows what lousy shots us stormies are..."
2000-09-27, 7:55 AM #8
Well, I got the guided missile to be guided left and right, but it won't go up or down. Any ideas? I used:

look = GetThingLVec(player);
SetThingLook(GetSenderRef(), look);

The way it REALLY happened...
*Stormtrooper talking to Luke and Obi-wan in Mos Eisly* "Go on, old man, don't worry about using Force mind tricks on me, everybody playing JK knows what lousy shots us stormies are..."
2000-09-27, 8:57 AM #9
try this, have it shoot a projectile rapidly(something like the laser pointer) when the prjectile hits something(explode=+anothertemplet) it makes something
that the missile can track like a 3do or something ,it should only stay a sec the so it up dates when you move. I tried to make it as clear as posible
Jedi Knight Resource Center(JKRC)
http://www.geocities.com/quasar_15_m/index.html

Red Green
"The handy-mans secret weapon......duct tape"

"keep your stick on the ice"
2000-09-27, 9:01 AM #10
man , ive tried that a hundred different ways and it works at best one time in ten..for my half-life mod the rocket-propelled-grenade is s'posed to track the laserdot , it only works on occasion tho..the laser dot itself is pretty kickin' tho..(:

peace.
-Dormouse

------------------
#define QUESTION((2b) | | !(2b))
/*Shakespeare*/
Also, I can kill you with my brain.
2000-09-27, 2:16 PM #11
yeah, i have been experimenting with this idea...but only i made it so you actually steer the missile from its POV, it still wont go up or down...
I'm just an old man with a skooma problem.
2000-09-28, 12:26 PM #12
Well, I think the general idea is to create the laser dot from your rocket launcher and let the missile trace it.

For doing it, maybe create the laser pointer, and attach a cog to the dot (when the pointer hits surface) to send its position to the missile and let the missile face and force applied.

dotPath = VectorSub(GetThingPos(missile), GetThingPos(dot));
SetThingLook(missile, dotPath);
ApplyForce(missile, vectorScale(dotPath, someStrength));

You have to keep on doing this for every dot you make, so it should eventually move that way naturally forced.

------------------
http://millennium.massassi.net/ - Millennium
2000-09-28, 1:26 PM #13
To: Hideki
Uh huh. Well, THAT post was completely lost on me, except for a word here and there. Okay, here are some of the problems I have:

1. What does the dot and the missile equal? Is it GetSenderRef(), GetSourceRef(), or something else entirely?

2. Is this the entire cog and I just attach it to a template, or do I need to put this in a weapon cog?

3. Could you do it for me? I am NOT completely helpless, I have been programming close to 5 years, and for 5 years this stupid cog has eluded me. I have made alot of things, but when it comes to things like this, I don't know how to make it work. I will give you full credit for making it!

The way it REALLY happened...
*Stormtrooper talking to Luke and Obi-wan in Mos Eisly* "Go on, old man, don't worry about using Force mind tricks on me, everybody playing JK knows what lousy shots us stormies are..."
2000-09-28, 3:36 PM #14
Probablly keep the missile as a variable that can be retreived from other cogs (say,

missile = FireProj();
SetInv(player, 116, missile);

And you put a cog on the dot, which you do in the template like this

laser_pointer _weapon fleshhit=dot hit=dot other_params

dot _explosion cog=dot.cog thingflags=0x400 (add the thing flag that was set by parent as well)

so when the dot is created and the created message gets called in the dot cog, you let the missile which is GetInv(player, 116) (in this case) and do the above method.

Don't think I have time for the full cog.

------------------
http://millennium.massassi.net/ - Millennium
2000-09-29, 1:10 AM #15
Hey, if I keep you talking you'll probably give 20-30 different versions of this .cog [http://forums.massassi.net/html/wink.gif] [http://forums.massassi.net/html/rolleyes.gif] Actually, thank you very much. I will try this out (it would be cool if I could make it track ANY template...)

The way it REALLY happened...
*Stormtrooper talking to Luke and Obi-wan in Mos Eisly* "Go on, old man, don't worry about using Force mind tricks on me, everybody playing JK knows what lousy shots us stormies are..."
2000-09-29, 3:37 AM #16
That was 1 way all the time, 2 posts were telling the same methods, latter only explaining deeper.

First make the laser and should be easy with the method shown above.

------------------
http://millennium.massassi.net/ - Millennium
2000-09-29, 6:43 AM #17
Thanks! I got a question, though. Me and some other guys on the Net are making a second Matrix TC. Are any of you people interested? We have everything from Autoguns (automatically seeking and firing guns attached to the player) to Flare pistols. BTW, Hideki, I learned from some of your .cogs, to be exact, the Remote Bomber .cog and the Seeker Rail .cog. I have already written out you credits, thank you for all your help. I will ask you again if I need more help.

------------------

The way it REALLY happened...
*Stormtrooper talking to Luke and Obi-wan in Mos Eisly* "Go on, old man, don't worry about using Force mind tricks on me, everybody playing JK knows what lousy shots us stormies are..."

The way it REALLY happened...
*Stormtrooper talking to Luke and Obi-wan in Mos Eisly* "Go on, old man, don't worry about using Force mind tricks on me, everybody playing JK knows what lousy shots us stormies are..."
2000-09-29, 8:00 AM #18
Drat. It didn't work. Okay, call me what you want IF it will get this done. Besides, a though just hit me (OUCH!). Hideki, in your Sniper Arena patch, you made that scope follow the player's POV left, right, AND UP AND DOWN! How did you do that little miracle (I know, I know that I am not the best in the world... yet! MWAHAHAHAHAHAHAH) :mad: [http://forums.massassi.net/html/cool.gif] Anyway, tell me and if I can understand it I will try it (I understood the other posts of yours enough to mess up, didn't I?) [http://forums.massassi.net/html/rolleyes.gif]

------------------

The way it REALLY happened...
*Stormtrooper talking to Luke and Obi-wan in Mos Eisly* "Go on, old man, don't worry about using Force mind tricks on me, everybody playing JK knows what lousy shots us stormies are..."

The way it REALLY happened...
*Stormtrooper talking to Luke and Obi-wan in Mos Eisly* "Go on, old man, don't worry about using Force mind tricks on me, everybody playing JK knows what lousy shots us stormies are..."
2000-09-29, 10:05 AM #19
'bout the inventory thing , yeah man i did it that way , set the dot when created the thing number as an inventory thing , tho pr'y should use itz guid instead. i'm kinda bored , so i'll mess around with it some more..

peace.
-Dormouse

------------------
#define QUESTION((2b) | | !(2b))
/*Shakespeare*/
Also, I can kill you with my brain.
2000-09-29, 12:52 PM #20
*Cough* look at MotS rail seeker COG *Cough*

No it's not illegal if your just learning the code from it...besides Al MacDonald used the cape mesh from MotS, just like everyone else. Besides do you think LEC actually cares? You can't even buy JK without getting MotS with it anymore.
Bassoon, n. A brazen instrument into which a fool blows out his brains.
2000-09-30, 3:00 AM #21
buddy , the seeking raildet is not what am looking for , i tried using it as a base and was not thrilled with the results..(:
think rocket-propelled laser-guided grenade-launcher..(=

peace.
-Dormouse http://treaclemouse.cjb.net/

------------------
#define QUESTION((2b) | | !(2b))
/*Shakespeare*/
Also, I can kill you with my brain.

↑ Up to the top!