I’m making a Sourcemod (Got most of it done) but I need help with my maps. The mod takes place between Half-Life 1 and Half-Life 2. You are doing weapons training and stuff, and the style of map changing is pressing buttons. When you finish with something, you get to press a button and it loads the next map. That’s where I need help.
Can someone PLEASE explain STEP BY STEP what to do, where the stuff is (screen-shots would be amazing), and how to do it.
Ok, what Magman77 said was right, but I’ll try to explain. Make a “point_clientcommand” entity, anywhere, so long as it doesn’t cause a leak. Name it “map_change”. Then, make your button wherever, make it look like whatever, doesn’t matter. Oh, right, and to make a button make a block, again any size or appearance, and texture it HOWEVER YOU WANT. It does not need the trigger texture. Select it, press “Ctrl+t”, and from the little drop down menu in the top left of the properties select “func_button”. Press enter and then apply. Open the properties back up again and go to the outputs tab. Then add this:
My output named: OnPressed
Target Entities: map_change
Via this input: Command
With a parameter override of: map <name of the map you want to change to>
Obviously, don’t put the less than/greater than signs in that last line. But that should give you the effect you want. Now, if you want a model to appear as if it is the button, do everything above but make a brush around the part that you press and texture it with the “trigger” texture.