Updated docs. Minior fixes.
Started writing docs about volumetric features. Improved manual style, lined up tables. Added missing attributes in anticamp conversion functions. Fixed anticamp not extinguishing players who leave a volume that ignite players.
This commit is contained in:
parent
11d51d9e7b
commit
ffdf79f882
@ -2,18 +2,23 @@ This plugin has a command for dumping detailed version info (zr_version) based
|
|||||||
on info from a automatically generated file (hgversion.h.inc).
|
on info from a automatically generated file (hgversion.h.inc).
|
||||||
|
|
||||||
There's a script that generate this file and must be executed every time before
|
There's a script that generate this file and must be executed every time before
|
||||||
compiling. Currently there's only a linux version of that script:
|
compiling:
|
||||||
|
|
||||||
updateversion.sh
|
updateversion.sh
|
||||||
|
updateversion.bat (Executes updateversion.sh using Cygwin)
|
||||||
|
|
||||||
Mercurial must be installed for this script to work. Use the makefile to
|
Mercurial (or TortoiseHG) must be installed for this script to work. Use the
|
||||||
compile since that one will do most of the work. Make sure you clean any
|
makefile to compile since that one will do most of the work. Make sure you
|
||||||
existing builds before compiling:
|
clean any existing builds before compiling:
|
||||||
|
|
||||||
make clean
|
make clean
|
||||||
make
|
make
|
||||||
|
|
||||||
If you're compiling on windows, there's an option to disable this feature. In
|
For compiling on windows, run:
|
||||||
|
|
||||||
|
compile.bat
|
||||||
|
|
||||||
|
If you don't have Mercurial, there's an option to disable this feature. In
|
||||||
zombiereloaded.sp there's a line like this:
|
zombiereloaded.sp there's a line like this:
|
||||||
|
|
||||||
#define ADD_VERSION_INFO 1
|
#define ADD_VERSION_INFO 1
|
||||||
|
@ -168,7 +168,7 @@ zr_classes_change_timelimit "20"
|
|||||||
// Default: "1"
|
// Default: "1"
|
||||||
zr_classes_save "1"
|
zr_classes_save "1"
|
||||||
|
|
||||||
// Admin class assigned to admins on connect. ["random" = Random admin class | "" = Class config default]
|
// (Incomplete) Admin-mode class assigned to admins on connect. Do not confuse this with admin-only classes. ["random" = Random admin class | "" = Class config default]
|
||||||
// Default: "random"
|
// Default: "random"
|
||||||
zr_classes_default_admin "random"
|
zr_classes_default_admin "random"
|
||||||
|
|
||||||
|
BIN
docs/images/zm_crazys_warehouse_be4_anticamp.jpg
Normal file
BIN
docs/images/zm_crazys_warehouse_be4_anticamp.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 38 KiB |
47
docs/zr.css
47
docs/zr.css
@ -6,7 +6,7 @@ h1
|
|||||||
|
|
||||||
h2
|
h2
|
||||||
{
|
{
|
||||||
font-family: "Courier New", "Verdana" "Arial";
|
font-family: "Courier New", "Verdana", "Arial";
|
||||||
font-size: larger;
|
font-size: larger;
|
||||||
color: #900000;
|
color: #900000;
|
||||||
border-bottom-style: solid;
|
border-bottom-style: solid;
|
||||||
@ -62,6 +62,13 @@ p.headerinfo
|
|||||||
color: #000000;
|
color: #000000;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.imagetext
|
||||||
|
{
|
||||||
|
font-family: "Arial", "Times";
|
||||||
|
font-size: x-small;
|
||||||
|
color: #000000;
|
||||||
|
}
|
||||||
|
|
||||||
table
|
table
|
||||||
{
|
{
|
||||||
border-style: none;
|
border-style: none;
|
||||||
@ -103,19 +110,33 @@ th
|
|||||||
border-bottom-width: 2px;
|
border-bottom-width: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
th.namewidth
|
.namewidth
|
||||||
{
|
{
|
||||||
width: "400px";
|
width: 200px;
|
||||||
}
|
}
|
||||||
|
|
||||||
th.tinywidth
|
.tinywidth
|
||||||
{
|
{
|
||||||
width: "100px";
|
width: 75px;
|
||||||
}
|
}
|
||||||
|
|
||||||
th.mediumwidth
|
.mediumwidth
|
||||||
{
|
{
|
||||||
width: "200px";
|
width: 150px;
|
||||||
|
}
|
||||||
|
|
||||||
|
td.parameter
|
||||||
|
{
|
||||||
|
font-family: "Courier New", "Lucida Console";
|
||||||
|
color: #000000;
|
||||||
|
width: 150px;
|
||||||
|
}
|
||||||
|
|
||||||
|
td.valueoption
|
||||||
|
{
|
||||||
|
font-family: "Courier New", "Lucida Console";
|
||||||
|
color: #000000;
|
||||||
|
width: 125px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.container
|
.container
|
||||||
@ -124,3 +145,15 @@ th.mediumwidth
|
|||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
width: 700px;
|
width: 700px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
img
|
||||||
|
{
|
||||||
|
border-style: solid;
|
||||||
|
border-color: #000000;
|
||||||
|
border-width: thin;
|
||||||
|
}
|
||||||
|
|
||||||
|
img.noborder
|
||||||
|
{
|
||||||
|
border-style: none;
|
||||||
|
}
|
||||||
|
File diff suppressed because it is too large
Load Diff
7
env/readme.txt
vendored
7
env/readme.txt
vendored
@ -8,4 +8,9 @@ The binary will be made in <repos>/build.
|
|||||||
The develop environment should be mostly stand-alone with SourcePawn compiler
|
The develop environment should be mostly stand-alone with SourcePawn compiler
|
||||||
some tools and include files.
|
some tools and include files.
|
||||||
|
|
||||||
Linux users need to have make installed.
|
Linux requirements:
|
||||||
|
- Make
|
||||||
|
- Mercurial
|
||||||
|
|
||||||
|
Windows requirements:
|
||||||
|
- TortoiseHg or Mercurial
|
||||||
|
@ -261,7 +261,7 @@ CvarsCreate()
|
|||||||
g_hCvarsList[CVAR_CLASSES_DEFAULT_ZOMBIE] = CreateConVar("zr_classes_default_zombie", "random", "Zombie class assigned to players on connect. [\"random\" = Random zombie class | \"\" = Class config default]");
|
g_hCvarsList[CVAR_CLASSES_DEFAULT_ZOMBIE] = CreateConVar("zr_classes_default_zombie", "random", "Zombie class assigned to players on connect. [\"random\" = Random zombie class | \"\" = Class config default]");
|
||||||
g_hCvarsList[CVAR_CLASSES_DEFAULT_M_ZOMB] = CreateConVar("zr_classes_default_mother_zombie", "motherzombies","Zombie class assigned to mother zombies. [\"motherzombies\" = Random mother zombie class | \"random\" = Random regular zombie class | \"disabled\" = Don't change class on mother zombies]");
|
g_hCvarsList[CVAR_CLASSES_DEFAULT_M_ZOMB] = CreateConVar("zr_classes_default_mother_zombie", "motherzombies","Zombie class assigned to mother zombies. [\"motherzombies\" = Random mother zombie class | \"random\" = Random regular zombie class | \"disabled\" = Don't change class on mother zombies]");
|
||||||
g_hCvarsList[CVAR_CLASSES_DEFAULT_HUMAN] = CreateConVar("zr_classes_default_human", "random", "Human class assigned to players on connect. [\"random\" = Random human class | \"\" = Class config default]");
|
g_hCvarsList[CVAR_CLASSES_DEFAULT_HUMAN] = CreateConVar("zr_classes_default_human", "random", "Human class assigned to players on connect. [\"random\" = Random human class | \"\" = Class config default]");
|
||||||
g_hCvarsList[CVAR_CLASSES_DEFAULT_ADMIN] = CreateConVar("zr_classes_default_admin", "random", "Admin class assigned to admins on connect. [\"random\" = Random admin class | \"\" = Class config default]");
|
g_hCvarsList[CVAR_CLASSES_DEFAULT_ADMIN] = CreateConVar("zr_classes_default_admin", "random", "(Incomplete) Admin-mode class assigned to admins on connect. Do not confuse this with admin-only classes. [\"random\" = Random admin class | \"\" = Class config default]");
|
||||||
g_hCvarsList[CVAR_CLASSES_ZOMBIE_SELECT] = CreateConVar("zr_classes_zombie_select", "1", "Allow players to select zombie classes.");
|
g_hCvarsList[CVAR_CLASSES_ZOMBIE_SELECT] = CreateConVar("zr_classes_zombie_select", "1", "Allow players to select zombie classes.");
|
||||||
g_hCvarsList[CVAR_CLASSES_HUMAN_SELECT] = CreateConVar("zr_classes_human_select", "1", "Allow players to select human classes.");
|
g_hCvarsList[CVAR_CLASSES_HUMAN_SELECT] = CreateConVar("zr_classes_human_select", "1", "Allow players to select human classes.");
|
||||||
g_hCvarsList[CVAR_CLASSES_ADMIN_SELECT] = CreateConVar("zr_classes_admin_select", "1", "Allow admins to select admin mode classes. (Not to be confused by admin-only classes!)");
|
g_hCvarsList[CVAR_CLASSES_ADMIN_SELECT] = CreateConVar("zr_classes_admin_select", "1", "Allow admins to select admin mode classes. (Not to be confused by admin-only classes!)");
|
||||||
|
@ -267,6 +267,29 @@ VolAnticampInit()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Called when a player leave a anticamp volume.
|
||||||
|
*
|
||||||
|
* @param client The client index.
|
||||||
|
* @param volumeIndex Index of volume the player left.
|
||||||
|
*/
|
||||||
|
VolAnticampOnPlayerLeave(client, volumeIndex)
|
||||||
|
{
|
||||||
|
new dataindex = Volumes[volumeIndex][Vol_DataIndex];
|
||||||
|
|
||||||
|
switch (AnticampData[dataindex][Anticamp_Action])
|
||||||
|
{
|
||||||
|
case Anticamp_Drug:
|
||||||
|
{
|
||||||
|
// TODO: Un-drug player.
|
||||||
|
}
|
||||||
|
case Anticamp_Ignite:
|
||||||
|
{
|
||||||
|
ExtinguishEntity(client);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Timer callback for anticamp volumes. Applies actions on players in volumes.
|
* Timer callback for anticamp volumes. Applies actions on players in volumes.
|
||||||
*/
|
*/
|
||||||
@ -575,6 +598,10 @@ VolAnticampActionToString(VolAnticampAction:actionType, String:buffer[], maxlen,
|
|||||||
{
|
{
|
||||||
return shortName ? strcopy(buffer, maxlen, "damage") : strcopy(buffer, maxlen, "Damage player");
|
return shortName ? strcopy(buffer, maxlen, "damage") : strcopy(buffer, maxlen, "Damage player");
|
||||||
}
|
}
|
||||||
|
case Anticamp_Slay:
|
||||||
|
{
|
||||||
|
return shortName ? strcopy(buffer, maxlen, "slay") : strcopy(buffer, maxlen, "Kill player");
|
||||||
|
}
|
||||||
case Anticamp_Drug:
|
case Anticamp_Drug:
|
||||||
{
|
{
|
||||||
return shortName ? strcopy(buffer, maxlen, "drug") : strcopy(buffer, maxlen, "Drug player ");
|
return shortName ? strcopy(buffer, maxlen, "drug") : strcopy(buffer, maxlen, "Drug player ");
|
||||||
@ -610,6 +637,10 @@ stock VolAnticampAction:VolAnticampStringToAction(const String:action[])
|
|||||||
{
|
{
|
||||||
return Anticamp_Damage;
|
return Anticamp_Damage;
|
||||||
}
|
}
|
||||||
|
else if (StrEqual(action, "slay", false))
|
||||||
|
{
|
||||||
|
return Anticamp_Slay;
|
||||||
|
}
|
||||||
else if (StrEqual(action, "drug", false))
|
else if (StrEqual(action, "drug", false))
|
||||||
{
|
{
|
||||||
return Anticamp_Drug;
|
return Anticamp_Drug;
|
||||||
|
@ -46,7 +46,7 @@ Parameters:
|
|||||||
|
|
||||||
Example:
|
Example:
|
||||||
|
|
||||||
zr_vol_add 0 0 0 100 200 300 anticamp team=humans delay=5 effect=wireframe effect_color=255,0,0
|
zr_vol_add 0 0 0 100 200 300 anticamp team=humans delay=5 amount=100
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
@ -74,6 +74,10 @@ VolOnPlayerLeave(client, volumeIndex)
|
|||||||
new VolumeFeatureTypes:voltype = Volumes[volumeIndex][Vol_Type];
|
new VolumeFeatureTypes:voltype = Volumes[volumeIndex][Vol_Type];
|
||||||
switch (voltype)
|
switch (voltype)
|
||||||
{
|
{
|
||||||
|
case VolFeature_Anticamp:
|
||||||
|
{
|
||||||
|
VolAnticampOnPlayerLeave(client, volumeIndex);
|
||||||
|
}
|
||||||
case VolFeature_ClassEdit:
|
case VolFeature_ClassEdit:
|
||||||
{
|
{
|
||||||
VolClassEditOnPlayerLeave(client, volumeIndex);
|
VolClassEditOnPlayerLeave(client, volumeIndex);
|
||||||
|
Loading…
Reference in New Issue
Block a user