- 0
Indestructible Bases + Destructible Locked Doors = Bugs Bunny
-
Similar Content
-
- 3 replies
- 1675 views
-
- 1 reply
- 2429 views
-
- 9 replies
- 1663 views
-
- 10 replies
- 1879 views
-
- 11 replies
- 4809 views
-
- Advertisement
Question
naz
I'm running 1.0.4, I have CPC Indestructible Bases script, which I modified a bit so that locked doors are excluded. I modified the array in dayz_server -> system\server_monitor.sqf to reflect the changes I wished to make, so that when server starts, any walls or floors that are in the database will be indestructible, except of course for the locked doors, which I commented out.
This works great as long as no one messes with your building until a restart. CPC already had a fix for that too, I took player_build.sqf from the dayz_code and modified it with the necessary fix, plus another fix, of course, for excluding locked doors.
This all works fine and dandy, except when *upgrading* your structure. I first noticed it when I could shoot a half concrete wall all day with a rocket launcher, but as soon as I upgraded it, it became vulnerable to destruction. The same goes for all upgradable structures, namely from open-doorways to doored-doorways if you get my drift.
After playing around with player_build.sqf for a bit, I realized that this file is not used at all when upgrading a structure. Now I am at a loss, because I have no idea what to do next! What I really need to know right now is, where can I get or access the script that is called when a player upgrades an existing structure?Thanks in advance.
EDIT: I figured it out on my own. I had to get this player_upgrade.sqf file from vbawol's repository. I edited it a little bit to reflect the changes I was wanting to make:
Saved it in my custom folder, then in fn_selfActions file I called it to execute instead of the generic one from dayz_code (which wasnt even in my dayz_code, weird) and it works great! All builds are indestructible except for locked doors. :-)
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now