Author Topic: Weapon with permanent damage?  (Read 865 times)

would I be able to make a modified version of a weapon (e.x. rocket launcher) that actually breaks bricks permanently? This would make creating dm builds easier.

You should instead make a script to apply the following event to all the bricks on the map:

onBlownUp -> self -> killBrick

or something.

I was thinking more along the lines of the weapon itself doing it, rather that applying a property to the bricks

You could probably package the onCollision or something similar to do killBrick();. Not exactly sure how that works though

You could probably package the onCollision or something similar to do killBrick();. Not exactly sure how that works though

That won't work for radius damage. You could package the ::fakeKillBrick method of a brick and then schedule it to be deleted a few seconds later.

that sounds completly complex cause i dont know what your talking about

Would you be able to use this for radius damage?

Code: [Select]
switch$(%col.getClassName()) {
case "fxDTSBrick":
%col.delete();
default:
Parent::radiusDamage(%this, %obj, %col, %distanceFactor, %pos, %damageAmt)
}

I think i still have the old destructo gun somewhere in my old blockland files. Let me check.
EDIT: Nope, Sorry, I think they edited its onCol and had it Killbrick(); though
Second edit: Well, That doesn't have radius asplosion, So that wont help.
« Last Edit: November 25, 2008, 01:54:06 AM by Slicksilver555 »

that sounds completly complex cause i dont know what your talking about
Then why are you posting in here?


that sounds completly complex cause i dont know what your talking about

Frankly, that hardly makes it sound complex.