Hi All, well I've just created a teleporter grenade,and had a couple
of questions.
The grenade fires just like any other, save that it bounces off enemies
rather than exploding on them, and then when it does go off, it does half
damage, as the player then appears out of the middle of the explosion.
Anyway, here are my questions.
first off, it works just fine, except that occasionally I'll find that
I'm stuck in what appears to be the air, unable to move; aside from
turning, and hearing the beep for a drop around me.
This doesn't happen all the time and I can usually get out of it by
simply firing the grenade again but it happens enough that I'd consider it
worth figuring out.
So rather than reinventing the wheel, I thought I'd ask those of you who
have worked with teleporting, your opinions and ideas.
I've used the flag for on ground and also the droptofloor function along
with setting the z coordinate a bit higher than the actual teleport
position, as this was necessary so that I wouldn't get stuck in the floor.
So I'm wondering if someone might either have a snippet of code I could
look at or some tips they might pass along.
I'm wondering if the droptofloor function might be the answer, but at
the place in the code where it needs to be, self defines the explosion
rather than the player, (and droptofloor only works on self) so I may have
to come up with a creative way to redefine self on the fly and then set it
back to it's original meaning for the function so it can then complete
successfully.
I have a few things I'll try but would love to hear input if anyone has
it.
Thanks so much and have a wonderful day / evening!...
Smiles,
G-Girl
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.1.385 / Virus Database: 268.3.2/293 - Release Date: 3/26/2006
_______________________________________________
AGRIP-discuss mailing list
[email protected]
http://lists.agrip.org.uk/cgi-bin/mailman/listinfo/agrip-discuss