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 → Body-piercing projectile
Body-piercing projectile
2001-12-07, 2:47 PM #1
I'm not sure if anyone mentioned this, but the body-piercing cog from the Millennium tutorial doesnt work. It crashes the game when the projectile hits an enemy (because it doesnt stop creating a new one). I tried changing the Y value to a higher number but it still doesn't work.
I think its because it causes it to create a new template a little bit behind the enemy, but since the enemy is blocking the way, the new projectile explodes instantly and never gets past the enemy (just like firing a projectile in front of a wall). Changing the template of the new projectile causes the new one to explode instantly as well.
I also tried
Code:
lookingvec = GetThingLVec(GetSenderRef());
touched:
 newproj = CreateThingAtPosNR(projectile, GetThingSector(GetSenderRef()), GetThingPos(GetSenderRef()), '0 0 0'; 
SetThingLook(newproj, lookingvec);

but it didnt even create a new one.


[This message has been edited by IDJunkguy (edited December 07, 2001).]
2001-12-07, 5:33 PM #2
I fixed up the armor piercing bullet COG for the Army TC a few weeks ago. It used to crash going through architecture, but I got it to go through 3dos stabally. I've got a plan for it to go through walls as well (like 3 layers) w/o crashing...I'll try it now.
Bassoon, n. A brazen instrument into which a fool blows out his brains.
2001-12-08, 3:01 AM #3
Sorry about that. As it says on the news of Millennium, I haven't tested since I no more have JK in my machine.

I just borrowed the codes directly from the epme cogs and THIS one should work... (because it worked when I was testing it in mots)

------------------
http://millennium.massassi.net/ - Millennium

↑ Up to the top!