momentary_rot_button Last edited 4 years ago2019-05-05 10:20:27 UTC

You are viewing an older revision of this wiki page. The current revision may be more detailed and up-to-date. Click here to see the current revision of this page.

This article was converted from a previous version of TWHL and may need to be reviewed

  1. The formatting may be incorrect due to differences in the WikiCode processing engine, it needs to be revised and reformatted
  2. Some information may be out of date
  3. After the article is re-formatted and updated, remove this notice and the Review Required category.
  4. Some older articles are no longer useful, or they duplicate information from other pages. In this case, delete the page after merging any relevant information into other pages. Contact an admin to delete a page.
Brush Entity

The momentary_rot_button was designed to control the momentary_door, or, thanks to the Door Hack, another momentary_rot_button. The door (or door-hack button) moves relative to the posistion of the momentary_rot_button controlling it. i.e., if the player lets go of the button, the door begins to close.

Attributes

[list]
[li]0 = Normal [li]Render Mode (rendermode) - Controls the type of rendering that is used for an object. Options are: [li]Master (master) - The name of a multisource (or game_team_master) entity. A master must usually be active in order for the entity to work. Thus they act almost like an on/off switch, in their simplest form, and like an AND gate in the case of the multisource.[/li]
[li]Targeted Object (target) - Normally, the momentary_door you want to control.[/li]
[li]FX Amount (renderamt)[/li]
[li]FX Color (rendercolor)[/li]
[li]ZHLT Lightflags (zhlt_lightflags)[/li]
[li]Light Origin Target (light_origin)[/li]
[li]Speed (speed) - Speed the button will turn.[/li]
[li]Sounds (sounds) - sounds values<BR>
<TL>0 = None<BR>
1 = Big zap & Warmup<BR>
2 = Access Denied<BR>
3 = Access Granted<BR>
4 = Quick Combolock<BR>
5 = Power Deadbolt 1<BR>
6 = Power Deadbolt 2<TC>
7 = Plunger<BR>
8 = Small zap<BR>
9 = Keycard Sound<BR>
21 = Squeaky<BR>
22 = Squeaky Pneumatic<BR>
23 = Ratchet Groan<BR>
24 = Clean Ratchet<BR>
25 = Gas Clunk</TL>[/li]
[li]Distance(deg) (distance) - Distance in degrees the button will rotate.[/li]
[li]Auto-return speed (returnspeed) - Speed at which the button will return to its starting position after being used.[/li]
[li]Minimum Light (_minlight)[/li]
[/list]

Flags

Notes

Team Fortress Classic only

Attributes

  • Target (target) - When an entity is activated, it triggers the entity with the name specified by Target.
  • Pitch Yaw Roll (angles) - Sets the pitch (up / down), yaw (left / right) and roll (bank) respectively. The compass in WorldCraft / Hammer corresponds to Yaw. The settings are not always (or not all) used.
  • Render Mode (rendermode) - Controls the type of rendering that is used for an object. Options are:
[list]
[li]0 = Normal
  • 1 = Color
  • 2 = Texture
  • 3 = Glow
  • 4 = Solid
  • 5 = Additive[/li]
[li]Render FX (renderfx) - Gives objects special render effects. Think of it as modifying whatever the Render Mode puts out. The options are as follows:
  • 0 = Normal
  • 1 = Slow Pulse
  • 2 = Fast Pulse
  • 3 = Slow Wide Pulse
  • 4 = Fast Wide Pulse
  • 5 = Slow Fade Away
  • 6 = Fast Fade Away
  • 7 = Slow Become Solid
  • 8 = Fast Become Solid
  • 9 = Slow Strobe
  • 10 = Fast Strobe
  • 11 = Faster Strobe
  • 12 = Slow Flicker
  • 13 = Fast Flicker
  • 14 = Constant Glow
  • 15 = Distort
  • 16 = Hologram (Distort and Fade)[/li]
