You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 10, 2025. It is now read-only.
mittorn edited this page Mar 3, 2016
·
7 revisions
Some simple scripting extensions was add
Enabling scripting:
cmd_scripting 1
This is archive cvar, it will be saved.
Console variables
Console variables (or CVars) are present in all quake-based games.
By deefault, it is settings, created by engine, server or client libraries.
But you can use set command to define variiables even if they are not created by engine.
For example, you can set cvar before it is registered in code.
set defaultmap crossfire
This works even in server.cfg before server cvars initialization
Aliases
Alias allows to define new commands.
alias wnext "invnext;wait;wait;+attack;wait;-attack"
You can hook any command by adding alias to it.
alias invnext1 "unalias invnext;wnext;alias invnext invnext1" alias invnext invnext1
CVar substitution
This is extension of xash3d fork, that can be enabled by cmd_scripting cvar
You can substitute cvar value to any command by adding $ symbol: