Server Help

ASSS Custom Projects - <py> craters

Smong - Sun Jun 10, 2007 7:47 am
Post subject: <py> craters
This module places lvz mapobjects where players die. So it can be used to place craters or ship junk to give a realism effect. Lvz sample included.

If you still don't know what I'm on about, think of the game Worms and the tombstones that are left behind when the worms die.
Jonus - Tue Jul 24, 2007 10:41 pm
Post subject:
Hey Smong, nice module icon_smile.gif

I was wondering if its possible to make this module ship specific. If a warbird dies, if would show a specific image for the warbird. Spider dies it would show a specific image for the spider and ect for each ship.

Also, how long does the image stay on the map? Is this time configurable?

Thanks,
tcsoccerman - Wed Jul 25, 2007 2:19 pm
Post subject:
it would be very easy. i'll do it if i feel like it sometime.

if(p.ship == SHIP_WARBIRD)
{
drop this crater
}
if(p.ship == SHIP_JAVELIN)
{
drop this crater
}
etc...
Dr Brain - Wed Jul 25, 2007 6:40 pm
Post subject:
For the record, it would be much better to put it in an array than an 8 way if statement.
tcsoccerman - Wed Jul 25, 2007 7:03 pm
Post subject:
true
Jonus - Wed Jul 25, 2007 7:35 pm
Post subject:
Thanks for the replies.
If anybody gets some time it would be appreciated.
KrynetiX - Thu Jul 26, 2007 12:48 am
Post subject:
nice
Smong - Thu Jul 26, 2007 2:07 pm
Post subject:
In the example the images stay forever until they get recycled (oldest layed cratered gets relaid). But you can edit the ini up to about 7 minutes (lvz limitation).
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group