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 → Post your Favorite COG Command!
Post your Favorite COG Command!
2004-06-21, 6:26 PM #1
Code:
jkStingConcatFormattedFlex(flex, "string %f string");


Because it's so bloody long. [http://forums.massassi.net/html/biggrin.gif]
Cordially,
Lord Tiberius Grismath
1473 for '1337' posts.
2004-06-21, 7:11 PM #2
Movetoframe

------------------
~Nightfire Mod~
Spoting an error in post will result in a $100 reward.
Offer expires on 6/6/06. Valid one per customer, per day.

Rangi
2004-06-21, 9:03 PM #3
dummy = FireProjectile(parent, template, sound, submode, offset, error, extra flex, flags, autoaim fov x, autoaim fov z);

All from memory! YEAH! [http://forums.massassi.net/html/biggrin.gif]

------------------
nytfyre m0d || f33l t3h p0w3r || t3h l0st c0gz || OMF > *
May the mass times acceleration be with you.
2004-06-22, 1:30 AM #4
if Grismath == alive {
setthing(democog,inmyinbox)
}
else setthing(corpse,pissedon)

#kthx

------------------
-Proud Leader of the Minnessassian Council
<]-[ellequin> Nothing is quite as satisfying as placing a .177 lead pellet in between the eyes of a cat.
<]-[ellequin> I think I will leave it's corpse there, to warn all the other cats to keep out of my hibiscus patch

Live on, Adam.
ᵗʰᵉᵇˢᵍ๒ᵍᵐᵃᶥᶫ∙ᶜᵒᵐ
ᴸᶥᵛᵉ ᴼᵑ ᴬᵈᵃᵐ
2004-06-22, 3:17 AM #5
SetActorsFlag(victim; 0x400000);

lol. #

------------------
eternity is the now ~ that never was
2004-06-22, 3:56 AM #6
Stop; [http://forums.massassi.net/html/redface.gif]

------------------
Dear lady, can you hear the wind blow, and did you know
Your stairway lies on the whispering wind.
:wq
And when the moment is right, I'm gonna fly a kite.
2004-06-22, 6:46 AM #7
I saw that one coming... [http://www.sestus.net/images/gbk.gif]

------------------
Lif e of Grismath
and
Rites of Xanthus

[This message has been edited by Lord_Grismath (edited June 22, 2004).]
Cordially,
Lord Tiberius Grismath
1473 for '1337' posts.
2004-06-22, 7:01 AM #8
GetParticleTimeOutRate()...ever used this?
Or what about SetHeadLightIntensity()?

------------------
"Häb Pfrässe, süsch chlepfts!" - The coolest language in the world (besides Cherokee)
"Häb Pfrässe, süsch chlepfts!" - The coolest language in the world (besides Cherokee)
2004-06-23, 10:54 AM #9
Probably SetThingUserData(thing, data);

It just is so useful...I wish it were possible to include more than one thing in the data. There's some tricks you can use to hold more than one value, but not more than one thing.
2004-06-23, 1:12 PM #10
ParseArg(dummy, "cog=-1");

I know it's annoying to synch this command in multiplayer, but it just opened up so many possibilities for me way back when.

Quib Mask
2004-06-23, 1:54 PM #11
I have no real favourite... I guess SetActorFlags(player,0x840000); just simply because then you can skip ingame cut-scenes... [http://forums.massassi.net/html/biggrin.gif]
Edward's Cognative Hazards
2004-06-24, 5:42 AM #12
That rotate thing around other thing as pivot function, I forget what it was, but as it sounds, it rotated one thing around another, using the other as a pivot point. Really useful if you were creative.

------------------
Bassoon, n. A brazen instrument into which a fool blows out his brains.

[This message has been edited by Emon (edited June 24, 2004).]
Bassoon, n. A brazen instrument into which a fool blows out his brains.
2004-06-24, 8:14 AM #13
Sleep()

------------------
nil nip nada zip zero naught lip zil
This is retarded, and I mean drooling at the mouth
2004-06-24, 7:29 PM #14
*points gris to previous post*

------------------
-Proud Leader of the Minnessassian Council
<]-[ellequin> Nothing is quite as satisfying as placing a .177 lead pellet in between the eyes of a cat.
<]-[ellequin> I think I will leave it's corpse there, to warn all the other cats to keep out of my hibiscus patch

Live on, Adam.
ᵗʰᵉᵇˢᵍ๒ᵍᵐᵃᶥᶫ∙ᶜᵒᵐ
ᴸᶥᵛᵉ ᴼᵑ ᴬᵈᵃᵐ
2004-06-25, 2:37 AM #15
Quote:
<font face="Verdana, Arial" size="2">Originally posted by F-Body:
Sleep()

</font>


O.o F-BODY, YOU FORGOT THE ;!!!

------------------
Life of Grismath
and
Rites of Xanthus
Cordially,
Lord Tiberius Grismath
1473 for '1337' posts.
2004-06-26, 4:26 PM #16
This has been really bugging me...

What is 'call'?

I know what it does (calls a message), but it's technically not a cog verb. (It's not in the JK.exe)

Is it possible that there are other verbs/commands/whateveryouwanttocallit in JK for things like sine, cosine, or other random stuff?

------------------
Sam: "Sir we can't call it 'The Enterprise'"
Jack: "Why not!"
Sam: "Sir we can't call it 'The Enterprise'"
Jack: "Why not!"
2004-06-26, 5:18 PM #17
Call isn't a function, I'd imagine only functions that COG can use were ever listed in the JK.exe. I'm not even sure why you can view them, I haven't had the chance to study binary files yet.

As far as trig goes, you could write them yourself, although they would be quite slow, which would create noticable performance issues if used too often.

------------------
Bassoon, n. A brazen instrument into which a fool blows out his brains.
Bassoon, n. A brazen instrument into which a fool blows out his brains.
2004-06-26, 5:41 PM #18
Quote:
<font face="Verdana, Arial" size="2">Call isn't a function, I'd imagine only functions that COG can use were ever listed in the JK.exe. I'm not even sure why you can view them, I haven't had the chance to study binary files yet.</font>


Maybe I misunderstood you, but incase I didn't, I can see the cog verbs by opening the JK.exe in notepad, and 'call' isn't in it. That's why I was wondering if maybe there are other things that are encrypted. (I used the wrong term when I said 'not in the JK.exe) I didn't crack it which is what I think you mean. Correct me if I'm completely wrong.

------------------
Sam: "Sir we can't call it 'The Enterprise'"
Jack: "Why not!"
Sam: "Sir we can't call it 'The Enterprise'"
Jack: "Why not!"
2004-06-26, 6:04 PM #19
Quote:
<font face="Verdana, Arial" size="2">Originally posted by Gris:
O.o F-BODY, YOU FORGOT THE ;!!!</font>


[http://www.timothydonaldson.com/media/logos_folder/lo_bigimages/logo_semicolon.jpg]
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[http://www.csc.calpoly.edu/~ebrunner/GrammatiCat/Punctuate/HamletCat.GIF]


HAPPY NOW!?!?!

[This message has been edited by F-Body (edited June 26, 2004).]
This is retarded, and I mean drooling at the mouth
2004-06-26, 6:15 PM #20
end;

------------------
MechWarrior: "Welcome to Massassi where stealing isn't just done, it's recomended."
<SalvadorChicka> i wasn't all "omg canadians have sex with each other!"
2004-06-26, 11:41 PM #21
Not to be picky, but there is no semicolon after end in Cog.

[edit]I've taken a look into jk.exe myself, and I must admit, that it's quite interesting. There are some unknown template keywords, cog messages, cog verbs, and so on.
[/edit]

------------------
"Häb Pfrässe, süsch chlepfts!" - The coolest language in the world (besides Cherokee)

[This message has been edited by zagibu (edited June 27, 2004).]
"Häb Pfrässe, süsch chlepfts!" - The coolest language in the world (besides Cherokee)
2004-06-27, 5:28 AM #22
Aww, you guys got my hopes up for a fleetng moment 'cuz I looked in the JK exe (which I've never done before) and it's got a little section with all kinds of trig functions.

It's really cool to look around in there, though. (What are those trig funvtions in there for anyway?)

------------------
WOOSH|-----@%

[This message has been edited by BobTheMasher (edited June 27, 2004).]
Warhead[97]
2004-06-27, 8:43 AM #23
Quote:
<font face="Verdana, Arial" size="2">Originally posted by SG-fan:
Maybe I misunderstood you, but incase I didn't, I can see the cog verbs by opening the JK.exe in notepad, and 'call' isn't in it. That's why I was wondering if maybe there are other things that are encrypted. (I used the wrong term when I said 'not in the JK.exe) I didn't crack it which is what I think you mean. Correct me if I'm completely wrong.</font>


No, you didn't, but perhaps I wasn't clear. I just meant how you can view COG verbs with a hex editor, or a text editor even, but other things in COG may not be in there. I just meant it was most likely that there was some kind of defined list or whatever that didn't translate the same way into binary as anything else. Maybe kind of how LEC even has their logo in ASCII art inside the EXE as well (prolly only noticable with a hex editor). Again I haven't had a chance to study binary files, so I'm uncertain.

------------------
Bassoon, n. A brazen instrument into which a fool blows out his brains.
Bassoon, n. A brazen instrument into which a fool blows out his brains.
2004-06-27, 3:04 PM #24
Hmmm, I'm stuck between VectorDot()/ThingViewDot() and FireProjectile() and CreateThingAtPos() and SetThingUserData() and ParseArg().

1 more thing, 'call', 'if', 'code', 'end', etc are NOT verbs, they are commands (for lack of a better term). They don't effect the JK world and effect the flow/setup of the code of the cog.

------------------
Major projects working on:
SATNRT
JK Pistol Mod
Aliens TC

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

Completed
Judgement Day (HLP), My level pack
2004-06-28, 5:42 AM #25
useful code:

if(GetThingSexy(girl) == 1){
SetThingAction(Ruthypoos, HUMP HUMP HUMP){
else
ignore;
end
Code:
if(getThingFlags(source) & 0x8){
  do her}
elseif(getThingFlags(source) & 0x4){
  do other babe}
else{
  do a dude}

↑ Up to the top!