Bump zscript ver to 4.14.1, plus a whole lot of stuff.

- Try to get rid of all implicit casts from string to name, color or class.
 - Use FindClass where needed.
 - Used a map in a case where a dictionary was unneeded.
 - Use new bounce flags where needed.
 - Replace Legacy of Rust weapons/ammo.
This commit is contained in:
Mari the Deer 2025-03-13 14:45:01 +01:00
commit 80db58b0d0
128 changed files with 3074 additions and 3088 deletions

View file

@ -8,7 +8,7 @@ Class ArmorNugget : SWWMArmor
Inventory.MaxAmount 200;
Inventory.InterHubAmount 200;
SWWMArmor.ArmorPriority 3;
SWWMArmor.GiverArmor "ArmorNuggetItem";
SWWMArmor.GiverArmor 'ArmorNuggetItem';
}
override int HandleDamage( int damage, Name damageType, int flags )
@ -53,7 +53,7 @@ Class ArmorNuggetItem : SWWMSpareArmor
Inventory.MaxAmount 0;
Inventory.InterHubAmount 0;
Inventory.UseSound "misc/armor_pkup";
SWWMSpareArmor.GiveArmor "ArmorNugget";
SWWMSpareArmor.GiveArmor 'ArmorNugget';
+INVENTORY.ALWAYSPICKUP;
}
States
@ -78,10 +78,10 @@ Class BlastSuit : SWWMArmor
Inventory.Amount 150;
Inventory.MaxAmount 150;
Inventory.InterHubAmount 150;
Inventory.RestrictedTo "Demolitionist";
Inventory.RestrictedTo 'Demolitionist';
SWWMArmor.ArmorPriority 4;
SWWMArmor.DrainMessage "$D_BLASTSUIT";
SWWMArmor.GiverArmor "BlastSuitItem";
SWWMArmor.GiverArmor 'BlastSuitItem';
}
override int HandleDamage( int damage, Name damageType, int flags )
@ -100,10 +100,10 @@ Class WarArmor : SWWMArmor
Inventory.Amount 250;
Inventory.MaxAmount 250;
Inventory.InterHubAmount 250;
Inventory.RestrictedTo "Demolitionist";
Inventory.RestrictedTo 'Demolitionist';
SWWMArmor.ArmorPriority 5;
SWWMArmor.DrainMessage "$D_WARARMOR";
SWWMArmor.GiverArmor "WarArmorItem";
SWWMArmor.GiverArmor 'WarArmorItem';
}
override int HandleDamage( int damage, Name damageType, int flags )