View Full Version : Need Guided Missile .cog
Manticholarees
09-26-2000, 12:19 PM
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.
Manticholarees
09-26-2000, 12:26 PM
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.
so you want the player to see from the missles point of view?
------------------
I'm better than you!
(The Pit) (http://outpostd34.com/thepit)
It r0x0rz, j00 sux0rz
Dormouse
09-26-2000, 05:49 PM
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*/
GuNbOy
09-26-2000, 06:54 PM
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
uhh. ok.
------------------
I'm better than you(The Pit) (http://outpostd34.com/thepit)
It 0wnz0rz j00
Manticholarees
09-27-2000, 03:52 AM
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?
Manticholarees
09-27-2000, 10:55 AM
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);
gameman14
09-27-2000, 11:57 AM
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
Dormouse
09-27-2000, 12:01 PM
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*/
GuNbOy
09-27-2000, 05:16 PM
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...
Hideki
09-28-2000, 03:26 PM
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
Manticholarees
09-28-2000, 04:26 PM
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!
Hideki
09-28-2000, 06:36 PM
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
Manticholarees
09-29-2000, 04:10 AM
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...)
Hideki
09-29-2000, 06:37 AM
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
Manticholarees
09-29-2000, 09:43 AM
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..."
Manticholarees
09-29-2000, 11:00 AM
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..."
Dormouse
09-29-2000, 01:05 PM
'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*/
*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.
Dormouse
09-30-2000, 06:00 AM
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*/
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.