Building Damage

Author Topic: Building Damage  (Read 891 times)

What determines how much damage a building or block takes when destroyed?
The Rocket Launcher only destroys a small circle and sometimes needs a second shot to finish some bricks off.  Sometimes it can't kill a brick, especially baseplates.
The Spear will wipe out single bricks, and many kinds the RL can't, but still not baseplates.
The Fuel Rod Gun leaves massive holes.
The "Gun" does no damage.
The P90 only hurts small bricks.
The AR33 (Bond Pack) will shred holes through most buildings.
The M4A1 tears through buildings almost better thaan the RL, damaging more than one brick at a time.

So why the inconsistancies?  What is the damage algorithm based on?

--My apologies, I put this post in the wrong topic section.  Sorry.
« Last Edit: July 01, 2008, 09:50:43 PM by Major Construction »

All the non-default weapons you mentioned are crappy over powered gun that the coders made uber strong.  Also, the gun can shoot 1x1 flats, making it perfect for shooting out lights.

The weapons script

 Â  damageRadius = 7;
 Â  radiusDamage = 100;

There are weapons that take 2 shots to destroy a brick

The weapons script

 Â  damageRadius = 7;
 Â  radiusDamage = 100;
Wrong variables.  The ones that determine brick damage are something along the lines of the biggest brick it can kill, and the total volume of bricks it can kill.

I see.  That seems to make some sense.  So, in theory, can you still have an uber-one-hit-kill weapon that doesn't damage bricks?
This is interesting....

BTW, I like Sniff's weapons the best.  Screw the "official grade" M4 guns; they don't even have the detail his have.  My only suggestion is to boost the RPG's damage a bit.  Go Sniff!

The weapons script

 Â  damageRadius = 7;
 Â  radiusDamage = 100;
Wrong variables.  The ones that determine brick damage are something along the lines of the biggest brick it can kill, and the total volume of bricks it can kill.
Ops yeah thats for killing people not bricks, my mistake :D