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 → Chopping off limbs in the kyle.cog
Chopping off limbs in the kyle.cog
2000-12-13, 2:30 AM #1
Code:
template blast=+blast

# ........................................................................................

damaged:
   if(GetParam(1) == 32) call make_bubbles;

   ReturnEx(GetParam(0));

// If it's physical damage 
if(GetParam(1)==64)
	{
		ReturnEx(0);
		return;
	}
   ReturnEx(GetParam(0));

if(GetSenderRef() == blast)
{AmputateJoint(player, 9);
 AmputateJoint(player, 5);
}
   ReturnEx(GetParam(0));
   Return;
Ok here is the damaged message, when hit with the explosion I want it to chop off some limbs. It doesnt work for some reason, can you not use AmputateJoint in multiplayer?
Jedi Knight Enhanced
Freelance Illustrator
2000-12-13, 7:50 AM #2
You CAN chop off limbs in multiplayer. Have you tried with other numbers?
No signature for you.
2000-12-13, 10:33 AM #3
/me laughs
A cog question I can actualy answer!
Instead of using a number, use the name of the mesh. Example: AmputateJoin(player, k_rleg) would amputate the leg. It seems the number 7 is the only number which actualy works..it amputates an arm I believe.

------------------
All that is gold does not glitter, Not all those who wander are lost; The old that is strong does not wither,
Deep roots are not reached by the frost. From the ashes a fire shall be woken, A light from the shadows shall spring; Renewed shall be blade that was broken, The crownless again shall be king.

[This message has been edited by Aglar (edited December 13, 2000).]
2000-12-13, 11:43 AM #4
if(GetSenderRef() == blast)
{
AmputateJoint(player, 9);
AmputateJoint(player, 5);
}


Does that work? I thought GetSenderRef() just returned a number so you would
have to do something like:

if(GetThingTemplate(GetSenderRef()) == blast)


Also I think AmputateJoint() works for those number, but maybe only locally so you might
have to use a SendTrigger();
- Wisdom is 99% experience, 1% knowledge. -
2000-12-13, 12:00 PM #5
I tried repeatedly with numbers. 7 is the only one. Just use meshes, it's easy.

------------------
All that is gold does not glitter, Not all those who wander are lost; The old that is strong does not wither,
Deep roots are not reached by the frost. From the ashes a fire shall be woken, A light from the shadows shall spring; Renewed shall be blade that was broken, The crownless again shall be king.

[This message has been edited by Aglar (edited December 13, 2000).]
2000-12-13, 3:49 PM #6
hmmm, as i recall, once you amputate a limb it wont come back even if you die. so i suggest yuo use a new player model.
I'm just an old man with a skooma problem.
2000-12-14, 3:44 AM #7
Limbs dont come back after you die? hmm, oh well, thanks anyway [http://forums.massassi.net/html/smile.gif]
Jedi Knight Enhanced
Freelance Illustrator

↑ Up to the top!