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 → Create at Node
Create at Node
2003-06-22, 4:22 AM #1
Hi!
Is it possible to create something at an object's node? Like smoke from a StormTrooper's hand?

/Edward
Edward's Cognative Hazards
2003-06-22, 6:07 AM #2
no, not at all.

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

The Magician Saber System.

The 2 riddle!
Major projects working on:
SATNRT, JK Pistol Mod, Aliens TC, Firearms

Completed
Judgement Day (HLP), My level pack
2003-06-22, 8:56 AM #3
He's right. You can create it at the stormtrooper's position then give it an offset so it's close to the hand, but when you move around it'll be ugly.

------------------
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.
2003-06-22, 6:48 PM #4
If you're making something that stays attached to the actor, I wouldn't bother reading this:

Open up the 3do and find the coordinates of the node. You'll probably have to add node vectors if it's further out (like a hand, arm, foot, leg, etc.) Then, in your cog, do something like this:
"NodeVec" represents the node position you figured.
Code:
NewThing = CreateThingAtPos(Template, GetThingSector(Actor), VectorAdd(GetThingPos(actor), NodeVec), '0 0 0');
SetThingVel(NewThing, GetThingVel(actor));
Now, you'll also need to make sure you have a value for "airdrag" for the newthing in the template, so it has a natural friction effect in the air. You may want to do the same for surfdrag (might be "surfaceDrag") and even possibly staticdrag.

Also when adding the vectors, take into consideration the key playing (or possibly the pup submode), and the insert offset of the 3do. This method isn't totally accurate, but with a little messing around, you can get it how you want.

------------------
"The Just shall live by faith." - Galatians 3:11
To edit is human... To COG is divine!!

pegasus_1984: Stop bushing that dang suck button.
guitarofgold: NOOOOOOOOO!!!!
-------[end post]-------
Catloaf, meet mouseloaf.
My music
2003-06-22, 7:23 PM #5
you will have a google-plex lines of code and still not get everything done. listen to me when I say this

THERE IS NO WAY TO DO IT IN COG.

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

The Magician Saber System.

The 2 riddle!
Major projects working on:
SATNRT, JK Pistol Mod, Aliens TC, Firearms

Completed
Judgement Day (HLP), My level pack
2003-06-22, 7:52 PM #6
The best way would be changing the model, but, eh...

------------------
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.
2003-06-22, 9:24 PM #7
Quote:
<font face="Verdana, Arial" size="2">Originally posted by Descent_pilot:
THERE IS NO WAY TO DO IT IN COG.</font>
I have, when an actor drops a gun.

------------------
"The Just shall live by faith." - Galatians 3:11
To edit is human... To COG is divine!!

pegasus_1984: Stop bushing that dang suck button.
guitarofgold: NOOOOOOOOO!!!!
-------[end post]-------
Catloaf, meet mouseloaf.
My music
2003-06-23, 1:53 AM #8
OK, do you know what I want! I want a person, whose KEYs I've made so that he's playing poker, to have a cigerette in his left hand and that hand, every now and then, moves up to his mouth. I can change the 3DO so there is a cig in his hand, but what I can't do is create smoke there... Any ideas?

/Edward
Edward's Cognative Hazards
2003-06-23, 3:18 AM #9
Find a point and keep his hand there as much as you can or around it. It tricked the users, its not done it cog, but it looks okay/nice.

BTW - creating a powerup when an actor dies is just removing a part of a 3do. The droped weapon is created at he pos of the thing.

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

The Magician Saber System.

The 2 riddle!
Major projects working on:
SATNRT, JK Pistol Mod, Aliens TC, Firearms

Completed
Judgement Day (HLP), My level pack
2003-06-23, 6:30 AM #10
I think the best way would be to add a flat plane onto the cigarette 3do where you want the smoke to travel, then apply a multi celled mat to it for the smoke, and animate that. If you want the smoke to stop or pause, just add a transparent (all black) cell on the end, and keep it on that frame.

------------------
Project leader of Dbz:TDIR
Jedi Knight Enhanced
Freelance Illustrator
2003-06-25, 9:50 AM #11
Quote:
<font face="Verdana, Arial" size="2">Originally posted by Descent_pilot:

BTW - creating a powerup when an actor dies is just removing a part of a 3do. The droped weapon is created at he pos of the thing.</font>[/quote]Wasn't that exactly my point? (Creating a new thing) I created the gun right at the actor's r_hand node. It wasn't perfect, but who's going to notice when you're being blasted at?

Now Edward, since you have a moving 3do, you'll have to get the coordinates where the smoke will appear. If you only have it appear when he takes a drag, you can figure out where it should appear. There's an attach flag that allows you to attach a thing to the surface of the 3do, but you can't control exactly which surface. If you coordinate it right at the level startup, you could probably attach the smoke thing to the cigar, but it'll take some time to figure out exactly where. I never said it would be easy to do. You'll also be better off creating a ghost there so you have something to create the smoke at. If you create the ghost from cog, change (or make a new) template so type=cog. There's sometimes problems creating ghosts through cog. I recommend putting in the jkl directly and messing with attach flags.

Have fun. [http://forums.massassi.net/html/wink.gif]

[heh heh heh]

------------------
"The Just shall live by faith." - Galatians 3:11
To edit is human... To COG is divine!!

pegasus_1984: Stop bushing that dang suck button.
guitarofgold: NOOOOOOOOO!!!!
-------[end post]-------
Catloaf, meet mouseloaf.
My music
2003-06-25, 11:41 AM #12
OK, I've done it in another way, almost COG free... I set a ghost at the position of the hand, and another at the mouth, and with a simple COG, made the smoke come at point1 when hand was down, point2 when hand was up, and out the head when hand had just settled...
But I won't mind having the knowladge for another time... Please give write me a COG and I'll study it for a next time...

/Edward
Edward's Cognative Hazards

↑ Up to the top!