Author Topic: Invincible player mod.  (Read 2214 times)

Code: [Select]
//Invulnerable player
datablock PlayerData(PlayerFuelJet : PlayerStandardArmor)
{
minJetEnergy = 2;
jetEnergyDrain = 2;
canJet = 1;

uiName = "Invincible Player Fuel-Jet";
showEnergyBar = true;
invulnerable = 1;
};

Why doesn't it work in a minigame?

Because, uh, as far as I know that variable will do nothing at all? I dunno, it might be a built-in variable, but I doubt it does anything.

It should still show up in the minigame as Invincible player right?

Depends... if this loads before the original fuel jet player, this one will be overwritten. If it does load properly, the name in the list will be what you put.

Rename your datablock.

Code change:
Code: [Select]
//Invulnerable player

datablock PlayerData(PlayerFuelJetInvincible : PlayerFuelJet)
{
uiName = "PlayerFuel_Invincible";
isInvincible = 1;
};
It still doesn't show up in the create minigame GUI.
In the console it says that it is loading 0 datablocks:

Code: [Select]
Loading Add-On: Player_Invincible
exec: invalid script file Add-Ons/Player_Invincible/server.cs.
0 datablocks added.

If it wasn't called "server.cs.", and instead called "server.cs", perhaps it would work.

The console does that, its not named server.cs.
Console:
Loading Add-On: Vehicle_Blocko Car
Executing Add-Ons/Vehicle_Blocko Car/server.cs.
Executing Add-Ons/Vehicle_Blocko Car/Vehicle_BlockoCar.cs.
Executing Add-Ons/Vehicle_Blocko Car/blockocar_Tire.cs.
Executing Add-Ons/Vehicle_Blocko Car/blockocar_Explosion.cs.
Executing Add-Ons/Vehicle_Blocko Car/blockocar_FinalExplosion.cs.
Executing Add-Ons/Vehicle_Blocko Car/blockocar_Spring.cs.
9 datablocks added.

i know the scripts you need


the scripts that you need
you need two of them

It's easiest just to package projectile::onDamage really

the script i have only makes yourself invincible not everyone else
(invincible from everything)

It's easiest just to package projectile::onDamage really

You're an idiot.  Packaging a damage method is in no way the best means of making an invincible player type.  Just tagging the datablock with isInvincible = 1 will work just fine.  Don't try to help someone when you don't know what you're talking about.  Damn it, I have no tolerance for "experts".