mirror of
https://github.com/ChocoTaco1/zDiscord-Map-Pack.git
synced 2026-02-13 03:33:36 +00:00
Initial 4.5 commit
This commit is contained in:
commit
96f73b3aef
1166 changed files with 107707 additions and 0 deletions
22
scripts/autoexec/InvincibleInv.cs
Normal file
22
scripts/autoexec/InvincibleInv.cs
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
// For Small Crossing Inventorys
|
||||
// SimpleFlagArena also uses this
|
||||
// Grants Invinciblity
|
||||
|
||||
package InvincibleInv
|
||||
{
|
||||
|
||||
function StaticShapeData::damageObject(%data, %targetObject, %sourceObject, %position, %amount, %damageType)
|
||||
{
|
||||
%targetname = %targetObject.getDataBlock().getName();
|
||||
//Used on some maps to make invs invincible
|
||||
if( %targetObject.invincible && %targetname $= "StationInventory" )
|
||||
return;
|
||||
|
||||
parent::damageObject(%data, %targetObject, %sourceObject, %position, %amount, %damageType);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
//Prevent package from being activated if it is already
|
||||
if (!isActivePackage(InvincibleInv))
|
||||
activatePackage(InvincibleInv);
|
||||
Loading…
Add table
Add a link
Reference in a new issue