Plan B

General => Suggestions => Closed => Topic started by: PacoBeanZ on June 04, 2018, 06:59:37 am

Title: Improve Passenger Vehicle Entry
Post by: PacoBeanZ on June 04, 2018, 06:59:37 am
Hi,

I'd like to suggest to improve the poor design for passenger entry into vehicles. The functionality that prevents "passenger drive-by without a driver" is negatively impacting passenger entry.

Issues:

There are more elegant solutions to avoid the passenger drive-by abuse.

Possible solutions:

I honestly think the 2nd solution is a better since you could also expand upon it and add anti cheat detection (for instance, if a player generates weapon ammo when they're a passenger with no driver then execute -something-). Forced vehicle kick should be removed entirely.

This was written hastily so tell me if there are any missing use cases.
Title: Re: Improve Passenger Vehicle Entry
Post by: Maddy on June 04, 2018, 07:18:07 am
It can be easily abused suppose if a President in North San Andreas map tries to dodge a hydra, he/she can easily enter any vehicle as passenger and the hydra missiles will not effect his/her health as the explosion makes no damage to the passenger. Moreover, if a terror is shooting with a spas as a passenger it will too over powered and will be very difficult for securities to kill the terror because the explosion of any vehicle is very easy with a driver as compare to trying to burst a passenger's vehicle. He/she can instantly escape from such situation giving a big damage to the opponent.
-1
Title: Re: Improve Passenger Vehicle Entry
Post by: Madman on June 04, 2018, 07:38:35 am
-1
Title: Re: Improve Passenger Vehicle Entry
Post by: PacoBeanZ on June 04, 2018, 07:39:24 am
Moreover, if a terror is shooting with a spas as a passenger it will too over powered and will be very difficult for securities to kill the terror because the explosion of any vehicle is very easy with a driver as compare to trying to burst a passenger's vehicle. He/she can instantly escape from such situation giving a big damage to the opponent.
The solution mitigates against passenger drive by without a driver, that wont be possible.

It can be easily abused suppose if a President in North San Andreas map tries to dodge a hydra, he/she can easily enter any vehicle as passenger and the hydra missiles will not effect his/her health as the explosion makes no damage to the passenger.
I haven't taken NSA into account since I rarely use hydras and normally dont like to stay on the server when it switches to that map. It's good that you've brought it up.

There should probably be a check if the map is NSA then the current passenger will switch to the driver if the driver leaves the vehicle. We could explore more options with this

UPDATE:
I did some digging around and there are an overwhelming amount of scripts that deal with unoccupied vehicle damage. To say that this is a problem is really reaching.

randomly selected scripts (THERE ARE MUCH MORE!):
Unoccupied Vehicle Damage[NEW] (http://forum.sa-mp.com/showthread.php?t=521010)
OnPlayerVehicleDamage (http://forum.sa-mp.com/showthread.php?t=276059)
OnEmptyVehicleDamage (http://forum.sa-mp.com/showthread.php?t=271903)
 Vehicle Killer (http://forum.sa-mp.com/showthread.php?t=274402l)

a neat callback that does "magic"
http://wiki.sa-mp.com/wiki/OnUnoccupiedVehicleUpdate

I think R0's solution is pretty cool since it avoid the above callback entirely. In practice, idk how it fairs.
Title: Re: Improve Passenger Vehicle Entry
Post by: Deadman on June 04, 2018, 09:55:12 am
It can be easily abused suppose if a President in North San Andreas map tries to dodge a hydra, he/she can easily enter any vehicle as passenger and the hydra missiles will not effect his/her health as the explosion makes no damage to the passenger. Moreover, if a terror is shooting with a spas as a passenger it will too over powered and will be very difficult for securities to kill the terror because the explosion of any vehicle is very easy with a driver as compare to trying to burst a passenger's vehicle. He/she can instantly escape from such situation giving a big damage to the opponent.
-1
This feature suits on Roleplay an Pilots life server (currently they have it). So -1
Title: Re: Improve Passenger Vehicle Entry
Post by: Saurabh on June 04, 2018, 04:53:22 pm
+1. The vehicle entry kick gets so annoying.

Your 2nd solution + that Ro guy's script should work well.
Title: Re: Improve Passenger Vehicle Entry
Post by: SaiFi on June 08, 2018, 11:39:37 am
+1
Title: Re: Improve Passenger Vehicle Entry
Post by: Zeta on June 09, 2018, 07:01:55 am
Nope
-1
Title: Re: Improve Passenger Vehicle Entry
Post by: FlapJack[M.I.B] on June 09, 2018, 07:23:14 am
I don't think that's really needed although it really is annoying.

-1
Title: Re: Improve Passenger Vehicle Entry
Post by: Aztrek on June 09, 2018, 03:15:39 pm
-1
There should be some good reasons of -1 ^_^
Title: Re: Improve Passenger Vehicle Entry
Post by: Cyrus_ on June 13, 2018, 07:28:25 pm
-1
Title: Re: Improve Passenger Vehicle Entry
Post by: LPCOLTER on June 14, 2018, 07:13:53 am
+1. The vehicle entry kick gets so annoying.

Your 2nd solution + that Ro guy's script should work well.
Title: Re: Improve Passenger Vehicle Entry
Post by: Altus_Demens on June 14, 2018, 12:44:36 pm
Could you explain why does the auto kick annoy you?
In other words, right now I don't think that spending time for all that scripting is worth it.

  • On passenger entry, switch to melee weapon slot if a driver isn't present. If a driver is present, retain the current weapon slot. If a driver exits the vehicle for any reason (pressing f, disconnecting from the server, or teleportation - via being jailed or admin spectate) then all passengers inside of the vehicle will have their weapon slots switched to melee. However, I'm not sure how the passenger manually pressing g will be handled. There is no state for passenger drive-by: http://wiki.sa-mp.com/wiki/State
    You could possibly detect player driveby animations but that looks inefficient based on the amount of animations you'll have to cover: http://wiki.sa-mp.com/wiki/Animations
As far as I remember, OnPlayerStateChange does the job, there is PLAYER_STATE_PASSENGER.
Title: Re: Improve Passenger Vehicle Entry
Post by: Jonne on December 06, 2018, 09:22:48 pm
As Altus mentioned, it would take a lot of scripting time, and probably come with a lot of unforeseen issues, so I don't think it's a good idea to add this.