Partial implementation of Fuck Your Shit rounds, currently in progress. Added various shader effects to some powerups, and to player damage. Added custom view effects to player death, disabled "face attacker" because it looks weird with model-based players. Added "untouchable" spree tracking to the Stats tab. Implemented "emergency reboot system" for people who want a less shameful form of the Resurrect cheat. Cooldown for consecutive reboots can be configured. Rebalanced armors. Small language string corrections. Adjusted pickup model sizes of some weapons. Fixed missing punch sound (damn typos). Fix targetter always displaying voodoo dolls. Fix uptime breaking when loading saves, now based on total playtime rather than gametic. Readjusted Spreadgun ammo availability. Flush HUD interpolators alongside messages, fixes things such as the score VERY slowly counting up when loading a save. Spare armors now only get auto-used on pickup if there is NO armor available of that type. Added some extra visual effects to punching walls and non-bleeding actors. Slightly altered the melee range so it's not as awkward. Fixed punching not using flesh sounds for bleeding actors. Pusher primary now drags the player towards their target, like the Chainsaw. Fixed the player having no pain sounds whatsoever. Fixed stair step anchoring not working. The damage dealt when walljumping on a monster now also gets boosted by the Ragekit.
146 lines
No EOL
3.2 KiB
Text
146 lines
No EOL
3.2 KiB
Text
// All the armor items go here
|
|
Class ArmorNugget : SWWMArmor
|
|
{
|
|
Default
|
|
{
|
|
Inventory.Icon "graphics/HUD/Icons/I_ArmorNugget.png";
|
|
Inventory.Amount 5;
|
|
Inventory.MaxAmount 200;
|
|
Inventory.InterHubAmount 200;
|
|
SWWMArmor.ArmorPriority 10;
|
|
SWWMArmor.GiverArmor "ArmorNuggetItem";
|
|
}
|
|
|
|
override int HandleDamage( int damage, Name damageType, int flags )
|
|
{
|
|
double factor = amount*.1;
|
|
return int(ceil(damage*factor));
|
|
}
|
|
}
|
|
Class ArmorNuggetItem : SWWMSpareArmor
|
|
{
|
|
override Inventory CreateCopy( Actor other )
|
|
{
|
|
// additional lore
|
|
SWWMLoreLibrary.Add(other.player,"Nugget");
|
|
return Super.CreateCopy(other);
|
|
}
|
|
Default
|
|
{
|
|
Tag "$T_NUGGETA";
|
|
Stamina 1000;
|
|
Inventory.Icon "graphics/HUD/Icons/I_ArmorNugget.png";
|
|
Inventory.PickupMessage "$T_NUGGETA";
|
|
Inventory.MaxAmount 100;
|
|
Inventory.InterHubAmount 100;
|
|
Inventory.UseSound "misc/armor_pkup";
|
|
SWWMSpareArmor.GiveArmor "ArmorNugget";
|
|
+INVENTORY.ALWAYSPICKUP;
|
|
+COUNTITEM;
|
|
}
|
|
States
|
|
{
|
|
Spawn:
|
|
XZW1 # -1 NoDelay
|
|
{
|
|
frame = Random[Nugget](0,7);
|
|
}
|
|
Stop;
|
|
Dummy:
|
|
XZW1 ABCDEFGH -1;
|
|
Stop;
|
|
}
|
|
}
|
|
|
|
Class BlastSuit : SWWMArmor
|
|
{
|
|
Default
|
|
{
|
|
Inventory.Icon "graphics/HUD/Icons/I_BlastSuit.png";
|
|
Inventory.Amount 150;
|
|
Inventory.MaxAmount 150;
|
|
Inventory.InterHubAmount 150;
|
|
SWWMArmor.ArmorPriority 2;
|
|
SWWMArmor.DrainMessage "$D_BLASTSUIT";
|
|
SWWMArmor.GiverArmor "BlastSuitItem";
|
|
}
|
|
|
|
override int HandleDamage( int damage, Name damageType, int flags )
|
|
{
|
|
double factor = .3;
|
|
if ( flags&DMG_EXPLOSION ) factor = 1.-(1.-factor)*.5;
|
|
return int(ceil(damage*factor));
|
|
}
|
|
}
|
|
Class BlastSuitItem : SWWMSpareArmor
|
|
{
|
|
override Inventory CreateCopy( Actor other )
|
|
{
|
|
// additional lore
|
|
SWWMLoreLibrary.Add(other.player,"BlastSuit");
|
|
return Super.CreateCopy(other);
|
|
}
|
|
Default
|
|
{
|
|
Tag "$T_BLASTSUIT";
|
|
Stamina 40000;
|
|
Inventory.Icon "graphics/HUD/Icons/I_BlastSuit.png";
|
|
Inventory.PickupMessage "$T_BLASTSUIT";
|
|
Inventory.UseSound "armor/blastsuit";
|
|
SWWMSpareArmor.GiveArmor "BlastSuit";
|
|
}
|
|
States
|
|
{
|
|
Spawn:
|
|
XZW1 A -1;
|
|
Stop;
|
|
}
|
|
}
|
|
|
|
Class WarArmor : SWWMArmor
|
|
{
|
|
Default
|
|
{
|
|
Inventory.Icon "graphics/HUD/Icons/I_WarArmor.png";
|
|
Inventory.Amount 250;
|
|
Inventory.MaxAmount 250;
|
|
Inventory.InterHubAmount 250;
|
|
SWWMArmor.ArmorPriority 6;
|
|
SWWMArmor.DrainMessage "$D_WARARMOR";
|
|
SWWMArmor.GiverArmor "WarArmorItem";
|
|
}
|
|
|
|
override int HandleDamage( int damage, Name damageType, int flags )
|
|
{
|
|
double factor;
|
|
// should be enough "elemental" damage types I guess
|
|
if ( (damageType == 'Fire') || (damageType == 'Ice') || (damageType == 'Slime') || (damageType == 'Lightning') || (damageType == 'Wind') || (damageType == 'Water') ) factor = .8;
|
|
else factor = .5;
|
|
if ( flags&DMG_EXPLOSION ) factor = 1.-(1.-factor)*.7;
|
|
return int(ceil(damage*factor));
|
|
}
|
|
}
|
|
Class WarArmorItem : SWWMSpareArmor
|
|
{
|
|
override Inventory CreateCopy( Actor other )
|
|
{
|
|
// additional lore
|
|
SWWMLoreLibrary.Add(other.player,"WarArmor");
|
|
return Super.CreateCopy(other);
|
|
}
|
|
Default
|
|
{
|
|
Tag "$T_WARARMOR";
|
|
Stamina 100000;
|
|
Inventory.Icon "graphics/HUD/Icons/I_WarArmor.png";
|
|
Inventory.PickupMessage "$T_WARARMOR";
|
|
Inventory.UseSound "armor/wararmor";
|
|
SWWMSpareArmor.GiveArmor "WarArmor";
|
|
}
|
|
States
|
|
{
|
|
Spawn:
|
|
XZW1 A -1;
|
|
Stop;
|
|
}
|
|
} |