Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- alias editbind [
- bind $arg1 (format "if $editing [%1] [%2]" $arg2 $arg3)
- ]
- docsection [Edit Binds];
- docident [editbind] [Binds a key to both edit mode and regular actions depending on the current game state.];
- docargument [K] [The key to bind.];
- docargument [E] [Body of code to execute if in editmode.];
- docargument [G] [Body of code to execute if not in editmode.];
- // Examples
- // E - Toggles out of editmode if already in it, otherwise checks to ensure that you are not coop-editing, and are either playing a bot round or connected to a server before quick switching to knife, otherwise, it toggles into editmode.
- // editbind E [edittoggle] [if (&& (!= $gamemode 1) (|| $connected (curmodeattr bot))) [melee] [edittoggle]]
- // F - Converts the entire current selection into solid geometry if in editmode, otherwise it acts as a "toggle" bind, switching back and fourth between primary/secondary weapons when pressed.
- // editbind F [solid 1] [if (= (currentprimary) (curweapon)) [secondary] [primary]]
- // G - Converts the entire current selection into non-solid geometry if in editmode, otherwise it acts as a quick switch to grenades bind when pressed.
- // editbind G [solid 0] [grenades]
- // H - Merges the editing functions of the default H and I keybinds, checks to ensure that you are in editmode, and if you are looking upwards towards the ceiling cubes, will covert the current selection into a "ceiling heightfield", otherwise if you are looking downwards towards the floor cubes, will convert the current selection into a "floor heightfield".
- // editbind H [if (= $flrceil 0) [heightfield 0] [if (= $flrceil 2) [heightfield 2]]] []
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement