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 → Cruise Missile
Cruise Missile
2001-11-21, 3:39 PM #1
I'm a somewhat experienced cogger. I specialize in weapons cogs (not the cheap ones that fade people and are very annoying). Anyway...I seek the help of any expert coggers that read this.

I am able to alter the velocity of projectiles on my concussion rifle and also they have guidance and seek their targets. Only one problem....the projectile will go directly toward the targets position. Therefore, if there is a wall or any other surface in the way it will collide and never reach the target. Plus my gun uses LOS to acquire a lock on the target.

The last major improvement to this gun is I want the projectile to detect when it is approaching a surface so it can maneuver its way through hallways and make it safely to it's target without hitting surfaces (even at high-velocity if possible).

I was thinking of setphysicsflags("thing", 0x10); which aligns to surface and also a vectordist code which would tell the projectile to course correct when it reached a certain distance from a surface.

Please if you know how I could do this, reply (might want to e-mail me back since I'm not consistant in checking message boards). The actual code would be helpful too since I'm not completely familiar with the cog language. If you need the entire cog, e-mail me and I may be able to arrange it. The only concern I would have is if you distribute it (I want to keep genuine cogs out of the hands of newbie downloaders).

My friend referred me to the all-powerful Massassi...so I hope you guys can help me.

Thanx Å LoT,

LeVeL_IV_ViRuS

blackbird0385@yahoo.com
2001-11-21, 8:58 PM #2
I'm not sure how AI missile can be that smart to dodge walls.

I mean, think of a wall in front of a missile, 1 end of the wall leads to an open area and another end is the joint to another wall.
Code:
      @

     ----
        |
        |
   *    |


Let's say you face this situation in above diagram.
Now * is the player, and he shoots, the target is @ and moves to the right side direction, but the missile can't just know if it can go right or left when reaching the wall, so it can't have a real smart missile from what I think.

Real cruise missiles only care the vertical altitude and not left or right, so that can be done by just searching some terrain in front and let it go up and down.

------------------
http://millennium.massassi.net/ - Millennium
2001-11-22, 1:30 AM #3
You could place a ring of ghosts around it and take emergency manuvers when a ghost hits a wall (since that would mean that the missle will hit the wall in less than a second). May be a bit jumpy, but it would work.

↑ Up to the top!