View Full Version : Post your Favorite COG Command!
Lord_Grismath
06-21-2004, 09:26 PM
jkStingConcatFormattedFlex(flex, "string %f string");
Because it's so bloody long. http://forums.massassi.net/html/biggrin.gif
a_person
06-21-2004, 10:11 PM
Movetoframe
------------------
~Nightfire Mod (http://www.nightfire.uni.cc)~
darthslaw
06-22-2004, 12:03 AM
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 (http://www.nightfire.uni.cc/site/page.php) || f33l t3h p0w3r (http://www.geocities.com/qrphome/pwp3/) || t3h l0st c0gz (http://www.tbns.net/GBK/ol/index.htm) || OMF > * (http://www.bkkbazaar.com/omf/)
JediKirby
06-22-2004, 04:30 AM
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.
EAH_XxLuNaTiKxX
06-22-2004, 06:17 AM
SetActorsFlag(victim; 0x400000);
lol. #
------------------
eternity is the now ~ that never was
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.
:w (http://shauri.hopto.org)q (http://www.massassi.net/levels/files/2533.shtml)
Lord_Grismath
06-22-2004, 09:46 AM
I saw that one coming... http://www.sestus.net/images/gbk.gif
------------------
L (http://www.massassi.net/levels/files/2923.shtml)i (http://www.massassi.net/levels/files/2971.shtml)f (http://www.massassi.net/levels/files/2971.shtml) e of Grismath
and
Rites (http://www.massassi.net/levels/files/2300.shtml) of (http://www.massassi.net/levels/files/2302.shtml) Xanthus (http://www.massassi.net/levels/files/2311.shtml)
[This message has been edited by Lord_Grismath (edited June 22, 2004).]
zagibu
06-22-2004, 10:01 AM
GetParticleTimeOutRate()...ever used this?
Or what about SetHeadLightIntensity()?
------------------
"Häb Pfrässe, süsch chlepfts!" - The coolest language in the world (besides Cherokee)
Wave_Of_Mutilation
06-23-2004, 01:54 PM
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.
Quib Mask
06-23-2004, 04:12 PM
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
Edward
06-23-2004, 04:54 PM
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
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).]
F-Body
06-24-2004, 11:14 AM
Sleep()
------------------
nil nip nada zip zero naught lip zil
JediKirby
06-24-2004, 10:29 PM
*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.
Lord_Grismath
06-25-2004, 05:37 AM
<font face="Verdana, Arial" size="2">Originally posted by F-Body:
Sleep()
</font>
O.o F-BODY, YOU FORGOT THE ;!!!
------------------
L (http://www.massassi.net/levels/files/2923.shtml)i (http://www.massassi.net/levels/files/2971.shtml)f (http://www.massassi.net/levels/files/2971.shtml)e of Grismath
and
Rites (http://www.massassi.net/levels/files/2300.shtml) of (http://www.massassi.net/levels/files/2302.shtml) Xanthus (http://www.massassi.net/levels/files/2311.shtml)
SG-fan
06-26-2004, 07:26 PM
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!"
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.
SG-fan
06-26-2004, 08:41 PM
<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!"
F-Body
06-26-2004, 09:04 PM
<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).]
COTF_Dude
06-26-2004, 09:15 PM
end;
------------------
MechWarrior: "Welcome to Massassi where stealing isn't just done, it's recomended."
zagibu
06-27-2004, 02:41 AM
Not to be picky, but there is no semicolon after end in Cog.
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.
------------------
"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).]
BobTheMasher
06-27-2004, 08:28 AM
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|-----@% (http://forums.massassi.net/cgi-bin/ubbmisc.cgi?action=getbio&UserName=Lord+Kael)
[This message has been edited by BobTheMasher (edited June 27, 2004).]
<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.
Descent_pilot
06-27-2004, 06:04 PM
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 (http://www.massassi.net/levels/files/2967.shtml)
[This message has been edited by Descent_pilot (edited June 27, 2004).]
Ruthven
06-28-2004, 08:42 AM
useful code:
if(GetThingSexy(girl) == 1){
SetThingAction(Ruthypoos, HUMP HUMP HUMP){
else
ignore;
end
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.