Arrows block boats

Report any bugs you discover on the server here
Post Reply
User avatar
Trojancow
UOSA Donor!!
UOSA Donor!!
Posts: 205
Joined: Sat Jul 16, 2011 1:31 am

Arrows block boats

Post by Trojancow »

Hello admins,

Arrows shouldn't block boats. Today marked the second time I had to page a GM because I couldn't get line of sight on an arrow to pick it up and it blocked movement in all directions, even backward.

Anyone who suggests this is era accurate or not a bug shall be targeted by a drone strike. You have been warned.

Also, serpents who die on your boat and block it are devices of the devil.

Thank you for your time, I love you.

User avatar
the bazookas
UOSA Donor!!
UOSA Donor!!
Posts: 671
Joined: Tue Aug 02, 2011 4:57 pm

Re: Arrows block boats

Post by the bazookas »

I can't speak as to era accuracy (although I seem to remember boats "picking up" corpses as they go through, not being blocked by them) but IF TrojanCow is correct regarding the era accuracy, this can be fixed as follows:
add "|| item is Arrow || item is Bolt || item is Corpse" to the if statement, as I have done below.

Code: Select all

// In Scripts/Multis/BaseBoat.cs
		public bool CanFit( Point3D p, Map map, int itemID )
		{
			
			//...

			IPooledEnumerable eable = map.GetItemsInBounds( new Rectangle2D( p.X + newComponents.Min.X, p.Y + newComponents.Min.Y, newComponents.Width, newComponents.Height ) );

			foreach ( Item item in eable )
			{
				if ( item is BaseMulti || item.ItemID > TileData.MaxItemValue || item.Z < p.Z || !item.Visible || item is Arrow || item is Bolt || item is Corpse)
					continue;
			
			//...
Attachments
safsf_6-14_09.47.jpg
safsf_6-14_09.47.jpg (37.18 KiB) Viewed 1527 times
safsf_6-14_09.48.jpg
safsf_6-14_09.48.jpg (38.68 KiB) Viewed 1527 times
safsf_6-14_09.48-1.jpg
safsf_6-14_09.48-1.jpg (42.37 KiB) Viewed 1527 times
safsf_6-14_09.50.jpg
safsf_6-14_09.50.jpg (40.79 KiB) Viewed 1527 times
safsf_6-14_09.51-2.jpg
safsf_6-14_09.51-2.jpg (47.72 KiB) Viewed 1527 times
Most people like us, or at least they like what we do. Regardless, we appreciate all our victims, and we hope that their encounter with us is a memorable one.
-a machine gun, a bazooka, and a grenade
... a not-for-profit organization (usually)

User avatar
DarkWing
UOSA Donor!!
UOSA Donor!!
Posts: 984
Joined: Tue Jun 16, 2009 10:24 am
Contact:

Re: Arrows block boats

Post by DarkWing »

not to mention that we are also blocked by the Blood Splatter from Dolphins!, the bodies get scooped up .. but not until the blood decays
Image

Trusted Member of C^V Guild
Channel Operator of #secondagetrade

Scammer Free Trade Room

User avatar
the bazookas
UOSA Donor!!
UOSA Donor!!
Posts: 671
Joined: Tue Aug 02, 2011 4:57 pm

Re: Arrows block boats

Post by the bazookas »

I think "Blood" is an item that you could just add to that list.

I dunno... if it did indeed pick up arrows and bolts and corpses in era, I imagine ANY movable object would be picked up. Was that the case? Obviously it would be a lot easier to do something like "|| item.Movable == true" than it would be to handle all the specific corner cases.
Most people like us, or at least they like what we do. Regardless, we appreciate all our victims, and we hope that their encounter with us is a memorable one.
-a machine gun, a bazooka, and a grenade
... a not-for-profit organization (usually)

Post Reply