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 → GetSurfaceHit?
GetSurfaceHit?
2001-02-27, 10:52 AM #1
I know that ^that^ isn't a verb. But I need to find a way to get the world surface that a projectile hits. So far i havn't had any luck...Any ideas?


------------------
-GB
I dream in COG, It's easy as VectorX VectorY VectorZ, linkid=1 linkid=2 linkid=3!
Photogenic
I'm just an old man with a skooma problem.
2001-02-27, 6:01 PM #2
"Not a cog verb".

I know but, check this [http://forums.massassi.net/html/smile.gif]
If you what to do it for testing purpose this might be handy.

While playing the game, in your console type in

"trackshots on"

------------------
http://millennium.massassi.net/ - Millennium

[This message has been edited by Hideki (edited February 27, 2001).]
2001-02-27, 6:39 PM #3
trackshots on?

Man, Hideki, I knew that you are the best cog writer out here, but when did you start working out new console commands!? And how did you find it?!?!
No signature for you.
2001-02-27, 8:45 PM #4
Well, you could do it like so with a cog:

Code:
damaged:

if(GetThingType(GetSourceRef()) != 3) Return; //If source was not weapon projectile
if(GetSenderType() != 6) Return; //If sender was not a surface

Surf=GetSenderRef(); //Here's your surface

return;


Hope this helps. =)

------------------
-Hell Raiser
"I am not defeated so easily!"
Co-staffer of Rbots

[This message has been edited by Hell Raiser (edited February 27, 2001).]
-Hell Raiser
2001-02-28, 2:41 AM #5
If you use a cog, you've got to place that in every surface of your level.

As for the console, you open up "jk.exe" in a text editor, there is a part which has bunch of console commands nested. Just tried each one of them [http://forums.massassi.net/html/smile.gif]

------------------
http://millennium.massassi.net/ - Millennium
2001-02-28, 9:03 AM #6
hey Hideki about opening the jk.exe up and finding console commands. i did that a while ago and there are some pretty good ones there but half of them don't work. what i like doing is taking the thigs like red5 and chaning them to something like toad then instead of red5 being the code the code is toad
roses are red, violets are blue, I am schizophrenic, and I am too!
2001-02-28, 9:17 AM #7
Modifying the executable is a no-no, in the EULA.

------------------
http://millennium.massassi.net/ - Millennium
2001-03-01, 10:36 AM #8
I know and i have been yelled at before but it's not like i am trying to post it on massassi or anything it stays on my comp
roses are red, violets are blue, I am schizophrenic, and I am too!
2001-03-02, 3:50 PM #9
yeah, this is for a mod, so i wouldn't be able to use the code, or that cog mesasge....arg! this bites
I'm just an old man with a skooma problem.
2001-03-02, 8:57 PM #10
Then get your projectile cogged with a touched message and print out the surface material, maybe.

------------------
http://millennium.massassi.net/ - Millennium

↑ Up to the top!