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 → Cogs needed!
Cogs needed!
2001-03-18, 2:52 PM #1
Hi, does anyone have time to make me a couple of cogs for my multiplayer level, I'm think there pretty straight forward.
1. On entering sector - delete that players weapons (except saber).
2. I'm not sure if this one's possible, anyway - to be able to alter the gravity in a given sector - say from 1 to 10.
I have no idea how to even start programing these so I'm hoping you can help!
....Cheers
2001-03-19, 4:09 AM #2
Lucky if you catch some people to do.

------------------
http://millennium.massassi.net/ - Millennium
2001-03-19, 7:58 AM #3
Code:
# DestoryWeapon.COG
#
# Destroys all the players weapons except for his/her saber.
#
# (C) 2001 DragonPhinn of the Apocalyptic Editors Group
# http://www.aeg.apok.org
#
# This Cog is Not supported by LucasArts Entertainment Co

symbols
message entered

sector NoFightRoom linkid=1

thing player local

end

# ========================================================================================

code
entered:
	if(GetSenderID()==1)
	{
		player = GetLocalPlayerThing();
		SetInv(player, 1, 0);//fists
		SetInv(player, 2, 0);//e
		SetInv(player, 3, 0);// v
		SetInv(player, 4, 0);//  e
		SetInv(player, 5, 0);//   r
		SetInv(player, 6, 0);//    y
		SetInv(player, 7, 0);//     thing
		SetInv(player, 8, 0);//       else
		SetInv(player, 9, 0);//conc
		return;
	}
	return;
# ........................................................................................

end



Hasn't been tested. So, if it doesn't work, e-mail me. There is a similar cog written by Obsidian. Here. It's much better. I think it even allows weapon reactivation. Not sure.
2001-03-19, 7:58 AM #4
Yeah, It was worth a try though.
2001-03-20, 9:08 AM #5
For the gravity question, you could use the "SetGravity" verb:

>>Sets the world gravity

>>Use: SetGravity(flex);


But this will apply to the whole level. I suppose you could just trigger it with the entered message on the sector in question, but that might adversely affect the rest of your level.....

Also, if this is for MOTS, one of the early levels had a few sectors with zero gravity. Perhaps you could use that cog.


------------------
"Dead Reckoning and now Dead Reckoning 2"
Dead Reckoning
2001-03-21, 4:42 AM #6
That's great! cheers.

↑ Up to the top!