PaintBallGame v1.3 (Updated 3-28)
Summary:
This is the old Paintball Game that I orginally had submitted. Up to four-team game. For every three hits you recieve, an armor piece gets colored. Once all your armor is painted you get auto ejected. Enjoy and have fun.
Updated: Serialize/Deserialize no longer needed. Still need to add to PlayerMobile. Armor updated so Str/Dex(equip requirment), and Weight wont affect game.
Installation:
Read the included ReadMe.TXT with the download. It will explain all. Some editing of the PlayerMobile is required.
EDIT:
This was missing in the readme file of the most recent upload:
There is a slight bug where if you do not remove the players from the game the correct way, two hours later all their items will be removed. Here is a small update to fix that problem. I'm not re-uploading the file since it is not a must bug fix. So I will leave it up to you.
In PaintBallGame.cs:
Find: "public void RemoveArmor( PlayerMobile from )"
And replace it with:
Summary:
This is the old Paintball Game that I orginally had submitted. Up to four-team game. For every three hits you recieve, an armor piece gets colored. Once all your armor is painted you get auto ejected. Enjoy and have fun.
Updated: Serialize/Deserialize no longer needed. Still need to add to PlayerMobile. Armor updated so Str/Dex(equip requirment), and Weight wont affect game.
Installation:
Read the included ReadMe.TXT with the download. It will explain all. Some editing of the PlayerMobile is required.
EDIT:
This was missing in the readme file of the most recent upload:
Code:
public enum TeamType
{
None, One, Two, Three, Four
}
There is a slight bug where if you do not remove the players from the game the correct way, two hours later all their items will be removed. Here is a small update to fix that problem. I'm not re-uploading the file since it is not a must bug fix. So I will leave it up to you.
In PaintBallGame.cs:
Find: "public void RemoveArmor( PlayerMobile from )"
And replace it with:
Code:
public void RemoveArmor( PlayerMobile from )
{
Container mobilePack = from.Backpack;
ArrayList equipitems = new ArrayList(from.Items);
foreach (Item equiped in equipitems)
{
if ((equiped.Layer != Layer.Bank) && (equiped.Layer != Layer.Backpack) && (equiped.Layer != Layer.Hair) && (equiped.Layer != Layer.FacialHair) && (equiped.Layer != Layer.Mount))
{
if( equiped is TeamBow || equiped is TeamArrow || equiped is PaintBallLegs
||equiped is PaintBallArms || equiped is PaintBallChest || equiped is PaintBallGloves
|| equiped is PaintBallGorget || equiped is PaintBallHelm )
{
mobilePack.DropItem( equiped );
}
}
}
ArrayList finalitems = new ArrayList( mobilePack.Items );
foreach (Item pack in finalitems)
{
if( pack is TeamBow || pack is TeamArrow || pack is PaintBallLegs
||pack is PaintBallArms || pack is PaintBallChest || pack is PaintBallGloves
|| pack is PaintBallGorget || pack is PaintBallHelm )
{
pack.Delete();
}
}
}