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 → Bubbles... boh!
Bubbles... boh!
2001-03-31, 5:35 AM #1
How do you explain this?
[http://www.tbns.net/zell/bubbleshot0001.jpg]
I found this bubble cog, it works fine and all, but the bubbles go through walls! [http://forums.massassi.net/html/confused.gif] Here's the cog.
Code:
# Jedi Knight Missions Cog Script
# Makes sparks at a ghost for those busted lights
# [AM]
# (C) 1997 LucasArts Entertainment Co. All Rights Reserved

symbols

template Templatey=+sparks
thing    Ghosty
flex     minimumDelay=1.3
flex     maximumDelay=5.0
sound    soundy=ltsaberhit06.wav
message  startup
message  timer

end

code

startup:
   
   SetTimer(minimumDelay + Rand() * (maximumDelay - minimumDelay));

   Return;

timer:

   PlaySoundThing(soundy, Ghosty, 1, -1, -1, 0);
   CreateThing(Templatey, Ghosty);
   SetTimer(minimumDelay + Rand() * (maximumDelay - minimumDelay));

   Return;

end
DO NOT WANT.
2001-03-31, 8:43 AM #2
what?

------------------
Those who stare in the eyes of death and laugh will be the first to go.
Those who stare in the eyes of death and laugh will be the first to go.
2001-03-31, 10:17 AM #3
Ok, first things first, what you posted was not a bubble cog, it was a cog that generates a template at a ghost postition, and i guess ou changed the template to bubbles.

Secondly, you cant stop bubbles going through walls, best you can do it move the ghost object down until the bubbles fade away before they get to the wall.

------------------
Generating Electro Vibes™ for the masses on Massassi
Go To: HERE
Generating Electro Vibes™ for the masses on Massassi
Go To: BiTsToRm Forums or L3CY's Topsites
Boba Jules: You ever read the bible TK-421?
TK-421: No?
Boba Jules: Oh, ok...
*BLAM BLAM BLAM BLAM*
<EL3CTRO> EXCAUSE ME MISTAR CAERV BUT I LIEK MY PHORUMPHS!
2001-03-31, 2:37 PM #4
Say it out loud and I won't take offense: I SUCK AT COGGING!!!
DO NOT WANT.
2001-03-31, 4:03 PM #5
You could do a sector flag check on the bubbles, and destroy them if the sector isn't flagged as underwater. Or even easier - Modify the bubble template with a timer of a few seconds. Or another way to do it in cog would be to use SetThingLifeLeft, which destroys a thing after the number of seconds has passed.

------------------
Together we stand.
Divided we fall.
2001-04-01, 5:07 AM #6
Quote:
<font face="Verdana, Arial" size="2">Originally posted by Zell:
Say it out loud and I won't take offense: I SUCK AT COGGING!!![/i]</font>




[This message has been edited by Zell (edited April 01, 2001).]
DO NOT WANT.
2001-04-01, 6:33 AM #7
What's the point and the problem here?

------------------
http://millennium.massassi.net/ - Millennium
2001-04-02, 1:04 PM #8
Well, the point is, I need... okay, I'll stop pestering everyone with these petty cog problems for a pathetic little newbie at editing, if someone can write a 'cogging for dummies- no, idiots' tutorial for this 'pathetic little newbie.' *cough* The problem Is I need to figure out how to make the bubbles dissapear when the come in contact with a solid adjoin or wall.
DO NOT WANT.
2001-04-02, 9:08 PM #9
You can attach a cog to the template of the bubble using static.jkl.

For template stuff go to here

You need to add thingflags 0x400 to the bubble template and "cog=bubble.cog" and place the following stuff in a plain text named bubble.cog.

Code:
   symbols

   message touched

   end

   touched:

      if(GetSenderType() != 3) DestroyThing(GetSourceRef());

      return;

   end


------------------
http://millennium.massassi.net/ - Millennium
2001-04-03, 1:28 PM #10
That doesn't work. THere is no code section.
DO NOT WANT.
2001-04-03, 2:00 PM #11
Well, I jus added "cog" right before end, nothing after that, and it worked! The bubbles don't pop!! YAY!! Thank you, hideki! [http://forums.massassi.net/html/biggrin.gif] [http://forums.massassi.net/html/biggrin.gif] [http://forums.massassi.net/html/biggrin.gif] [http://forums.massassi.net/html/biggrin.gif] [http://forums.massassi.net/html/biggrin.gif] [http://forums.massassi.net/html/biggrin.gif] [http://forums.massassi.net/html/biggrin.gif]

[This message has been edited by Zell (edited April 03, 2001).]
DO NOT WANT.

↑ Up to the top!