Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- _____ _ _ __ __
- / ____| (_) | | \/ |
- | | ___ _ __ ___ _ __ _| | ___ | \ / | __ _ ___ _ __ ___ ___
- | | / _ \| '_ ` _ \| '_ \| | |/ _ \ | |\/| |/ _` |/ __| '__/ _ \/ __|
- | |___| (_) | | | | | | |_) | | | __/ | | | | (_| | (__| | | (_) \__ \
- \_____\___/|_| |_| |_| .__/|_|_|\___| |_| |_|\__,_|\___|_| \___/|___/
- | |
- |_|
- 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.
- 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
- $include macro_master.qci
- 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
- $include ../macro_master.qci
- instead.
- 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.
- GUIDELINES!
- 1. NO CAPTIALS IN FILE NAMES. This is generally a good idea as it brings trouble to linux users
- 2. NO SPACES IN FILE NAMES. This breaks a lot of things not just the macros.
- 3. NO QUOTES. Do NOT use quotes in the qc
- 4. Collision model MUST be named *insertmodelnamehere*_phys ex: riverbirch_phys.smd
- PARAMETRS!
- [modelscale] Ex: 2 [Float] The Scale of the model. 1 should be the default
- [modelpath] Ex: props_forest/riverbirch [String] The directory relative to "models" the model should be compiled in. Do not put a / at the end
- [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
- [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
- [surfaceprop] Ex: concrete [string] The type of surface the model is. Surface tpyes listed here https://developer.valvesoftware.com/wiki/Material_surface_properties
- $makestaticprop basic [modelscale] [modelpath] [model] [texturepath]
- _____ _ _ _ _ _ _ _ _ _ _ _ _
- | __ \ | | | (_) | | | | | | | | | (_) | (_) | |
- | | | | ___ _ __ ___ | |_ ___ __| |_| |_ | |__ ___| | _____ __ | |_| |__ _ ___ | |_ _ __ ___| |
- | | | |/ _ \ | '_ \ / _ \| __| / _ \/ _` | | __| | '_ \ / _ \ |/ _ \ \ /\ / / | __| '_ \| / __| | | | '_ \ / _ \ |
- | |__| | (_) | | | | | (_) | |_ | __/ (_| | | |_ | |_) | __/ | (_) \ V V / | |_| | | | \__ \ | | | | | | __/_|
- |_____/ \___/ |_| |_|\___/ \__| \___|\__,_|_|\__| |_.__/ \___|_|\___/ \_/\_/ \__|_| |_|_|___/ |_|_|_| |_|\___(_)
- */
- $definemacro makestaticpropbasic modelscale modelpath model texturepath \\
- $scale $modelscale$ \\
- $modelname $modelpath$/$model$.mdl \\
- $model staticprop $model$ \\
- $cdmaterials models/$texturepath$ \\
- $sequence "staticprop" $model$ \\
- $collisionmodel $model$_phys { $concave } \\
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement