Hello There, Guest! Login or Register


Pirate Ship's no-weapon area
#1
There are 2 issues in the non-weapon area in (and around) the pirate ship:

1. Entering the non-weapon area and leaving it will make all the weapons you have infinite! (tested on pistols, shotgun, and SMG. I've bought non-spawn weapons then went to the ship, they became infinite)

EDIT: I couldn't reproduce the infinite weapons thing! however, sometimes I lose all weapons I have when I leave the non-weapon area.

EDIT2: Actually it's kinda random, sometimes I get infinite ammo, sometimes I lose all weapons, and most of the times weapons are not changed. I could only reproduce the infinite ammo when I own the gang-base (don't know if that's actually related). It happens when I go to the ship in a vehicle (an NRG-500 bike).

2. If I'm driving a vehicle, it will respawn and i'll get out of it. This is acceptable and not a problem. The problem is that the bikes that spawn next to the ship (2 NRG-500 and 1 Quad) are covered by the non-weapons non-vehicle area, which results in respawning the bike when someone get into it. To reproduce this problem, go to one of those bike and get into it, wait about a second and you'll be thrown out of it.


Az
Reply
#2
I haven't observed this on LVP, but this certainly sounds similar to a problem I've been having and I think this needs some looking into. I tried to script my own spawn weapon system which uses a SA-MP function GetPlayerWeaponData(). If the pirate ship is a no-weapon zone then I imagine that this function is used to cache the player's weapons when they enter the ship and restore them from the cache when they leave. The majority of the time it works fine, but quite randomly it reports incorrect ammunition data from the player's weapon slots, sometimes even the ammunition from the player's adjacent slot. This means that if you had say, 25 grenades and 250 sniper bullets before entering the ship, when you leave you could well end up with 250 or 25 of each. If you receive infinite ammo it's quite likely that the incorrect slot data was that of a melee weapon or parachute, which for some reason usually have an ammo value of 65355, or thereabouts. In the end I had to scrap my spawn weapon script because of this problem as it's certainly not fair to lose ammo at random or for people to be allowed to abuse this in order to try to gain ammo.

Ronald
Reply
#3
[trac=164]
Reply
#4
So, it's a SA:MP bug, not LVP!

LOCKED, I guess :P
Reply
#5
The second bug still counts ;)
Reply
#6
I think the area was minimized, bikes don't respawn anymore. (?)

However, this minimization have another effect: South side of the ship is not non-weapon area!
Here's a screenshot: http://peter.sa-mp.nl/files/uploads/shipguns.png


Az
Reply
#7
Correct. We had to choose for: 1. include the bikes in the ship area or 2. exclude the back of the ship. I will take a look if using two areas are possible.
Reply