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 → Need MP trap cog for MotS
Need MP trap cog for MotS
2001-08-07, 7:25 AM #1
I need an MP cog so that when you pick up a thing (like a concussion rifle) There is lightning shot at you from 2 ghost positions for a few seconds.

Thanks in advance.
P.S. I'll give you credit in the levels readme.

------------------
Get a life.
2001-08-07, 10:29 AM #2
Code:
symbols

thing concpos
thing fconc local
thing gpos1
thing gpos2

template conc
template lightning=+force_lightning

message startup
message touched
message timer
message pulse

end

code

startup:
 fconc = CreateThing(conc,concpos);
 CaptureThing(fconc);
Return;

pulse:
 CreateThing(lightning,gpos1);
 CreateThing(lightning,gpos2);
Return;

timer:
 SetPulse(0);
 fconc = CreateThing(conc,concpos);
 CaptureThing(fconc);
Return;

touched:
 if (GetSenderRef() != fconc) Return;
 DestroyThing(fconc);
 SetPulse(0.1);
 SetTimer(2);
end


NOTE: I haven't test this cog, so it might not work

Thanks
JKMeteor
"Maybe you like rainbows"
I can't remember what to say!!!!
Click here for my homepage.
2001-08-08, 8:04 AM #3
A few things wrong:
1- the weapon that is assigned respawns too fast.
2- the lightning only goes to the end of the sector and then stops.
3- I don't know why, but when you hit the lightning, the force protection (i think) icon shows up.

------------------
Get a life.

↑ Up to the top!