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 → 2 questions/problems
2 questions/problems
2003-10-25, 12:58 AM #1
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.
Edward's Cognative Hazards
2003-10-25, 1:24 AM #2
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
----
<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.
APT 1, 2, 3/4, 5/6
TDT
DMDMD

http://veddertheshredder.com
2003-10-25, 8:08 AM #3
OK, that's done...
Next?
Edward's Cognative Hazards
2003-10-25, 6:28 PM #4
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 key count: Zero! Down to guns and forces. Expect a release soon.
2003-10-25, 11:10 PM #5
Well, I don't want the guy to fall, I want the hook to fall.
Edward's Cognative Hazards
2003-10-26, 6:29 PM #6
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 key count: Zero! Down to guns and forces. Expect a release soon.
2003-10-26, 10:58 PM #7
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's Cognative Hazards
2003-10-29, 11:35 PM #8
Just keeping my nose over the 2 day water level...
Edward's Cognative Hazards
2003-10-30, 6:37 AM #9
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 key count: Zero! Down to guns and forces. Expect a release soon.
2003-10-30, 8:46 AM #10
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:
Code:
_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).]
Edward's Cognative Hazards
2003-10-30, 7:26 PM #11
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 key count: Zero! Down to guns and forces. Expect a release soon.
2003-10-30, 11:13 PM #12
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
Edward's Cognative Hazards

↑ Up to the top!