[li]Targetname of teamcheck goal (teamcheck) - Using this in conjunction with an info_tf_teamcheck allows you to switch the entity's team allegiance when the info_tf_teamcheck changes its team setting. The team_no property must be set to Any (0) if you use this value.[/li]
[li]Has item # (items_allowed) - The player must be carrying this item to use this entity. Set 0 to ignore this criterion.[/li]
[li]Has item from group # (h_i_g) - The player must be carrying any item from this group to use this entity. Set 0 to ignore this criterion.[/li]
[li]Hasn't item from group # (hasnt_item_from_group) - To use this entity, the player must not be carrying any item from this group. Set 0 to ignore this criterion.[/li]
[li]If item # has moved (if_item_has_moved) - A player can only use the entity if this item is not in its original spawn location. Set 0 to ignore this criterion.[/li]
[li]If item # hasn't moved (if_item_hasnt_moved) - A player can only use the entity if this item is in its original spawn location. Set 0 to ignore this criterion.[/li]
[li]If goal # active (if_goal_is_active) - Players can only use the entity if this goal is in the active state. Set 0 to ignore this criterion.[/li]
[li]If goal # inactive (if_goal_is_inactive) - Players can only use the entity if this goal is in the inactive state. Set 0 to ignore this criterion.[/li]
[li]If goal # removed (if_goal_is_removed) - Players can only use the entity if this goal is in the removed state. Set 0 to ignore this criterion.[/li]
[li]If group # active (if_group_is_active) - A player can only use the entity if all the goals in this group are in the active state. Set 0 to ignore this criterion.[/li]
[li]If group # inactive (if_group_is_inactive) - A player can only use the entity if all the goals in this group are in the inactive state. Set 0 to ignore this criterion.[/li]
[li]If group # removed (if_group_is_removed) - A player can only use the entity if all the goals in this group are in the removed state. Set 0 to ignore this criterion.[/li]
[li]Affect all on Team (maxammo_shells) - This allows an entity's effects (giving ammo, taking health, etc.) to be performed on an entire team rather than just the Activating Player. Options are:
  • 0 = Disabled
  • 1 = Blue
  • 2 = Red
  • 3 = Yellow
  • 4 = Green[/li]
[li]Affect all not on Team (maxammo_nails) - This allows an entity's effects (giving ammo, taking health, etc.) to be performed on all players in teams other than the one selected, ignoring the Activating Player. Options are:
  • 0 = Disabled
  • 1 = Blue
  • 2 = Red
  • 3 = Yellow
  • 4 = Green[/li]
[li]If all goals in group # active... (all_active) - When activated, the entity will check to see if all goals in a given group are active. If so, it will activate another goal, which is specified by last_impulse.[/li]
[li]Remove goal # (rv_g) - When the entity is activated, it will remove the goal specified here.[/li]
[li]Restore goal # (rs_g) - When the entity is activated, it will restore the goal specified here.[/li]
[li]Inactivate goals in group # (inactivate_group_no) - When the entity is activated, it will deactivate all the goals in the group specified here.[/li]
[li]Remove goals in group # (rv_gr) - When the entity is activated, it will remove all the goals in the group specified here.[/li]
[li]Restore goals in group # (rs_gr) - When the entity is activated, it will restore all the goals in the group specified here.[/li]
[li]Remove Spawn point # (remove_spawnpoint) - On activation, the entity will remove the info_player_teamspawn entity with the Goal # entered here. While the spawnpoint is removed, no one can spawn there.[/li]
[li]Restore Spawn point # (restore_spawnpoint) - On activation, the entity will restore a removed info_player_teamspawn entity with the Goal # entered here. After being restored, players can once again spawn at the spawnpoint.[/li]
[li]Remove spawn group # (rv_s_h) - On activation, the entity will remove the group of info_player_teamspawn entities with the Goal Group # entered here. While the spawnpoints are removed, players cannot spawn at them.[/li]
[li]Restore spawn group # (rs_s_h) - On activation, the entity will restore the group of removed info_player_teamspawn entities with the Goal Group # entered here. After being restored, players can once again spawn at the spawnpoints.[/li]
[li]Item to give (items) - Note: There are exceptions (check SmartEdit names).

