Hello Guys. Today I have created a small yet useful script. This covers power and pap doors. What is a power door? A power door is a door that opens after the power is activated. Isn't that already in the game like verruckt and der riese? Yes it is but I'm pretty sure almost no one, not even I, knows how to use it. Therefore I just created a script that is simpler and is seperated from all the other complex scripts in the game. What is a pap door? A pap door is a door that opens after all der riese style teleporters are linked. This part of the script only applies to people using der riese style teleporting in their map. Isn't that also already in world at war in the map der riese? Yes it is, but I have some reasons that I think people will understand for making a new script. 1. The original pap door is basically the script_model for the pap door and an invisible clip infront of it so that nobody can walk through the model. In the original dlc3_teleporter script, the script model will move down a little on the first link, again on the second, and then all the way down on the third followed by the clip deleting. That is a bit complicated for those who want to just simply add a pap door. 2. The script_model used in der riese is a certain size. The treyarch map makers have made the dlc3_teleporter script make the model move down certain amounts of units. Therefore it will only look proper when you use the pap door script_model or another script_model/script_brushmodel that is the exact same size as the pap door model. Some may want a different model, that is a different size. But the movement for it will not look good unless you go in and re-count the units you want the door to move and then edit that in the dlc3_teleporter script. I know I dont want to do that, and Im sure others dont aswell. My script just waits for all teleporters to be linked, and then gives an easy way to make the door move where ever YOU want it to, no hassle required. Those are my reasons for remaking the power/pap doors. Now lets get to installation.
Get a ".gsc" file. Name it "power_pap_door.gsc". Put the following in it:
Add "maps\power_pap_door::main();" after "maps\_zombiemode::main();" in "mapname.gsc". Adding a second/third/fourth/cont. door should be self explanitory after reading the script. Make sure at the top to change how you want the door to move after it has been told to open. Go into radiant. Make either a script_model or script_brushmodel for your door(s). Make the power door this: targetname = power_door1
Make the pap door this: targetname = pap_door1
Now put a trigger_use infront of each door. These will not be for using, only for showing a hintstring that informs the players what action needs to occur for the door to open. Example: "The power must be activated first" Trying to use the trigger_use will have no effect, do not worry. They will also be deleted along with the door, so no worries about extra unneeded entities on your map. Make the trigger_use infront of the power door this: targetname = power_door1_hintstring
Make the one in front of the pap door this: targetname - pap_door1_hintstring
Save & Close. Compile Map. In mod builder, make sure to check the following: power_pap_door.gsc mapname.gsc
Build Mod.
Credit me, xSanchez78, for this tutorial. By the way, some people thought alaurenc9 and xSanchez78 were two different people. Well my zombiemodding name is alaurenc9, my steam, ps3, ps4, xbox, and any other thing's name is xSanchez78. So dont think we are to different people, Lol. Credits to Gamer9294 for helping with the moving door ideas. And the setup for people to easily make the door move wherever they want it to. Example video, NOT MADE BY ME!, it was made by Gamer9294. www.youtube.com/watch?v=Ulnxi_UwRkM Enjoy and peace.
Last Edit: November 07, 2014, 05:46:53 am by alaurenc9