The idea for zombie bait and bomb comes from Fred (http://opendayz.net/threads/release-freds-zombie-bait-wip.10701/). I really liked the concept but found the code he wrote to be very limiting in terms of features and a bit buggy. So I re-wrote it and releasing it to everyone to use and improve...
The reason is because you do not reset or initially set the function vars to -1. At the top of your custom compiles.sqf put the following:
zombieBait = -1;
zombieBomb = -1;
Now they will be initialized and you don't have to do the drop/pickup work around.
So what I posted didn't work? If not, instead of nil try "". Either way I am working on a complete re-write to add more flexibility for server admins and optimize the code. I'll post it once I test it out later this evening (if it works).
The reason it isn't removing the meat from the inventory is because _rawmeat is not defined outside of each of the if statements. Thus, when it goes to remove the raw meat the _rawmeat variable is = nil.
Fix this by adding _rawmeat = nil; before the if statements so that the variable has...
Crysis was filled with cheaters a few weeks after its PC release. It is what drove me to create the SSM Aegis anti-hack server side mod. Worked like a champ... and LUA was better to work in than the Reality Engine scripting language. Wish they'd just implement Python as the scripting language...
I don't specify where to put the code in fn_selfActions because many people have different preferences on where to put it. It clearly needs to go after some of the variables that it uses get initialized. If someone doesn't know that then they'd have to go through the process of figuring it out...
The custom compile has a single line for preprocessing fn_selfActions. I didn't include every step since it is just like all the other mods out there. Refer to the first paragraph in my install instructions. :)
This is awesome. I like the bait bomb a little more but this is prime time bad @55ery. Keep the great ideas flowing dude.
Just a hint though... Commenting your code would prevent you from being flooded by a lot of these questions. :)
After looking at some of the other fuel siphon scripts out there I decided to write my own. This script is derived from @DayZ\Addons\dayz_code\actions\jerry_fill.sqf (1.7.7.1) and is a fully server-side mod contained in mission.pbo.
FEATURES
This script will siphon fuel into all suitable...
That's how we keep things moving for the better!
I did test the optimized do loop above on 1.7.7.1 and it works fine. For the timer set to 30 seconds it takes almost 30 seconds on the dot to administer the self blood bag.
Script works fine with 1.7.7.1. Thanks for posting it!
I optimized the do loop code to remove a lot of the excess logic to reduce the load on the server (every little bit helps). Remember that the interpreter will go through each conditional in the if statement even if the preceding condition...
This site has been a great resource for digging into ArmA2 scripting and modding DayZ servers. There are a lot of good ideas and well implemented modifications floating around. After digging through the site for a few weeks and implementing various mods (either as a copy/paste or re-writing a...
How do you want the actual implementation of the menu to be? If you want something like how you can right click on the hatchet in the players tool belt and have a context menu come up with "Chop Wood" in it then I'd really like to know the server-side mod only answer as well. :)
One way you...
Got it, thanks. My next question was about overriding functions with redefined ones but you answered that too. :)
I've got self bloodbags running in mission.pbo so it's all server side.
Is there a way to create public event handlers and public variables on the fly or will I need to move those...
I've been trying to find the answer to this question on this forum as well as on Bohemia's scripting wiki and having no luck. Hopefully someone here can answer it for me.
What files can be updated on the server without clients having to download them?
I know that the mission.pbo is a pure...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.