Call of Duty 5: World at War => Tutorial Desk => Scripting => Topic started by: Dust on September 16, 2015, 06:02:07 pm
Title: [Tutorial] Players "deposit" points to open a door. Will scale to players size
Post by: Dust on September 16, 2015, 06:02:07 pm
PURPOSE: This is a simple tutorial that will add a door so the players can deposit points to it to open it, and you can also change it to have it cost more depending on how many players are in the map. This is the script I made for Undead Overkill, map by PCModder.
SCRIPT: 1. Open up your mapname.gsc, towards the middle of the file, you will see UNDER it paste this in 2. At the bottom of the file, paste this into it
You will see some variables at the top. Only thing you should worry about is the . That is where you will put how many points the players need to deposit to open the door. I left some comments in so you know which one to change to make it for solo,2 player, 3 player, or 4 player. You can also change the if you want. That is how much the players can deposit at 1 time, default is 1000 points. That is the name of the flag for the zone you are entering, it is set up the same way as a normal zone, so make sure it matches the zone that you are entering.
RADIANT:
1. Make a new door in radiant, make sure its a script_brushmodel. Give it the KVP: Key: targetname, Value: door. Make sure Dynamic Path is checked! 2. Make a clip that is also a script_brushmodel, give it the KVP: Key: targetname, Value:door_clip. Make sure dynamic path is checked! 3. Make a trigger_use around the door, give it the KVP: Key, targetname, Value:door_trig
FINAL: Compile map, and build mod and your done! Please give me credit if you use this script If you have any questions, don't hesitate to ask
Title: Re: [Tutorial] Players "deposit" points to open a door. Will scale to players size
Post by: Ramiabdh on September 16, 2015, 06:49:19 pm
Awesome tut man. :D This will bring about some cool challenges.
Title: Re: [Tutorial] Players "deposit" points to open a door. Will scale to players size
Post by: Tim Smith on September 17, 2015, 11:32:17 am
good work :D i surely find a use of this
Title: Re: [Tutorial] Players "deposit" points to open a door. Will scale to players size
Post by: kitos on August 05, 2017, 09:10:59 am
this is with souls to open door? or only is deposit point to open? im searching how to do deposit to open the trigger but not with points with zombie souls like this video: