Poll

What do you think?

CARBOMBING MADMAN FTW!!!11!!!
6 (28.6%)
Blip...it just dissapeared.
1 (4.8%)
No.
3 (14.3%)
Yes.
6 (28.6%)
O_O I PICKED THIS BECAUSE IT WAS THE LAMEST OPTION AND IN CAPS!!!
2 (9.5%)
Other (leave post/comment)
3 (14.3%)

Total Members Voted: 0

Author Topic: Vehicle Death on Self Delete  (Read 1272 times)

I believe this would be simple enough, basically, if the driver of a vehicle Self Deletes while in the vehicle, the vehicle would explode/die. This would help immensely with a  race checkpoint system I'm thinking of (using events). Either that, or a vehicle checkpoint mod.

Edit: This also needs to work for vehicles that don't normally explode, and, unlike the fizzler event just released, the vehicle needs to respawn too.

Edit2:(Polls are fun)
« Last Edit: March 10, 2008, 03:23:00 PM by Mike951 »

FTTTTRROOOOOOOOM CRRROOOOOOOOOO
* Packer smashes into a group of DM'ers
* Packer Ctrl+K
EVERY BODY WINS!

Heh heh, didn't quite think of it that way, umm, maybe just a forced respawn (similar to how you do it with the wrench)? Although...a suicidal car bomber could be fun.

Edit: for some reason, your avatar reminds me of the last level of DOOM.
« Last Edit: March 10, 2008, 03:28:47 PM by Mike951 »

Heh heh, didn't quite think of it that way, umm, maybe just a forced respawn (similar to how you do it with the wrench)? Although...a suicidal car bomber could be fun.

Edit: for some reason, your avatar reminds me of the last level of DOOM.
<3 Doom and devil robotic things :3

Yeah, just package out the serverCmdSelf Delete(%client) function and check to see if the %client's player is controlling a vehicle.  If so, set the %vehicle to the vehicle and use something like this:

Code: [Select]
%brick = %vehicle.spawnBrick;
%vehicle.delete();

if(isObject(%brick))
{
%vehicleOwner = %brick.getGroup().client;
%minigame = %vehicleOwner.minigame;

if(%minigame !$= "" && %minigame != 0)
{
if(%vehicleOwner == %minigame.owner || %minigame.useAllPlayersBricks == 1)
{
%brick.schedule(%minigame.vehicleReSpawnTime,"spawnVehicle");
}
else
{
%brick.spawnVehicle();
}
}
else
{
%brick.spawnVehicle();
}
}

If I actually took the time to learn how to script this would probably be like spoon-feeding me the answers, however, I have yet to take the time do that (so many important games to play and all). If someone could put this into a tidy package (.cs most likely) I would be extremely grateful...bump.

FTTTTRROOOOOOOOM CRRROOOOOOOOOO
* Packer smashes into a group of DM'ers
* Packer Ctrl+K
EVERY BODY WINS!
   lol