SmokeyMeadow
Well-Known Member
Hey guys. Just sharing some requested code from a WIP script I've been playing around with. This script will allow your players to refold any of the HQ buildings (BDRM, BTR, BMP2, or LAV) into the drivable version of itself. Unfolded, it gives access to a deployable signal fire, search light, tripod machine gun, supply tent, scout bike, and purified water supply. Players can monitor your server's CCTV grid, activate an alarm to draw attention, and even activate a macro version of Fred's Anti-Zed Emitter, to kill all zombies in a certain range. The idea is for it to act as a movable citadel for admins, or just give players something neat to fight over.
Of course there are some issues. Currently, this script requires you to be running Dayz of Glory. All credit for the code to make it spawn the various vehicles goes to Sporkulus. It's my intent to make it so it doesn't require users to run the RP mod as well. But currently I'm stalled on that. An included deployable UAV is unstable and dangerous, and the controls to make it act as a drone don't appear to exist. Refolding the BMP has been known to make it fly into the air. And the various drivable HQs only seat 2 people, which I see no way to change. So that sucks.
Anyway, here is the code so far. Like I said, all credit goes to Sporkulus and Freaking Fred for the foundation of this script.
Here are the various sqf files needed:
http://www.mediafire.com/download/c8594qj1cka8g7x/hq+script.zip
If I missed something let me know. They all go in the scripts folder in your mission file.
These files are for the sounds:
https://www.mediafire.com/?iu7ywu8aqexjto1
Once again, if I missed something let me know. It's late and I haven't actually messed with any of this stuff in a few months.
This very long part goes at the end of fn_selfactions:
http://pastebin.com/NtdB68mC
You will need to have Dayz of Glory and RMod or RMod 2/2.1 to make this work. My intent in creating this thread is to make it so the script can be used without Dayz of Glory. But first I need to understand how Spork made the vehicle spawning in his mod work, which has eluded me.
Of course there are some issues. Currently, this script requires you to be running Dayz of Glory. All credit for the code to make it spawn the various vehicles goes to Sporkulus. It's my intent to make it so it doesn't require users to run the RP mod as well. But currently I'm stalled on that. An included deployable UAV is unstable and dangerous, and the controls to make it act as a drone don't appear to exist. Refolding the BMP has been known to make it fly into the air. And the various drivable HQs only seat 2 people, which I see no way to change. So that sucks.
Anyway, here is the code so far. Like I said, all credit goes to Sporkulus and Freaking Fred for the foundation of this script.
Here are the various sqf files needed:
http://www.mediafire.com/download/c8594qj1cka8g7x/hq+script.zip
If I missed something let me know. They all go in the scripts folder in your mission file.
These files are for the sounds:
https://www.mediafire.com/?iu7ywu8aqexjto1
Once again, if I missed something let me know. It's late and I haven't actually messed with any of this stuff in a few months.
This very long part goes at the end of fn_selfactions:
http://pastebin.com/NtdB68mC
You will need to have Dayz of Glory and RMod or RMod 2/2.1 to make this work. My intent in creating this thread is to make it so the script can be used without Dayz of Glory. But first I need to understand how Spork made the vehicle spawning in his mod work, which has eluded me.