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 → Cavey needs a cog.
Cavey needs a cog.
2001-10-10, 7:06 AM #1
Okay, i need a cog...
You enter a sector, then you see that nice blinding effect, which lasts 2 seconds, and while the effect is running, you get teleported to a ghost position.
thanks [http://forums.massassi.net/html/biggrin.gif]

------------------
Guns don't kill people. Kids who play computer games do.
[edit: Visit Cave_Demon's site: http://cave2.2ya.com ! -stat]
[This message has been hacked by StaticX (edited September 11, 2001).]
WHAT?
2001-10-10, 7:46 AM #2
Here ya go...

Code:
symbols

message		entered
message		timer

sector		effective_sector
thing		ghost_pos

int		R=200
int		G=210
int		B=200

thing		player				local
int		blindingEffectHandle=-1		local

end


code

//-----------------------------------------------------------------------------

entered:
	if (GetSenderRef() != effective_sector) return;
	player = GetSourceRef();

        blindingEffectHandle = newColorEffect(0, 0, 0, 0, 0, 0, R, G, B, 1.0);
        SetActorFlags(player, 0x800);

	SetTimerEx(1, 1, player, 0);
        SetTimerEx(2, 2, player, 0);

	return;

timer:
	player = GetParam(0);
	if (GetSenderID() == 1) TeleportThing(player, ghost_pos);
	if (GetSenderID() != 2) Return;

	if(blindingEffectHandle!=-1)
	{
	   freeColorEffect(blindingEffectHandle);
	   blindingEffectHandle = -1;
	}

	// Get the effect ramping down
	AddDynamicTint(player, R, G, B);
	ClearActorFlags(player, 0x800);

	return;

end
2001-10-10, 8:26 AM #3
You sure are getting your name to the credits of my level [http://forums.massassi.net/html/biggrin.gif]

------------------
Guns don't kill people. Kids who play computer games do.
[edit: Visit Cave_Demon's site: http://cave2.2ya.com ! -stat]
[This message has been hacked by StaticX (edited September 11, 2001).]
WHAT?
2001-10-10, 8:31 AM #4
kewl... credits! hehe... always glad ta help (where i can lol)
2001-10-10, 12:45 PM #5
YEARHGHG Risha got to it before me again !!!
2001-10-10, 4:37 PM #6
I steal all the eazy cogs hehe... you can have the hard ones Seifer [http://forums.massassi.net/html/tongue.gif]
2001-10-10, 6:23 PM #7
lol thank you [http://forums.massassi.net/html/smile.gif]
2001-10-11, 4:39 AM #8
Yes, like mine. lol

------------------
Cordially,
Lord Tiberius Grismath
Head Administrator
GCWC.net
Cordially,
Lord Tiberius Grismath
1473 for '1337' posts.

↑ Up to the top!