Limelight Forums

Full Version: Reworked Panic Button
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
[Image: f65743d6e96bbbc61bbea9eedb87e227.png]
Hello everyone!

I've spent the last few days re-working the panic button to add more functionality and to fix various bugs with it. This project started off as adding simple custom locations and expanded to almost a complete re-work. The core functionality is the exact same, with an GUI menu for those who wish to tweak how the button works.


Bug Fixes

I've fixed several bugs with the panic button, the most noticeable being the locations. I've added several fallbacks to how the panic button obtains its current location. This means the panic button will always now display the correct location unless it is off the map, which it will now correctly display "Unknown Location" or the default location instead of nothing. 

[Image: t6Y6cwT.png]


Custom Locations + Local /IT Message

Support for custom locations has been added, so you can now be more specific with the location of a panic button to help whoever responds. The custom location will display alongside the real location to prevent abuse and can be set in the new menu. Pressing on a panic button will now also display a /it message which only you can see. This is just so you know you've pressed it. 

[Image: D2X9y7p.png]

[Image: 2VlYUrd.png]


New GUI Menu + Model Selection + Custom Recipients

One limitation with the panic buttons is that they've all been the same model and all always send a message to the government. After an interesting discussion with some staff, we decided allowing the owner to select who they want to send the panic message to opens up a bunch of opportunities such as private security and even mafia/gang roleplay (protection money can actually mean something now!). 

New Menu: 

[Image: bcTB9Vo.png]

Pressing Shift + E on the panic button will open up this menu

The menu allows you to easily change the custom location, model and recipients of the panic button. Only the owner or those with prop access can open this menu.

Here's a rundown of what the checkbox options do:

Send to Government Dispatch: Send panic message to the government, as it currently does
Send to Clan Radio: Send panic message to everyone in your clan
Send to Private Radio: Send panic message to everyone on the same /frequency as you

It should be noted that you can send the panic message to all three options at once if you wanted. For example, if I was a legal store owner with a private security service I could select both the Government Dispatch and Private Radio options to alert both at the same time.

Changing the model does pretty much exactly what you'd expect it to do, it also opens up the possibility of a custom panic button model being added in the future.

Current Models:

[Image: xa4gzVK.png]

If you have any suggestions, feel free to post it below or leave a suggestion.

I hope you all like the rework, it took a lot longer than expected.

Credits

- Uploads and original panic button
- Original panic button
- Design input
- Design input
Amazing job Pollux, good job!
sweet updates pollux u good
‍ is the new
I umm cannot wait until I can use this
(Mar 16, 2019, 09:15 PM)Markus Wrote: [ -> ]‍ is the new

Okay okay, so you see that guy with the purple name "Faustie", yeah? Now you see that guy with the blue name "Faustin"... you still with me?

NOT THE SAME FUCKING THING

OT: Good work
Wow Pollux. You've been working hard.

No lifer.

Ahahaahahahaah.
Just kidding. I am a No Lifer. Help.

Anyways, good work, love it!

Eddie

Good to see this introduced. 

Keep the updates coming... Its nice to see Contributors getting involved with updates more often!
Thanks for fixing my shitty code. Surprised you could read it but then again it wouldn't surprise me if you just started from scratch.

It's looking great
(Mar 16, 2019, 09:42 PM)Faustin Wrote: [ -> ]
(Mar 16, 2019, 09:15 PM)Markus Wrote: [ -> ]‍ is the new

Okay okay, so you see that guy with the purple name "Faustie", yeah? Now you see that guy with the blue name "Faustin"... you still with me?

NOT THE SAME FUCKING THING

OT: Good work

[Image: giphy.gif]
(Mar 16, 2019, 09:25 PM)Tom_ Wrote: [ -> ]I umm cannot wait until I can use this

you better
Nice, this'll definitely get rid of the confusion around locations!