[Include] [DEV] Surface To Air Missiles
#1

DISCLAIMER: This is a new topic for an entirely new update to my old Surface to Air Missile script. Please do not discuss this in the replies.

Introduction

As we all know, this had many many bugs, and consisted of 4 different versions where versions 0.4.1, 0.5, 0.5 Hardcore edition and 0.3b edition had not made a release as I just gave up on the concept. I am back before the SA-MP 0.3c releases to attempt a serious revision and fix of, if not all, most of these bugs that exist. The main bug was the problem with the Sam Sites just dying and not working anymore, this is what really turned people off this script.

Information

This is the explanation of how the system currently works:

Server Startup
Initiate all Sam Sites
Checks all Valid sams exist > passes to configuration
Checks for any surrounding players and if in air vehicle
If players > **
If None > Return the session value and await next update
**
Determines what type of SAM it is
Request fire and processes if it should fire
Once fired passes onto Missile control and disables SAM for following updates*

* Sam will not fire at more than one player


I have put the Dead Sam Bug down to a mere loss in data. Don't ask me how I worked that out, it is just an assumption as to why the SamSites would not do anything after a certain period of time and even though I had made many attempts to fix this problem, it either created more problems or just didn't work.

My new idea to bring this back to life is to add a server side streamer. Streaming the SAMS could possibly run the server more efficiently, just see this:

Server Startup
Streaming initiates all virtual SAM sites and information
SAMS detect if players are within radius
If yes > **
If no > Nothing special will happen
**
Actual SAM Site will be placed in correct area
SAM will continue its normal configuration


What is planned

- Additional functions to return data about SAM sites and Missiles (and possibly their targets)
- New engine method to power the SAM Sites (Hopefully solving Dead Sam Bug)
- Logging of SAM Sites and missiles (Easier to detect if killed by Missile)
- Better missile sync to allow for smoother tracking of target vehicle - Not achievable!
- Sound Effects and possible mini-map implication to the script
- Maybe DeBug code available in the release
- Hopefully bug free
Reply
#2

AWSOME!!!
in my server this was a surprize to all the players!!!!
over 300+ players died
Reply
#3

Good Work dude!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)