[FilterScript] Reverse Beeper
#27

I tried to make a video for you, but you know what, the script fails, because:
  • For an example I used Flatbed. Turned up Fraps, started filming how I slowly reverse into a gate, but for the horn to look realistic and not glitchy I had to hold reverse button all the time, which resulted in a crash.
  • Horn goes off when you use breaks to stop.


I suggest you to do this:
  • After flagging the player that he\'s holding down reverse key, start checking him in OnPlayerUpdate whether he\'s still reversing or not (check speed!).
  • If he is, call SetVehicleParamsEx and set alarm to 1 (I think there\'s no need to check whether its already enabled or not, just set it). If he\'s not, set alarm to 0 and remove the key flag.
  • Do NOT remove the key flag after the player released the key. It\'s being done in OPD.
Reply


Messages In This Thread
Reverse Beeper - by wumpyc - 09.10.2011, 17:19
Re: Reverse Beeper - by sherlock - 09.10.2011, 18:05
Re: Reverse Beeper - by wumpyc - 09.10.2011, 19:14
Re: Reverse Beeper - by Stigg - 09.10.2011, 19:21
Re: Reverse Beeper - by Metallica502 - 09.10.2011, 19:55
Re: Reverse Beeper - by wumpyc - 10.10.2011, 11:33
Re: Reverse Beeper - by Ammo - 10.10.2011, 11:34
Re: Reverse Beeper - by wumpyc - 10.10.2011, 11:35
Re: Reverse Beeper - by Kazuo - 16.10.2011, 05:19
Re: Reverse Beeper - by Cirtical - 16.10.2011, 08:51
Re: Reverse Beeper - by justsomeguy - 16.10.2011, 09:09
Re: Reverse Beeper - by wumpyc - 17.10.2011, 16:36
AW: Reverse Beeper - by Meta - 17.10.2011, 16:39
Re: Reverse Beeper - by knackworst - 17.10.2011, 18:34
Re : Reverse Beeper - by Naruto_Emilio - 17.10.2011, 19:28
Re: Reverse Beeper - by wumpyc - 25.10.2011, 04:49
Re: Reverse Beeper - by Sinyx - 25.10.2011, 06:36
Re: Reverse Beeper - by sherlock - 25.10.2011, 13:49
Re: Reverse Beeper - by wumpyc - 25.10.2011, 15:53
Re: Reverse Beeper - by sherlock - 25.10.2011, 16:00
Re: Reverse Beeper - by wumpyc - 25.10.2011, 16:05
Re: Reverse Beeper - by >>R15KY<< - 25.10.2011, 18:23
Re: Reverse Beeper - by sherlock - 25.10.2011, 20:52
Re: Reverse Beeper - by NAPSTER21 - 19.12.2011, 18:08
Re: Reverse Beeper - by Astralis - 20.12.2011, 10:24
Respuesta: Reverse Beeper - by [Nikk] - 20.12.2011, 10:45
Re: Reverse Beeper - by CaHbKo - 20.12.2011, 11:01
Re: Reverse Beeper - by Rafiko - 20.12.2011, 13:02
Re: Reverse Beeper - by §с†¶e®РµРe - 20.12.2011, 13:26
Re: Reverse Beeper - by [MM]18240[FMB] - 11.01.2012, 05:37
Re: Reverse Beeper - by DeadLy™ - 04.10.2012, 13:30
Re: Reverse Beeper - by ragu1987 - 15.10.2013, 16:39
Re: Reverse Beeper - by knackworst - 15.10.2013, 17:21

Forum Jump:


Users browsing this thread: 3 Guest(s)