From 7dedc789b4fbd01766dd90fe299ab50e1cbc67b5 Mon Sep 17 00:00:00 2001 From: Remy Marquis Date: Sun, 14 Apr 2019 12:32:18 +0200 Subject: [PATCH] Added new callback, fixed args description --- callbacks.rst | 9 +++++++++ functions.rst | 12 ++++++------ 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/callbacks.rst b/callbacks.rst index ab8a873..0f9f6d8 100644 --- a/callbacks.rst +++ b/callbacks.rst @@ -186,6 +186,15 @@ Called whenever a player gets damage. * **meansOfDeath** is the means of death. See `et.MOD_* constants `__ for possible values. +et_WeaponFire( clientNum, weapon ) +---------------------------------- + +Called whenever a weapon is shot. + +* **clientNum** is the client slot. +* **weapon** is the weapon shot. + + et_SpawnEntitiesFromString() ---------------------------- diff --git a/functions.rst b/functions.rst index 45c20d6..7b248fb 100644 --- a/functions.rst +++ b/functions.rst @@ -652,10 +652,10 @@ et.trap_Trace( start, mins, maxs, end, entNum, mask ) Traces an entity. * **start** is the starting position. -* **mins** is the minimum length. -* **maxs** is the maximum length. +* **mins** is the minimum point of the bounding box. +* **maxs** is the maximum point of the bounding box. * **ends** is the ending position. -* **entNum** is the entity number that is traced. +* **entNum** is the entity number that is being ignored by the trace function. * **mask** is the content mask. @@ -666,10 +666,10 @@ Runs a trace with players in historical positions. * **ent** is the entity which trace history is handled. * **start** is the starting position. -* **mins** is the minimum length. -* **maxs** is the maximum length. +* **mins** is the minimum point of the bounding box. +* **maxs** is the maximum point of the bounding box. * **ends** is the ending position. -* **entNum** is the entity number that is traced. +* **entNum** is the entity number that is being ignored by the trace function. * **mask** is the content mask.