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 → SetThingParent()?
SetThingParent()?
2004-03-31, 6:57 AM #1
Hi!
I have a mod, and the weapons shoot from the vertices in the sector you're in. Now, when shooting from vertices, I create a ghost object there, and shoot. Of course, that means that the ghost is the parent and not me. How do I re-direct them so they don't like target me? If you must know my projectile, I'm using GOLEMS NUKES!!! MUHAHAHE *choke*... I've looked and there doesn't seem to be a SetThingParent(), but maybe one can fake it?
Edward's Cognative Hazards
2004-03-31, 12:39 PM #2
Perhaps try firing from the player and then using
SetThingPos(nuke, ghost),
SetThingLVec(nuke, GetThingLVec(ghost)), and
SetThingVel(nuke, VectorScale(GetThingLVec(nuke),[velocity]))
or something similar. This is just a speculation of course.

[edit] Jeez, I goofed up bigtime on the params! [http://forums.massassi.net/html/redface.gif]

------------------
Bond, Power, CA, The Force, Saber, IC, Epic, Oily Mexican Food, BG, /\ |> /\ /\/\, Sentences.
Now you know where I've been.

[This message has been edited by Darth Slaw (edited March 31, 2004).]
May the mass times acceleration be with you.
2004-03-31, 10:03 PM #3
Maybe it's too early in the morning for me, but why not perform a while loop, similar to that executed in the "force_grip" cog to check for a "potential" target and if that target is not you (presumably the person who activated/fired the weapon), then use FireProjectile([params]) at the thing... [http://forums.massassi.net/html/smile.gif]

Anyways as I say - it's still far too early for me and I really don't want to be at work today [http://forums.massassi.net/html/rolleyes.gif] [http://forums.massassi.net/html/wink.gif] - another sleepless night but, alas, not in a good way [http://forums.massassi.net/html/wink.gif].

These were just a few thoughts I had that I thought I could contribute - I haven't been able to test out Slaw's idea, but at least you're getting ideas and options... [http://forums.massassi.net/html/biggrin.gif]

-Jackpot

------------------
"lucky_jackpot is the smily god..." - gothicX

"Life is mostly froth and bubble,
But two things stand in stone,
Kindness in another's trouble,
Courage in your own"
("Ye Wearie Wayfarer" - by Adam Lindsay Gordon)
"lucky_jackpot is the smily god..." -gothicX
"Life is mostly froth and bubble, but two things stand in stone,
Kindness in another's trouble, courage in your own"
- "Ye Wearie Wayfarer"
|| AI Builder: compatible with both JK & MotS || My website ||
2004-03-31, 10:56 PM #4
Jackpot, I'm not catching your logic... Try again when you've woken up.

Darth Slaw, your idea seems like it could work. Better than my idea I got this morning:

for(i=0; i<=GetNumVertex(); i=i+1)
{
CreateThingAtPos(ghost,sector,vertex,lvr);
TeleportThing(player,ghost);
fireprojectile(NUKE);
}
But that would be fun... [http://forums.massassi.net/html/biggrin.gif] [http://forums.massassi.net/html/biggrin.gif] [http://forums.massassi.net/html/biggrin.gif]

/Edward
Edward's Cognative Hazards
2004-04-01, 4:50 AM #5
Guess what! Slaw's stuff didn't work, well ok, he admits he did booboos, and I couldn't see what was wrong, BUT my theory worked! Teleport the player all across the level firing the nukes... But, so fast you don't get to see the level from all corners...

/Edward
Edward's Cognative Hazards

↑ Up to the top!