[Include] gBug - Prevent 'the G bug' - prevents players teleporting into passenger seat
#21

UPDATE: Fixed a couple of issues:

Issue #1: If you run a player over and while down they press G, OnPlayerEnterVehicle isn't called but after getting up they start to enter the vehicle. This would allow them to bypass this system, so I now detect if their special action is SPECIAL_ACTION_ENTER_VEHICLE under OnPlayerUpdate. Fixed.

Issue #2: To detect when a player starts to step in to a vehicle I detect if their velocity is 0 and their special action is SPECIAL_ACTION_ENTER_VEHICLE. It works but under specific timing conditions it may think you're stepping in when you START to run to a vehicle (when OnPlayerEnterVehicle is called) - this is now fixed by 'confirming' this event with GetTickCount. Fixed.

EDIT: Update #2: Fixed a bug where if a player entered a vehicle as a passenger but it took a while, for example he may have to run around the vehicle to get to the door on the other side, he would teleport inside and be denied entry. If the vehicle doesn't move more than 2* meters when he finally gets in, entry is now granted.

* Configurable via define in include. 2 by default. I don't recommend more than 4.
Reply


Messages In This Thread
gBug - Prevent 'the G bug' - prevents players teleporting into passenger seat - by MP2 - 22.06.2012, 17:30
Re: gBug - Prevent 'the G bug' - prevents players teleporting into passenger seat - by Jansish - 22.06.2012, 17:37
Re: gBug - Prevent 'the G bug' - prevents players teleporting into passenger seat - by Kyle - 22.06.2012, 17:45
Re: gBug - Prevent 'the G bug' - prevents players teleporting into passenger seat - by Kaperstone - 22.06.2012, 17:52
Re: gBug - Prevent 'the G bug' - prevents players teleporting into passenger seat - by newbienoob - 22.06.2012, 18:12
Re: gBug - Prevent 'the G bug' - prevents players teleporting into passenger seat - by Riddick94 - 22.06.2012, 18:31
Re: gBug - Prevent 'the G bug' - prevents players teleporting into passenger seat - by Face9000 - 22.06.2012, 18:42
Re: gBug - Prevent 'the G bug' - prevents players teleporting into passenger seat - by MP2 - 22.06.2012, 19:19
Re: gBug - Prevent 'the G bug' - prevents players teleporting into passenger seat - by Kyle - 22.06.2012, 20:09
Re: gBug - Prevent 'the G bug' - prevents players teleporting into passenger seat - by MP2 - 22.06.2012, 21:09
Re: gBug - Prevent 'the G bug' - prevents players teleporting into passenger seat - by KyleSmith - 22.06.2012, 22:24
Re: gBug - Prevent 'the G bug' - prevents players teleporting into passenger seat - by MP2 - 22.06.2012, 22:31
Re: gBug - Prevent 'the G bug' - prevents players teleporting into passenger seat - by KyleSmith - 22.06.2012, 22:57
Re: gBug - Prevent 'the G bug' - prevents players teleporting into passenger seat - by vCs_ - 22.06.2012, 22:57
Re: gBug - Prevent 'the G bug' - prevents players teleporting into passenger seat - by MP2 - 22.06.2012, 23:10
Re: gBug - Prevent 'the G bug' - prevents players teleporting into passenger seat - by Jhero - 23.06.2012, 00:26
Re: gBug - Prevent 'the G bug' - prevents players teleporting into passenger seat - by Hanger - 23.06.2012, 00:26
Re: gBug - Prevent 'the G bug' - prevents players teleporting into passenger seat - by MP2 - 23.06.2012, 00:27
Re: gBug - Prevent 'the G bug' - prevents players teleporting into passenger seat - by Flake. - 23.06.2012, 01:05
Re: gBug - Prevent 'the G bug' - prevents players teleporting into passenger seat - by [DOG]irinel1996 - 23.06.2012, 01:28
Re: gBug - Prevent 'the G bug' - prevents players teleporting into passenger seat - by MP2 - 23.06.2012, 01:48
Re: gBug - Prevent 'the G bug' - prevents players teleporting into passenger seat - by Shelby - 23.06.2012, 01:57
Re: gBug - Prevent 'the G bug' - prevents players teleporting into passenger seat - by bgmrk - 23.06.2012, 15:07
Respuesta: gBug - Prevent 'the G bug' - prevents players teleporting into passenger seat - by rscaerzx - 24.06.2012, 07:37
Re: gBug - Prevent 'the G bug' - prevents players teleporting into passenger seat - by DonWade - 24.06.2012, 11:51
Re: gBug - Prevent 'the G bug' - prevents players teleporting into passenger seat - by Rube - 25.06.2012, 13:03
Re: gBug - Prevent 'the G bug' - prevents players teleporting into passenger seat - by Lordzy - 25.06.2012, 13:15
Re: gBug - Prevent 'the G bug' - prevents players teleporting into passenger seat - by MP2 - 25.06.2012, 14:10
Re: gBug - Prevent 'the G bug' - prevents players teleporting into passenger seat - by StreetGT - 25.06.2012, 16:28
Re: gBug - Prevent 'the G bug' - prevents players teleporting into passenger seat - by Y_Less - 25.06.2012, 18:00
Re: gBug - Prevent 'the G bug' - prevents players teleporting into passenger seat - by MP2 - 25.06.2012, 23:49
Re: gBug - Prevent 'the G bug' - prevents players teleporting into passenger seat - by PunkLorD - 04.03.2013, 14:33
Re : gBug - Prevent 'the G bug' - prevents players teleporting into passenger seat - by DaTa[X] - 04.03.2013, 20:36
Re: gBug - Prevent 'the G bug' - prevents players teleporting into passenger seat - by iFear - 06.03.2013, 08:56
Re: gBug - Prevent 'the G bug' - prevents players teleporting into passenger seat - by Kiyozi_Mu - 08.03.2013, 11:14
Re: gBug - Prevent 'the G bug' - prevents players teleporting into passenger seat - by -CyRAX - 08.03.2013, 11:37
Re: gBug - Prevent 'the G bug' - prevents players teleporting into passenger seat - by Romel - 10.03.2013, 04:02
Re: gBug - Prevent 'the G bug' - prevents players teleporting into passenger seat - by iFox - 10.03.2013, 04:19
Re: gBug - Prevent 'the G bug' - prevents players teleporting into passenger seat - by Romel - 10.03.2013, 04:57

Forum Jump:


Users browsing this thread: 1 Guest(s)