Author Topic: Rampaging Vehicles that doesn't effect ModTer?  (Read 480 times)

http://www.mediafire.com/download/39fhuema5u0ob7e/Server_RampagingVehicles.zip

In case you need the download to Rampaging Vehicles, but basically what the title says. If a vehicle hits bricks, it will also effect modter in some occasions.

To be honest, I don't know why modter doesn't just have the 'indestructable' field set to true on it's datablocks. This is something that both rampaging vehicles and the default game (with projectiles and explosions) check for when determining whether a brick can be fakekilled.

Although, probably wont do too much more harm just tossing in a isWaterBrick check in there.

Line 46 can be changed to
Code: [Select]
if(!%brick.isColliding() || %brick.getDatablock().getVolume() * 2 > %db.mass * %speed || !$RampagingVehicles::DamageBricks || getMinigameFromObject(%vehicle.spawnBrick.getGroup()) != getMinigameFromObject(%brick.getGroup()) || %brick.getDatablock().indestructable || %brick.getDatablock().isWaterBrick)

Going to test it right now.

Bump but it didn't work, I changed it correctly but ModTer would still have a rough time with Rampaging Vehicles.

Wait never mind, I input the code wrong, locking for good.
« Last Edit: January 07, 2016, 10:55:46 PM by Spartan224 »