Author Topic: Different type of brick damage  (Read 821 times)

I was thinking that replacing bricks breaking temporarily with them breaking more like they were hit by a wand would be a neat feature in minigames. The amount of damage the gun would have to deal to break it would be measured by the area of the bricks being supported by the brick. I hope that made sense. (Worded very strangely.) Anyways, is this possible?

You could do an on collision thing for the weapons you are using. Also, Rky has an hp mod for bricks in his fort wars server.

On Collision Code:

Code: [Select]
function YourWeaponProjectile::onCollision(%this,%obj,%col,%fade,%pos,%normal)
{
if(%col.getClassName() $= "fxDTSbrick")
{
%col.delete();
}
Parent::onCollision(%this,%obj,%col,%fade,%pos,%normal);
}

In my fort wars mod, each brick has a variable HP effected by its size, as it is hit with bullets and such it wears down and eventually dies(is deleted completely) unless hit with a wrench to be repaired.(before it dies, of course)

Kinda what you meant?

can i have that brick damage type rkynick

it would need to be coded out of fortwars, so at the moment, no.

Well, I wanted health to be based on size, and the size of the bricks on top of it. And on death, it breaks like being hit by a wand.

Its only based on size, not the size of bricks on top of it, however, it does have the choice of breaking like a wand hit or breaking like a (multitool) brick eraser hit.

So is measuring the volume of the bricks on top possible?

Probably, but I wouldn't know how to do it.

I would love fortwars if I could join with out particle failage...