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 a cog, please...
Need a cog, please...
2002-09-10, 1:51 PM #1
Could someone be kind enough to give me a cog where, if a thing is killed, the level ends/restarts/walkplayer dies/any of the above?
2002-09-10, 3:00 PM #2
How about, all of the above?

Code:
# 09/2002 GBK - Packman573@aol.com
Symbols
Message Killed
Thing Victim
Thing Player	Local
Int Action=0	#0=end level, 1=restart, 2=kill player
End
Code
Killed:
Player = JKgetlocalplayer();
If(Getsenderref() != Victim) Stop;
Sleep(1);
If(Action == 0) JKendlevel(1); 
If(Action == 1) SetactorFlags(Player, 0x400000); 
If(Action == 2) Damagething(Player, 1000, 1, Player);
Stop;
End


Donno if it works . . . but it should!!

[http://www.plauder-smilies.de/yellows/king.gif]

------------------
I used to believe that we only want what we can't have. I was wrong. The truth is, the wonderful truth is, we only want what we think we can't have.

JK editing resources.
And when the moment is right, I'm gonna fly a kite.
2002-09-10, 3:03 PM #3
Does what GBK does. *starts stopwatch*

Code:
#Jedi Knight Cog Script
#
# When a thing is kill, restart level
#
# [DP]
#

symbols
thing     player     nolink  local
thing     target

message   killed

end

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

code

Killed:
   player = GetLocalPlayerThing();
   SetActorFlags(player, 0x400000);
   Return;

end

*stops stopwatch*

32 seconds, not bad. [http://forums.massassi.net/html/wink.gif]

Edit - sorry about the time, two seconds lost. [http://forums.massassi.net/html/redface.gif]

------------------
The Sniper Missions. Current project, The Sniper Missions

The Magician Saber System.

[This message has been edited by Descent_pilot (edited September 10, 2002).]
Major projects working on:
SATNRT, JK Pistol Mod, Aliens TC, Firearms

Completed
Judgement Day (HLP), My level pack
2002-09-10, 3:04 PM #4
Stupid GBK, posting right before me! [http://forums.massassi.net/html/tongue.gif]

edit - Oh and if you kill a thing to end the level, that should be handled by the objective list cog.

GBK, you should know its GetLocalPlayerThing(), not JKGet... Horrible mistake, I'm not saying I haven't made mistakes like that, but you're too advanced to do that! Shameful. [http://forums.massassi.net/html/frown.gif]

edit2 - bad English.

------------------
The Sniper Missions. Current project, The Sniper Missions

The Magician Saber System.

[This message has been edited by Descent_pilot (edited September 11, 2002).]
Major projects working on:
SATNRT, JK Pistol Mod, Aliens TC, Firearms

Completed
Judgement Day (HLP), My level pack
2002-09-10, 3:24 PM #5
Umm, do yourself a favor, consult your copy of the JKspecs/Datamaster before questioning my choice of verbs.


From the Datamaster:

Quote:
<font face="Verdana, Arial" size="2">
jkGetLocalPlayer

--------------------------------------------------------------------------------
Same as GetLocalPlayerThing().

</font>



Feel free to cower in shame.

------------------
I used to believe that we only want what we can't have. I was wrong. The truth is, the wonderful truth is, we only want what we think we can't have.

JK editing resources.
And when the moment is right, I'm gonna fly a kite.
2002-09-10, 3:32 PM #6
I fear not those I can control.

[This message has been edited by GBK (edited September 10, 2002).]
Major projects working on:
SATNRT, JK Pistol Mod, Aliens TC, Firearms

Completed
Judgement Day (HLP), My level pack
2002-09-10, 3:44 PM #7
[http://www.plauder-smilies.de/yellows/king.gif]
And when the moment is right, I'm gonna fly a kite.
2002-09-10, 4:45 PM #8
That was uncalled for! SaberMaster can you ban him for unwarrented use of his powers of Moderator, or at least de-mod him or something?

------------------
The Sniper Missions. Current project, The Sniper Missions

The Magician Saber System.
Major projects working on:
SATNRT, JK Pistol Mod, Aliens TC, Firearms

Completed
Judgement Day (HLP), My level pack
2002-09-10, 5:21 PM #9
Dont make me edit your post again!!! *shakes fist*

------------------
I used to believe that we only want what we can't have. I was wrong. The truth is, the wonderful truth is, we only want what we think we can't have.

JK editing resources.
And when the moment is right, I'm gonna fly a kite.
2002-09-11, 3:39 AM #10
Why, you should have just cause, and I don't see that. [http://forums.massassi.net/html/smile.gif] This was your fault, I said/did nothing agianst the rules, if I did, tell me!

------------------
The Sniper Missions. Current project, The Sniper Missions

The Magician Saber System.
Major projects working on:
SATNRT, JK Pistol Mod, Aliens TC, Firearms

Completed
Judgement Day (HLP), My level pack
2002-09-11, 8:40 AM #11
Since he's a Moderator, it's in his discretion to edit posts. I can't say that your reply shouldn't have been edited. And labeling moderators as "stupid" won't exactly endear you to them.

But, GBK, you should tell him the rule he broke, and you shouldn't have changed his message to that - it's demeaning.

------------------
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
2002-09-11, 12:38 PM #12
GBK, SaberMaster is right, we were both wrong, and once agian I am saying I'm sorry for what I said. Truce?


BTW - But you might have well spit in my face for changing my apology response. And I'm feeling nice today. (new g/f [http://forums.massassi.net/html/biggrin.gif] )

------------------
The Sniper Missions. Current project, The Sniper Missions

The Magician Saber System.
Major projects working on:
SATNRT, JK Pistol Mod, Aliens TC, Firearms

Completed
Judgement Day (HLP), My level pack
2002-09-13, 8:51 AM #13
Thanks!!!!

↑ Up to the top!