Latest revision |
Your text |
Line 1: |
Line 1: |
− | {{DISPLAYTITLE:func_plat}}
| + | Temporary, since this page didn't exist: |
| | | |
− | {{Infobox_entity
| + | <code> |
− | | classname = func_plat
| + | /*QUAKED func_plat (0 .5 .8) ? PLAT_LOW_TRIGGER |
− | | type = brush
| + | speed default 150 |
− | | class = [[Func (entity class)|func]]
| |
− | | quakec = [[plats.qc]]
| |
− | | precaches =
| |
− | '''plats/plat1.wav'''<br>
| |
− | '''plats/plat2.wav'''<br>
| |
− | '''plats/medplat1.wav'''<br>
| |
− | '''plats/medplat2.wav'''
| |
− | }}
| |
| | | |
− | The '''func_plat''' is a moving brush entity commonly used for elevator creation.
| + | Plats are always drawn in the extended position, so they will light correctly. |
| | | |
− | == Usage ==
| + | If the plat is the target of another trigger or button, it will start out disabled in the extended position until it is trigger, when it will lower and become a normal plat. |
− | '''func_plat'''s are created in their "extended" position (for lighting calculation purposes).
| |
| | | |
− | When the player stands on top of a '''func_plat''', it starts moving vertically to a set height.
| + | If the "height" key is set, that will determine the amount the plat moves, instead of being implicitly determined by the model's height. |
− | | + | Set "sounds" to one of the following: |
− | == Attributes ==
| + | 1) base fast |
− | If the ''height'' field is not set, it calculates it based on the '''func_plat''''s vertical size. | + | 2) chain slow |
− | Keep in mind '''func_plat'''s are created already at their target position when setting ''height''.
| + | */ |
− | | + | </code> |
− | === Keys ===
| |
− | {| class="wikitable" width="100%"
| |
− | |-
| |
− | | ! bgcolor="#eeeeee" width="100px" | ''targetname'' |
| |
− | | The targetname of the Entity. If targeted, the '''func_plat''' will spawn in the extended position, and return to it's starting position when triggered and become a normal '''func_plat'''.
| |
− | |-
| |
− | | ! bgcolor="#eeeeee" | ''target''
| |
− | | ''[TODO: When does the platform trigger?]''
| |
− | |-
| |
− | | ! bgcolor="#eeeeee" | ''height''
| |
− | | The vertical distance the '''func_plat''' moves.
| |
− | |-
| |
− | | ! bgcolor="#eeeeee" | ''speed''
| |
− | | The speed at which the '''func_plat''' moves.
| |
− | |-
| |
− | | ! bgcolor="#eeeeee" | ''sounds''
| |
− | | The sound the '''func_plat''' makes while moving.<br>
| |
− | Multiple choices:<br>
| |
− | 0. "None"<br>
| |
− | 1. "Base fast"<br>
| |
− | 2. "Chain slow"
| |
− | |}
| |
− | | |
− | ===Spawnflags===
| |
− | The entity_name entity supports the following [[Entity#Spawnflags|spawnflags]]:
| |
− | {| class="wikitable" width="100%"
| |
− | ! width="50" | Flag
| |
− | ! width="150" | Common Name
| |
− | ! Description
| |
− | |-
| |
− | | flag 1
| |
− | | Low trigger volume
| |
− | | ''[TODO: What does this do?]''
| |
− | |}
| |
− | | |
− | It also supports the standard spawnflags for difficulty and deathmatch presence.
| |
− | {{Template:Mode_spawnflags
| |
− | | entity = The '''func_plat'''
| |
− | }}
| |
− | | |
− | ==Definitions==
| |
− | | |
− | ===FGD Definition===
| |
− | This is the format used by [[TrenchBroom]] and [[Worldcraft]]. Note that the model(...) parameter is not supported by Worldcraft. This does not include the base class definition, which may also be required.
| |
− | <pre>
| |
− | @SolidClass base(Appearflags, Targetname) = func_plat : "Elevator"
| |
− | [
| |
− | spawnflags(Flags) =
| |
− | [
| |
− | 1 : "Low trigger volume" : 0
| |
− | ]
| |
− | speed(integer) : "Speed" : 150
| |
− | height(integer) : "Travel altitude (can be negative)" : 0
| |
− | sounds(choices) : "Sound" : 1 =
| |
− | [
| |
− | 0: "None"
| |
− | 1: "Base fast"
| |
− | 2: "Chain Slow"
| |
− | ]
| |
− | ]
| |
− | </pre> | |
− | ===DEF Definition===
| |
− | This is the definition format used for most old Quake editors, including the original [[QuakeEd]].
| |
− | <pre>
| |
− | [ code from entity entry in a .def file goes in here ]
| |
− | </pre>
| |
− | | |
− | [[Category:Quake entities]]
| |