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 → Can you help me......?
Can you help me......?
2003-07-17, 8:36 AM #1
Well, I don't know how many cogs this will take, I need someone to do me a cog or two, in which modify's force lighting. When someone gets shocked, I want them to fall on the ground, and must wait 10 seconds, before there able to get up, to get up, you must push the attack key. I will make the keys/anims for this. If they are getting up and shocked again, they'll just fall down again, by another key I will make of them on the floor. I also want it so that if there on the floor and getting shocked, that there yelling, (I'll get a sound), and I'll make a key so that there like moving, plus, if you can, make like an overlapping texture of lightining appear on them. I also want lightining to be weaker, and take less mana.So will you post the cogs/cog please?

------------------
"Computer are useless, all they can give you are answers"/Pablo Piacasso
Nothing to see here, move along.
2003-07-17, 11:10 AM #2
"So will you post the cog/cogs please?"

No.

That would take a good deal of cogging.

It'd require kyle.cog, a new cog for the lightning template, a new template, new model(s), and a whole bunch of keys/sounds.

I don't think anyone's gonna just do it for you.

------------------
Brutally honest since 1998
2003-07-17, 3:06 PM #3
What he said. That's a little too much to ask for.

------------------
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
2003-07-17, 7:17 PM #4
Did you guy's even read? He said he only wants the cog, he would make the keyframes and sounds.
I would help, but I'm busy with my own projects. Good luck.

------------------
Sam: "Sir we can't call it 'The Enterprise'"
Jack: "Why not!"
Sam: "Sir we can't call it 'The Enterprise'"
Jack: "Why not!"
2003-07-17, 7:20 PM #5
That's still an arseload of cogging.

------------------
Brutally honest since 1998
2003-07-17, 7:51 PM #6
not really.
1) plays a key.
1.5) if shocked play sound and key
2) sets a timer for 10 sec
3) after 10 sec check for attack key
4) plays another key
4.5) able to be shocked again
Just ignore the overlapping texture for now and all you have is a simple cog.
Then edit the template for the lightning and change the amount of manna taken in the lightning cog. I would do it if I get the time.
Oh, is it JK or Mots?

------------------
Sam: "Sir we can't call it 'The Enterprise'"
Jack: "Why not!"
Sam: "Sir we can't call it 'The Enterprise'"
Jack: "Why not!"
2003-07-18, 10:03 PM #7
Hey, I don't mean to discourage anybody. If you want to do it, SG-fan, then go for it. [http://forums.massassi.net/html/wink.gif]

------------------
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
2003-07-19, 5:58 AM #8
Well I don't have much time, but I'll try to crank it out for ya [http://forums.massassi.net/html/wink.gif]

------------------
Sam: "Sir we can't call it 'The Enterprise'"
Jack: "Why not!"
Sam: "Sir we can't call it 'The Enterprise'"
Jack: "Why not!"
2003-07-20, 10:59 AM #9
Thanks, I'll apreciate it greatly.

------------------
"Computer are useless, all they can give you are answers"/Pablo Piacasso
Nothing to see here, move along.
2003-07-20, 11:00 AM #10
Oh its JK, if it can't be done in JK, then MOTS.

------------------
"Computer are useless, all they can give you are answers"/Pablo Piacasso
Nothing to see here, move along.
2003-07-20, 5:04 PM #11
It may be a week, cause I'm trying to redo some stuff at my house. I'm also finishing a cog for PBJ of a spaceship (for those interested it finally flips the player all 360 degrees with no problem!!!)
So I hope your cog is not needed immediately [http://forums.massassi.net/html/smile.gif]

------------------
Sam: "Sir we can't call it 'The Enterprise'"
Jack: "Why not!"
Sam: "Sir we can't call it 'The Enterprise'"
Jack: "Why not!"
2003-07-20, 5:59 PM #12
Quote:
<font face="Verdana, Arial" size="2">(for those interested it finally flips the player all 360 degrees with no problem!!!)</font>


Are we talking about flipping a model upside-down - and without using the player's torso? That I want to see.

------------------
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.

[This message has been edited by SaberMaster (edited July 20, 2003).]
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
2003-07-20, 6:19 PM #13
I'm talking about flipping the internal view and actual player in EVERY direction (pitch/yaw/roll) while inside a ship. I finally finished the cog about 1 minute ago! You can find it under 'finished flying cog' in a few minutes.

------------------
Sam: "Sir we can't call it 'The Enterprise'"
Jack: "Why not!"

[This message has been edited by SG-fan (edited July 20, 2003).]
Sam: "Sir we can't call it 'The Enterprise'"
Jack: "Why not!"
2003-07-21, 6:45 AM #14
Take your time, I don't need it that urgently. I understand, and I will wait the time it takes.So I guess I'll just hav't to sit tight.

------------------
"Computer are useless, all they can give you are answers"/Pablo Piacasso
Nothing to see here, move along.
2003-07-25, 3:11 PM #15
If you have the animations done could you post them somewhere for me to test the cog with.
Right now the cog doesn't need the person to fire to stand up, it just stands after 10 seconds. It is also set to work on AI as well as players. If you don't want AI just say so. If you still want to make them fire to stand then it will take a little bit (hopefully not to much) longer.

------------------
Sam: "Sir we can't call it 'The Enterprise'"
Jack: "Why not!"
Sam: "Sir we can't call it 'The Enterprise'"
Jack: "Why not!"
2003-08-16, 7:08 AM #16
Well, umm, no the keys are not finished yet...
I'm working on the sounds... no decent electricuting sounds... well umm, maybe they should get up by them selves.

------------------
"Computer are useless, all they can give you are answers"/Pablo Piacasso
Nothing to see here, move along.
2003-09-13, 4:46 PM #17
Well, where's the cog?

------------------
"Computer are useless, all they can give you are answers"/Pablo Piacasso
Nothing to see here, move along.
2003-09-13, 6:20 PM #18
Sorry bout that. I was waiting for you to post the keys. Here it is, but remember, it's untested. If you need anything changed just ask.

Code:
# Jedi Knight Cog Script
#
# FORCE_LIGHTNING.COG
#
# FORCEPOWER Script - Lightning
#  Dark Side Power
#  Bin 32
#
# [YB]
#
# (C) 1997 LucasArts Entertainment Co. All Rights Reserved


symbols

thing       player                           local

flex        cost=40.0                        local
int         rank                             local
int         mana                             local
int         bin                              local

template    lightning=+force_lightning       local

sound       fireSound=ForceLitning02.wav     local
int         fireChannel=-1                   local
int         modeTrack=-1                     local

flex        autoAimFOV=45                    local

keyframe        shocked=your_shock_keyframe.key		local
keyframe        stand=your_stand_keyframe.key		local
keyframe        twitching=your_twitching_keyframe.key		local

thing           victim		local

sound           yelling=your_yelling_sound.wav		local

int	onground=0		local

message     startup
message     activated
message     deactivated
message     fire
message     killed
message     selected
message     touched
message     timer

end

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

code

startup:
   player = GetLocalPlayerThing();

   Return;

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

fire:
   mana = GetInv(player, 14);
   if((mana >= cost) && (GetThingHealth(player) > 0))
   {
      if(GetInv(player, 64) != 1) ChangeInv(player, 14, -cost);

      if(fireChannel == -1)
         fireChannel = PlaySoundThing(fireSound, player, 1.0, -1, -1, 0x81);

      FireProjectile(player, lightning, -1, -1, '-0.025 0.01 0', '0 0 0', 1.0, 0, autoAimFOV, autoAimFOV);
   }
   else
   {
      if(fireChannel != -1)
      {
         StopSound( fireChannel, 0.1);
         fireChannel = -1;
      }
   }
   return;

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

activated:
   bin = GetSenderRef();
   rank = GetInv(player, 32);

   if(rank == 1)
      cost = 40.0;
   else if(rank == 2)
      cost = 35.0;
   else if(rank == 3)
      cost = 30.0;
   else if(rank == 4)
      cost = 25.0;

   ActivateBin(player, 0.3, bin);
   if (modeTrack == -1)
      modeTrack = PlayMode(player, 24);

   Return;

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

selected:
   jkPrintUNIString(player, 32);
   Return;

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

deactivated:
   bin = GetSenderRef();
   DeactivateBin(player, bin);
   call stop_power;
   Return;

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

killed:
   if(GetSenderRef() != player) Return;

   call stop_power;
   Return;

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

stop_power:
   if(fireChannel != -1)
   {
      StopSound( fireChannel, 0.1);
      fireChannel = -1;
   }

   if(modeTrack != -1)
   {
      StopKey(player,modeTrack,0.5);
      modeTrack = -1;
   }

   Return;
# ........................................................................................

touched:
   victim=GetSenderRef();
   If(GetThingType(victim) == 10 || GetThingType(victim) == 2)
   {
	if(onground==0)
	{
		onground=1;
		PlayKey(victim, shocked, 1, 0x4);
	}
	else
	{
		onground=1;
		PlaySoundThing(yelling, victim, 1.0, -1, -1, 0x80);
		PlayKey(victim, twitching, 1, 0x4);
	}
	SetTimer(10);
   }

   Return;
# ........................................................................................

timer:
   if(onground==0) return;
   onground=0;
   PlayKey(victim, stand, 1, 0x4);
   Return;
end


Hope it works.

ps. just replace the force lightning cog with this and it should work. (I hope)

------------------
Sam: "Sir we can't call it 'The Enterprise'"
Jack: "Why not!"
Sam: "Sir we can't call it 'The Enterprise'"
Jack: "Why not!"

↑ Up to the top!