CubeScript

From AssaultCube

Jump to: navigation, search

Information about CubeScript can be found in the docs: http://assault.cubers.net/docs/cubescript.xml

CubeScript is very similar to the Quake console language and was designed to be largely backwards compatible to it; it has quite a number of enhancements though and it is a very powerful way to interact with the engine and tweak your personal gaming experience.

The most simple usage might just possibly be the binding of keys. But from there it is just a small step to some more interactive usage.

alias gun_names "knife pistol shotgun subgun sniper assault grenade akimbo"
alias my_gun_state [
    concat I am carrying the (at $gun_names (curweapon)) with (magcontent (curweapon)) rounds loaded of (magreserve (curweapon)) total
]
bind HOME [ say "%" (my_gun_state) ]

External links

http://cube.wikispaces.com/Scripting+Guide

Personal tools