From 92920b994bec5f6c7d90cb4d1d4c70618635e0ff Mon Sep 17 00:00:00 2001 From: LegendaryGuard Date: Sat, 13 Feb 2021 21:31:31 +0000 Subject: [PATCH] Changed title to Programming QuakeC things in Xonotic and making Weapons function section more visible in the reading --- ...c.md => Programming-QuakeC-things-in-Xonotic.md | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) rename Functions-and-other-programming-QuakeC-things-in-Xonotic.md => Programming-QuakeC-things-in-Xonotic.md (92%) diff --git a/Functions-and-other-programming-QuakeC-things-in-Xonotic.md b/Programming-QuakeC-things-in-Xonotic.md similarity index 92% rename from Functions-and-other-programming-QuakeC-things-in-Xonotic.md rename to Programming-QuakeC-things-in-Xonotic.md index dccb7c9..e9b4797 100644 --- a/Functions-and-other-programming-QuakeC-things-in-Xonotic.md +++ b/Programming-QuakeC-things-in-Xonotic.md @@ -82,8 +82,6 @@ MUTATOR_CALLHOOK(name_of_MUTATOR_HOOKFUNCTION_or_events.qh_main_hook, some_varia ```
-
- ## List of MUTATOR functions @@ -95,7 +93,6 @@ You can look the MUTATOR functions in: - **SERVER:** [`qcsrc/server/mutators/events.qh`](https://timepath.github.io/scratchspace/d6/ddd/server_2mutators_2events_8qh.html) -

@@ -118,7 +115,7 @@ You can look the example of this weapon code: ## List of WEAPON functions -This is a created list of functions to modify/create weapons. There are incomplete explanations for each function. +This is a created list of functions to modify/create weapons. There may be incomplete explanations for each function. There are contents taken from [`qcsrc/common/weapons/all.qh`](https://timepath.github.io/scratchspace/d0/ddd/weapons_2all_8qh_source.html) @@ -157,23 +154,22 @@ void W_SetupProjVelocity_Explicit( ) ``` -- [**W_MuzzleFlash**](https://timepath.github.io/scratchspace/d0/ddd/weapons_2all_8qh_source.html)(located in `qcsrc/common/weapons/all.qh` line 406) +- [**W_MuzzleFlash**](https://timepath.github.io/scratchspace/d0/ddd/weapons_2all_8qh_source.html)(located in **`qcsrc/common/weapons/all.qh`** line 406) In the moment when player shots the weapon, weapon flashes. -*Note:* write `#ifdef SVQC` at the start of using this function, and write with `#endif` after declared the function(only can do this if the code which needs execute can do this, although maybe you need more functions/things in the code inside this). +**Note:** write **`#ifdef SVQC`** at the start of using this function, and write with **`#endif`** after declared the function (only can do this if the code which needs execute can do this, although maybe you need more functions/things in the code inside this). ```c void W_MuzzleFlash(Weapon thiswep, entity actor, .entity weaponentity, vector shotorg, vector shotdir); ``` - [**Weapon selection functions**](https://timepath.github.io/scratchspace/d8/d6b/selection_8qh.html) -(located in `qcsrc/server/weapons/selection.qh`) +(located in **`qcsrc/server/weapons/selection.qh`**) - [**Weapon decrease ammo, speed factor, rate factor, reload functions**](https://timepath.github.io/scratchspace/d5/de0/weaponsystem_8qc.html) -(located in `qcsrc/server/weapons/weaponsystem.qh`) +(located in **`qcsrc/server/weapons/weaponsystem.qh`**) -

# HUD, Menu and Draw functions -- 2.39.2