Technical > Addons & Mods

More A3Wasteland Addons/Enhancements - soulkobk

(1/4) > >>

As the title shows, I have written some more scripts for use within A3Wasteland which you can find on my github account.

You can check out my original blog post about it here.

As for an explanation (as copied from my blog post)...

purchaseFuel script, which disables free fuel at all fuel pump across any given map and attaches a cost for vehicles (land or air, including uav). You must have the carried money in order to refuel, and whether a total refuel or partial, you are charged for it. Jerry cans are still able to be filled for free though.

playerJump script, which is a script I wrote and tested quite a while ago, but only recently released. I wanted to see if it was possible to write a jump routine where as the screen did not visually glitch... and I succeeded. It took me a while to correct the jumping routine to as best I could manage within the script and animation bounds of Arma 3. Needless to say, compared to all the other jump scripts available (and the glitchy one in the default A3Wasteland mission), it is a LOT better.

globalChatMessages script, will rotate and display chat messages to each player. The messages are written within the script itself. This is able to be changed to whatever the server owner/admin would like to have displayed to all clients. The script is based purely client side.

titleTextMessages script, will rotate and display title text messages to all connected clients. The messages are written within a server-side script which is able to be changed on-the-fly. Upon server restarts, the script re-reads the server-side file for the current messages to display. This script is preferred over the globalChatMessages due to not needing to repack the mission.pbo each time the messages are changed.

cleanStores script, will locate all the available stores on the map of A3Wasteland, and attach a cleaning loop. This script will clean ALL objects listed in the configuration after a per-item duration (default 2 minutes) in order to keep the floors and immediate surrounding clean of discarded player items/weapons. The radius limit to where the cleaning extends to is also configurable.

buryDeadBody script, is a script to bury dead bodies at a cost (default $5000). I have seen other similar script(s), but thought I would write my own which functioned the way I would like (and hopefully others would like). To bury a dead body (eg, an enemy you just killed), you will need to have $5000 carried money to begin the process. A random timer between 30 and 60 seconds will commence in which is how long it will take to bury said body. Upon a successful bury, the body and all immediate surrounding objects/weapons will be removed/despawned. This script is useful for looting and disposing of the left-overs so that the enemy can not retrieve any of their gear.

afkTimer script, is a script to check for players that have gone AFK. I have noticed that some A3Wasteland servers have turned of food and drink, and some players take advantage of that and spawn in as BLUFOR or OPFOR, then hide and go AFK in order to farm money. This script puts an end to that, as if a player is AFK for longer than a duration (default 10 minutes), it will kick them back to the lobby.

cleanUpMissionObjects script, is a script that is to be used within A3Wasteland missions. This script will time and then remove all unlocked mission items after a time period once a mission is successfully completed. The script checks for players within the vicinity of said mission. If players exist within the mission area, the script will not delete/remove any object until there are no players around. The script also checks for locked objects and will not delete those that are locked.

fixTownStreetLamps script, is a script for turning lamps back to the on state. Many times I have noticed servers with a long night-time duration, and that players tend to shoot out town lamps in order to get complete darkness. This script will time loop and for all lamps that have been shot out, it will restore them to the on state in order to brighten the area back up. The lamps when turning back on have a somewhat realistic flicker effect (for player immersion).

outOfBounds script, is a script for checking that any player is within the bounds of the playable area for the map/mission. If a player is outside of the playable area which is marked visually on map by a blue circle/ellipse or is above a certain altitude, then an audible and visual warning with a count-down timer will appear on the players screen. If the count-down timer reaches 0 seconds aka player is still out-of-bounds, the player and any vehicle the player is in will be killed/destroyed. *NOTE, this was coded/scripted due to reading on a forum post that a player decided to go so far out-of-bounds, that Arma 3 crashed, but the A3Wasteland mission saved the players location, so upon returning to said server, the player would respawn on their last (out-of-bounds) location and Arma 3 would instantly crash again... *facepalm*

spawnBeaconDetector script, is for tracking down player spawn beacons. I was not happy with what was currently available for A3Wasteland, so I decided to write my own version from scratch. A player must have a mine-detector carried on them as well as being on foot in order to track spawn beacons. The sound effects emitted are in the 3D environment (not silent for all but the operator), which can reveal the players location should enemy be within the 100 meter range. Want to track beacons? There is a risk of giving away your position now... so track them down quick! The audible beeps for all to hear make a lot more sense to me rather than just an operator beep that no one else can hear... it is a detector after all, right?

I thought I would post this here to let A3Wasteland server administrators know about it, although I will be giving absolutely NO support on any of these scripts (unless I have made a mistake somewhere), as I don't have the time to give technical support (time is money!). None the less, I hope any or all of these scripts are of use to the A3Wasteland community to enhance the mission.