The Item # of an item_tfgoal entity. When the entity is activated, the Activating Player will be given this item. If the item is already being carried by a player, it will be taken from the carrier and given to the Activating Player.[/li]
[li]Remove item from APA (axhitme) - The Item # of an item_tfgoal entity. When the entity is activated, if the Activating Player is carrying the specified item, it will be removed from him. What happens to it then is determined by the Goal Activation property of the item.[/li]
[li]Master (master) - The name of a multisource (or game_team_master) entity. A master must usually be active in order for the entity to work. Thus they act almost like an on/off switch, in their simplest form, and like an AND gate in the case of the multisource.[/li]
[li]Name (targetname) (targetname)[/li]
[li]FX Amount (1 - 255) (renderamt)[/li]
[li]FX Color (R G B) (rendercolor)[/li]
[li]ZHLT Light flags (zhlt_lightflags)[/li]
[li]Minimum light level (_minlight)[/li]
[li]Team allowed to activate entity (team_no)[/li]
[li]Player class allowed to activate entity (playerclass)[/li]
[li]Effect radius, 0=infinite (t_length)[/li]
[li]If criteria fails activate Goal# (else_goal)[/li]
[li]...activate goal# (last_impulse)[/li]
[li]Activate goal# (activate_goal_no)[/li]
[li]Inactivate goal# (inactivate_goal_no)[/li]
[li]Activate goals in group# (activate_group_no)[/li]
[li]Return item # (return_item_no)[/li]
[li]Remove items in group # (r_i_g)[/li]
[li]Add/Subtract frags (frags)[/li]
[li]Add/Subtract lives (lives)[/li]
[li]Add/Subtract health (health)[/li]
[li]Armor Value % (armorvalue)[/li]
[li]Armor Class (armorclass)[/li]
[li]Add/Subtract shells (a_s)[/li]
[li]Add/Subtract nails (a_n)[/li]
[li]Add/Subtract rockets (a_r)[/li]
[li]Add/Subtract cells (a_c)[/li]
[li]Add/Subtract detpack (ammo_detpack)[/li]
[li]Add/subtract grenades #1 (no_grenades_1)[/li]
[li]Add/subtract grenades #2 (no_grenades_2)[/li]
[li]Invincibility duration (invincible_finished)[/li]
[li]Invisibility duration (invisible_finished)[/li]
[li]Quad duration (super_damage_finished)[/li]
[li]Rad Suit duration (radsuit_finished)[/li]
[li]Score to AP team (count)[/li]
[li]Teamcheck team point gain (increase_team)[/li]
[li]Blue point gain (increase_team1)[/li]
[li]Red point gain (increase_team2)[/li]
[li]Yellow point gain (increase_team3)[/li]
[li]Green point gain (increase_team4)[/li]
[li]Owned by-for msg & item glow (owned_by)[/li]
[li]Owned by teamcheck (owned_by_teamcheck)[/li]
[li]Death type (deathtype)[/li]
[li]Message to all (b_b)[/li]
[li]Message to AP (message)[/li]
[li]Message to AP team (b_t)[/li]
[li]Message to non-AP team (b_n)[/li]
[li]Message to owner team (b_o)[/li]
[li]Message to non-owner team(s) (non_owners_team_broadcast)[/li]
[li]Console msg. to all, %s = AP name (n_b)[/li]
[li]Console msg to AP team (n_t)[/li]
[li]Console msg. to non-AP team (n_n)[/li]
[li]Console msg. to owner team (n_o)[/li]
[li]Speak (global) (speak)[/li]
[li]Speak (AP) (AP_speak)[/li]
[li]Speak (AP team) (team_speak)[/li]
[li]Speak (non-AP team) (non_team_speak)[/li]
[li]Speak (owner team) (owners_team_speak)[/li]
[li]Speak (non-owner teams) (non_owners_team_speak)[/li]
[li]Speed (speed)[/li]
[li]Sounds (sounds)[/li]
[li]Distance (deg) (distance)[/li]
[li]Auto-return speed (returnspeed)[/li]
[/list]

1 Comment

Commented 3 weeks ago2024-03-28 09:56:50 UTC Comment #106092
Findings:
  • Door hack flag makes the entity un-use-able but solid (default is useable but not solid)
  • Not useable flag has no effect [not implemented?]
  • [bug] the entity only works well with positive distance (clockwise opening). Negative distance makes the internal value "start open". The linked momentary_door will always be opening when the momentary_rot_button moves clockwise and vice versa.
    • solution: have all linked momentary_rot_buttons have positive distance, and rotate the entity's yaw 180 degrees to make it spin counterclockwise (and now lighting needs to be taken to consideration)
  • [bug] [Related with negative distance also,] if there are 2 or more linked momentary_rot_buttons and the other has different signed distance then the other button will keep spinning past the end (and the internal ratio value would go past the 0 ≥ x ≥ 1 range)
    • solution: same as above
  • If 2 or more linked momentary_rot_buttons have different distance/speed the one being USEd will dictate the speed and distance of the others. Then when it reaches the full distance all the others will snap to their fully opened/closed positions.
  • As per RUST: Creating Proximity Doors triggering the momentary_rot_button every 0.1s does move it at the prescribed speed, but if "auto return" is not set it'd just continually ping-pong between opening and closing.

You must log in to post a comment. You can login or register a new account.