X-Git-Url: http://git.xonotic.org/?p=xonotic%2Fxonotic.wiki.git;a=blobdiff_plain;f=Functions-and-other-programming-QuakeC-things-in-Xonotic.md;h=1d948c8d2215580b3a334b8b40ef1c94e7188616;hp=ffea69bfd523a04bb22aff46c284940a76bbf40e;hb=b5e8e0aaa871f1dc6012679901c28332e751e8a2;hpb=d02057fcc163ba843e75373543f334976c129f0d diff --git a/Functions-and-other-programming-QuakeC-things-in-Xonotic.md b/Functions-and-other-programming-QuakeC-things-in-Xonotic.md index ffea69b..1d948c8 100644 --- a/Functions-and-other-programming-QuakeC-things-in-Xonotic.md +++ b/Functions-and-other-programming-QuakeC-things-in-Xonotic.md @@ -94,7 +94,7 @@ https://timepath.github.io/scratchspace/d6/ddd/server_2mutators_2events_8qh.html ## A bit of introduction -You'll need understand that weapons can be interacted with autocvars variables and its own .qh file where cvars are declared. *Think*, *touch*, *explode* and those types of functions can be declared within an *attack* function and *whatever* it is called. Note that there are also METHODs that are necessary for the weapon to work. +You'll need understand that weapons can be interacted with **autocvars** variables(example: `float autocvar_g_balance_someweapon_speed;`) and each weapon with .qh file where cvars are declared without the need to declare using `autocvar_blabla...`. *Think*, *touch*, *explode* and those types of functions can be declared within an *attack* function and *whatever* it is called. Note that there are also METHODs that are necessary for the weapon to work. - **Think** function makes the weapon shot react on what to do. - **Touch** function makes the weapon shot react against some element where touch (like player, monster, vehicle, ...).