PDA

View Full Version : 2 questions/problems



Edward
10-25-2003, 03:58 AM
Hi!

#1: I want the classic crate6_1/2 to respawn. Is it simply to put respawn=30 in the template, or do I have to do something more in its COG.

#2: I've taken the grappling hook from the WoW mod, and I want to modify it. How do I:
When it gets damaged, it gets destroyed (disappears) and I get pulled into the middle of the 'world'. How do I do so that, when it gets damaged, it will lose its grip and fall (and will follow all phisics including thrust).

/Edward
PS.
Some of my other topics out there are unanswered.

ZOOIkes
10-25-2003, 04:24 AM
for the respawning, I suggest to take a look at the respawning bactatank template. See if it has a cog attached or some other templateverbs.

------------------
Call me Vedder.
Author of: A Pirate's Tale (Mots SP)
APT homepage (http://www.xs4all.nl/~ceekelen/)
----
<phantom> You're always going to be aloser if you attempt to aspire to massassi standards.
<phantom> They're a bunch of socially inadequate <beep> whores who have little or no lives.

Edward
10-25-2003, 11:08 AM
OK, that's done...
Next?

Checksum
10-25-2003, 09:28 PM
Run some sort of check to see if the hook exists.

I'm not sure about the reliability of if(hook != -1), but you could try it. If the hook is -1, just let the guy fall.

------------------
Duel Zero (http://forums.massassi.net/html/Forum5/HTML/010438.html) key count: Zero! Down to guns and forces. Expect a release soon.

Edward
10-26-2003, 01:10 AM
Well, I don't want the guy to fall, I want the hook to fall.

Checksum
10-26-2003, 09:29 PM
Ok then.

Before I say any more - do you want the hook to just lose grip altogether and fall indefinitely after it's damaged, or do you want it to just sort of skip once, or what?

I can probably tell you exactly how to do it if you're real specific about what you want done.

------------------
Duel Zero (http://forums.massassi.net/html/Forum5/HTML/010438.html) key count: Zero! Down to guns and forces. Expect a release soon.

Edward
10-27-2003, 01:58 AM
OK.
When I shoot the hook away, it will stick to anything (of course). When it get's damaged (explosion, shot at, etc.) it will loose its grip, and fall (following all phisics) and then, if it hits anything else, it will restick itself.
An evil loop until you retract the hook.

/Edward

Edward
10-30-2003, 02:35 AM
Just keeping my nose over the 2 day water level...

Checksum
10-30-2003, 09:37 AM
As far as I know, the current grapple cogs use an isthingmoving() command.

All you'd need to do is give the hook gravity and godmode, and give it low enough mass that an explosion will detach it.

Then it will probably re-stick automatically as long as the pulse is still going.

------------------
Duel Zero (http://forums.massassi.net/html/Forum5/HTML/010438.html) key count: Zero! Down to guns and forces. Expect a release soon.

Edward
10-30-2003, 11:46 AM
I found nothing about making it invinsible. But I did come up with something.
In the COG I checked for removal of the object, and I created another hook pointing down. The resualt being that when I blast it, it just slides across the surface. I also took some PhysFlags from the Sequencer and added them. The grapple template looks like this:


_graphook1 none orient=(0.000000/0.000000/0.000000) type=weapon collide=1 move=physics thingflags=0x20000000 mass=5.000000 physflags=0x42CF maxrotvel=90.000000 damageclass=0x2 typeflags=0x1
+grapplehook _graphook1 thingflags=0x20000400 model3d=grap.3do size=0.003000 movesize=0.003000 puppet=ra.pup surfdrag=3.000000 airdrag=0.000000 mass=0.100000 height=0.003000 physflags=0x42CF vel=(0.000000/10/0.000000) angvel=(0.000000/0.000000/360.000000) buoyancy=0.250000 damageclass=0x4 damage=1.000000 typeflags=0x240881


If I removed the 'removed' message, then the grappling hook would be officially gone.

[edit] the hook is falling fine. Haven't tried Thrust yet.

/Edward


[This message has been edited by Edward (edited October 30, 2003).]

Checksum
10-30-2003, 10:26 PM
Oh, looks like you're doing this the REALLY hard way.

If it's a template, give it a cog and it's done.

Just give it a pulse, and do something in damaged: to handle falling and all that.

------------------
Duel Zero (http://forums.massassi.net/html/Forum5/HTML/010438.html) key count: Zero! Down to guns and forces. Expect a release soon.

Edward
10-31-2003, 02:13 AM
Hm... This was very tricky. I just can't seem to get it through my think skull... Could someone perhaps... hate to say it, but... create the stuff for me? http://forums.massassi.net/html/redface.gif

/Edward