Awesome work!  Gotta try some of these out tonight :)  :)

Your jumping script has a few issues and glitches.

* It suffers from the terminal velocity effect, where you will be launched upwards or crushed on the ground when jumping during abrupt step transitions
* It's using displaySetEventHandler, which is terrible practice as it overwrites all other KeyDown's
* It relies on a custom key, which is unintuitive
* It doesn't allow jumping from crouched sprint
However, it helped me understand the camera glitch, which was happening merely because I was calling switchMove in a spawned thread instead of directly from the unscheduled KeyDown event. Another BIShenanigan I guess. Fix was deployed just now.

Also, cleanStores is not necessary since the default cleanup has been doing this successfully for months already, using the same method as yours. The default settings are 30-min expiry and 7.5m radius.

I appreciate the kind words... "thanks for contributing towards A3Wasteland"... oh wait, that was never said.

The only one to actually say some sort of thanks was @Firstyminator who said 'Awesome work!'... so thanks for the kind words.

It seems many people are too quick to criticize when people post code/scripts on these forums... hell, I could have just coded them all and kept every single one of them to myself and f*ck the rest of you... but I didn't. I put them all on my own github for all to check/see/use/whatever in their mission files for A3Wasteland or other.

I did/do all this in my own free time for the benefit of A3Wastland and the numerous admins that run servers to host the A3Wasteland mission, and from what I've seen, most are appreciative, although I'm beginning to understand why these forums became inactive before I was ever a member on here.

Whether people choose to use my scripts or not, it doesn't really matter... but a "hey, thanks for your contribution" wouldn't be a bad thing to happen from time to time. If you have constructive criticism,  by all means, explain 'as nicely as possible' to what the issue is and how to correct it, not just one-liner basically saying 'don't do that' each time... because I like to learn from it, not be shot down by it, as that only aggravates me.

--- Quote from: AgentRev on Nov 13, 2016, 12:38 AM ---Your jumping script has a few issues and glitches.

--- End quote ---

I'm sure it did/does, I wrote that script back in May 2016 when I was a complete novice at Arma 3 scripting, so it was a pretty damn good effort on my part I think. Needless to say, 3 of those bullet points on the list are fixed/changed. Is it perfect? nope, but I'm not overly fussed with it either.

--- Quote from: AgentRev on Nov 13, 2016, 12:38 AM ---Also, cleanStores is not necessary since the default cleanup has been doing this successfully for months already, using the same method as yours. The default settings are 30-min expiry and 7.5m radius.

--- End quote ---

I wrote that script before you wrote yours IIRC, as many admins were asking for a 'fix', so I coded it, tested it, then released it... and it works very effectively. I even still get requests/queries about a store clean up script due to a f*ck-ton of garbage left on store floors that never get removed... so I point them in the cleanStores direction, and it fixes the issue. But whether admins use it in their mission is totally up to them... it's there if it's needed, as are ALL my scripts for Arma 3... use them, don't use them, it doesn't matter... the choice is there.

All-in-all, I'm still learning Arma 3 code and I'm still a novice coder, but I'm getting better by the month... showing support and explaining issues helps people like me learn... blunt/unexplained comments do not.

Anyway, this will be my last post regarding my code and my scripts on this forum... in the future if people want to get updates on my scripts/code (BTW, I don't release everything to github), then check/follow my twitter account, and/or keep track on my blog for posts.


W .. ww .. what?!  :o

Sometimes I wonder, if u were kinda prima ballerina, soul. Please, don't take it personal. But from time 2 time your postings could be read like: give me my god given honor, ffs. If not, I'd play on my own.

You showed your script compilation on 10th. And because your thread doesn't have "hundred of millions" responses fulfilled with homages and whatever after 3 days, you quit? Just like that?

And in my lil opinion, Agent didn't say any deprecative. Quite the contrary:

--- Quote ---However, it helped me understand the camera glitch
--- End quote ---

I can understand, you want your recognition. But again .. my lil opinion: if someone instists on it .. it's just half worth it.

Don't misunderstand me. I like your work (the different outposts, the purchase fuel, mission loot, the restart message etc etc ..)

.. and you get your THXs. Want me to quote each of them? Guess not.  ;)

It just let me think about a posting, I did earlier:

--- Quote from: GriffinZS on Oct 10, 2016, 01:23 AM ---but ..


Imo, the best developers are those, who create new stuff NOT to impress the community nor to become kinda Script-God but .. to spread their passion with scripting and see their codes become alive.

It's the same way with old fashioned painters like Pablo Ruiz y Picasso. If he would have painted with thoughts of later admiration .. he would have created just .. crap.

my 50 ct before I follow bed's calling ..

--- End quote ---

Don't take it so hard, m8  ;)


[0] Message Index

[#] Next page

Go to full version