reset func_plat every round
Post Reply
Quote
Re: reset func_plat every round
Posted by 2dmin on Sun Nov 9th at 4:18am 2003


ok in my (small) fun map there is a large roller door which separates the terrorists from teh counter-terrorists. i have a button which activates it, up and down. but when the next round starts the "door" is still in the down position, where i left it ... how do i make it reset to the closed (up) position every round ?



Quote
Re: reset func_plat every round
Posted by mazemaster on Sun Nov 9th at 4:31am 2003


First, you should really be using something other than plats since they are notoriously buggy and their effects can basically be acheived by other, less buggy entities.

Second, to reset stuff every round in counterstrike, you want to use whats known as the "door hack". details here:

http://countermap.counter-strike.net/Tutorials/tutorial.php?id=7

The basic premise is that func_doors reset themselves each round.





Quote
Re: reset func_plat every round
Posted by 2dmin on Sun Nov 9th at 4:35am 2003


what entity can i use instead of func_plat ? how do i make a func_door move upwards instead of sideways ?





Quote
Re: reset func_plat every round
Posted by mazemaster on Sun Nov 9th at 5:14am 2003


The tutorial actually does work for anything, you just are not understanding it completely. The whole idea is not to reset the func_door, but to reset other stuff that normally does not reset by using the fact that func_doors reset.

The func_door in the tutorial is not actually a door in your map, but rather just a door sitting out in space whose only purpose is to trigger a multimanager when the round resets.

Anyways, if you want to use a func_door for your map instead of a func_plat (totally different from using a door hack - here you are just using a door in the first place), then you can make it go up like so:

The "angles" key (you might need to turn off smartedit to see it) is specified in P Y R (Pitch, Yaw, Roll). You can EITHER choose to specify 90 degrees of pitch in the "angles key" OR choose "UP" from the options by the yaw angle spinner. Don't do both - theres a bug in hammre that can cause trouble sometimes if you do this.

Here is a diagram of PYR:





Quote
Re: reset func_plat every round
Posted by 2dmin on Sun Nov 9th at 5:27am 2003


thanks man

i'm a noobie mapper, i'm glad that you took the time to enlighten me. hope you get lotsa snark marks for those 2 correct answers






Post Reply