SHARE
TWEET

Untitled

a guest Jul 21st, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2.  
  3.    _____                      _ _        __  __                          
  4.   / ____|                    (_) |      |  \/  |                        
  5.  | |     ___  _ __ ___  _ __  _| | ___  | \  / | __ _  ___ _ __ ___  ___
  6.  | |    / _ \| '_ ` _ \| '_ \| | |/ _ \ | |\/| |/ _` |/ __| '__/ _ \/ __|
  7.  | |___| (_) | | | | | | |_) | | |  __/ | |  | | (_| | (__| | | (_) \__ \
  8.   \_____\___/|_| |_| |_| .__/|_|_|\___| |_|  |_|\__,_|\___|_|  \___/|___/
  9.                        | |                                              
  10.                        |_|    
  11.  
  12. Macros are basically a "function" in the qc script. You give it input parameters and it gives you the output. It's quite useful for making things easier and saving time.
  13. This is a collection of those such macros as to make general props and structures really easy to do with no knowledge of qcs. All you have to do is type
  14.  
  15. $include macro_master.qci
  16.  
  17. in your qc and then you'll have access to all of the commands. If you wish to use a subset of folders, for example "ba/props_hl3leak" you can stick "macro_master.qci" in "ba" and then do
  18.  
  19. $include ../macro_master.qci
  20.  
  21. instead.
  22.  
  23. Once you have this you are free to make use of any of the commands listed further down. However, In order for this to work properly you MUST adhere to the guidelines and naming functionality listed below.
  24.  
  25.  
  26. GUIDELINES!
  27.  
  28. 1. NO CAPTIALS IN FILE NAMES. This is generally a good idea as it brings trouble to linux users
  29. 2. NO SPACES IN FILE NAMES. This breaks a lot of things not just the macros.
  30. 3. NO QUOTES. Do NOT use quotes in the qc
  31. 4. Collision model MUST be named *insertmodelnamehere*_phys ex: riverbirch_phys.smd
  32.  
  33. PARAMETRS!
  34.  
  35. [modelscale]        Ex: 2                                   [Float] The Scale of the model. 1 should be the default
  36. [modelpath]         Ex: props_forest/riverbirch             [String] The directory relative to "models" the model should be compiled in. Do not put a / at the end
  37. [model]             Ex: riverbirch                          [string] The name of the model. Should be the exact same name as the smd/dmx/obj file. Ex: if I have "riverbirch.smd" I'd end up with just riverbirch
  38. [texturepath]       Ex: props_forest                        [string] The directory the textures are stored in. We automatically assume the ba/materials/models directory, so you'll end up with ba/materials/models/props_forest
  39. [surfaceprop]       Ex: concrete                            [string] The type of surface the model is. Surface tpyes listed here https://developer.valvesoftware.com/wiki/Material_surface_properties
  40.  
  41.  
  42. $makestaticprop basic [modelscale] [modelpath]  [model] [texturepath]
  43.  
  44.  
  45.  
  46.  
  47.   _____                      _              _ _ _     _          _                 _   _     _       _ _            _
  48.  |  __ \                    | |            | (_) |   | |        | |               | | | |   (_)     | (_)          | |
  49.  | |  | | ___    _ __   ___ | |_    ___  __| |_| |_  | |__   ___| | _____      __ | |_| |__  _ ___  | |_ _ __   ___| |
  50.  | |  | |/ _ \  | '_ \ / _ \| __|  / _ \/ _` | | __| | '_ \ / _ \ |/ _ \ \ /\ / / | __| '_ \| / __| | | | '_ \ / _ \ |
  51.  | |__| | (_) | | | | | (_) | |_  |  __/ (_| | | |_  | |_) |  __/ | (_) \ V  V /  | |_| | | | \__ \ | | | | | |  __/_|
  52.  |_____/ \___/  |_| |_|\___/ \__|  \___|\__,_|_|\__| |_.__/ \___|_|\___/ \_/\_/    \__|_| |_|_|___/ |_|_|_| |_|\___(_)
  53.  
  54. */
  55.  
  56.  
  57. $definemacro makestaticpropbasic modelscale modelpath model texturepath \\
  58. $scale $modelscale$ \\
  59. $modelname $modelpath$/$model$.mdl \\
  60. $model staticprop $model$ \\
  61. $cdmaterials models/$texturepath$ \\
  62. $sequence "staticprop" $model$ \\
  63. $collisionmodel $model$_phys { $concave } \\
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top