Commit Graph

80 Commits

Author SHA1 Message Date
BotoX f8f84dd091 zclass fix remaining bugs 2019-11-18 23:04:59 +01:00
BotoX 7265c1922f add "identifier" to playerclasses (kv section name) and use it as default for cookies, zr_class_modify, etc. 2019-11-01 18:51:43 +01:00
BotoX b09747346f Various fixes and additions. 2017-05-01 23:59:38 +02:00
BotoX d88e748f0e remove trailing whitespaces from sourcecode 2016-02-06 00:47:47 +01:00
BotoX 98dfd22c9b added support for flags to playerclasses 2015-10-31 00:22:46 +01:00
Richard Helgeby 28e54c36a7 Added support for model with multiple skins (model_skin_index class attribute). Compiles, but not tested. 2013-04-25 09:50:08 +02:00
Richard Helgeby a8f91d748e Updated copyright year. 2013-01-12 08:47:36 +01:00
Richard Helgeby 5c980b5edc Increased max class HP to 100,000. Added a few game mode configs. 2013-01-11 12:14:43 +01:00
Richard Helgeby 666ac57836 Implemented delayed infection mode. Fixed immunity_cooldown attribute not loaded properly. 2013-01-05 22:58:43 +01:00
Richard Helgeby cd604c2f95 First draft of immunity modes. Compiles, but class commands and class editor is not updated. 2013-01-04 18:24:32 +01:00
Richard Helgeby 8bec3be02d Added basic class API: ZR_IsValidClassIndex, ZR_GetActiveClass, ZR_SelectClientClass, ZR_GetClassByName, ZR_GetClassDisplayName 2012-09-08 22:34:31 +02:00
Richard Helgeby 16280e0397 Fixed disabled classes still being validated. 2012-05-30 11:35:34 +02:00
Richard Helgeby ddf8be76f9 Fixed index out of bounds error when class limit is reached. Bumped class limit to 64 classes. 2011-07-10 13:37:00 +02:00
Richard Helgeby 3f68eaa2f0 Added validation log messages for individual attributes when loading classes. 2010-08-06 14:24:10 +02:00
Richard Helgeby e6509e59a7 Added notes about the new speed method. Increased upper speed limit. 2010-07-25 20:44:47 +02:00
Richard Helgeby eab2333309 Added support for different speed methods, defaulted to prop method now. If you don't want to update class settings, use 'zr_classes_speed_method lmv' for backwards compatibility. 2010-07-04 17:58:27 +02:00
Richard Helgeby 648b62527b Imported fix from dev: 717:fe907635426c - Fixed classes not always restored from cookies. 2010-06-03 21:12:28 +02:00
Richard Helgeby 9ec9a121da Imported fix from dev: 687:5d695a55d80e - Fixed saved classes not validated by team id when restoring from cookies. 2010-04-05 00:57:41 +02:00
richard bedb4d4bda Made cvar for displaying class menu on first spawn. Renamed class menu cvars. 2009-11-20 18:20:45 +01:00
richard 66ed43dd48 Changed model config to key/value format and improved model module features. Model access isn't tested yet, but base stuff works. Minior fixes.
Added more random model selection presets: public, admins, hidden and mother zombies.
Simplified ClassFlagFilterMatch logic.
2009-11-17 08:47:39 +01:00
richard 8c1a549239 Reverted to use ZR Tools. Fixed class multipliers beeing reset after map configs.
SDK Hooks works, but is not yet fully compatible with weapon restrict module because of missing Weapon_CanUse event in SDK Hooks. Weapons disappear when zombies walk near them. Otherwise the extension works.
2009-11-11 22:50:19 +01:00
richard 9bd4f90137 Added error log descriptions to manual. Cleaned up some log messages. 2009-10-27 22:53:03 +01:00
richard d030fe573d Increased max classes to 48. 2009-10-10 18:54:17 +02:00
richard 92bffae62c Fixed incorrect class index validated when restored from cookies (forgot to substract by one). Specified filter settings on random spawn classes. 2009-10-10 17:37:30 +02:00
richard 9906376f28 New features and fixes in volfeatures. See details.
Fixed existing volumes not removed after a map change.
Added class editor feature that can modify certain class attributes on players in a volume.
Fixed typo in class attribute name.
Fixed health regeneration timer not stopping if a player were kicked or timed out.
2009-09-27 23:45:17 +02:00
richard 5591adfd25 Added cvar for enabling/disabling class cookies. Fixed teleport not resetting velocity. 2009-08-15 19:48:51 +02:00
richard 855ffc3c0d Updated class filter to support filtering by classes with no groups set. Fixed default class assignment assigning classes players doesn't have access to. 2009-08-15 17:37:30 +02:00
richard 2fc590ab59 Added support for saving class selections in cookies. 2009-08-15 06:32:44 +02:00
richard 32828a9179 Changed class configs to use yes/no. 2009-08-15 02:58:49 +02:00
richard d1cbda40c4 Implemented group class attribute. Improved filtering method for class functions. 2009-08-14 22:10:52 +02:00
richard 6a14b952af Added group class attribute, not implemented. Capitalized all class attribute names. 2009-08-13 18:31:21 +02:00
ricahrd 658a800fea Implemented zr_classes_spawn. Made new instant class change feature on human classes, with time limit. 2009-08-10 19:01:43 +02:00
Greyscale 5ee1395fb1 Restructured every menu to properly translate into the client's language. 2009-07-27 17:02:49 -07:00
Greyscale d5e4e89ba5 Fixed various memory leaks. 2009-07-23 17:05:04 -07:00
richard 6a6300e21b Fixes in class system. See details.
Fixed class menus not displaying correct class.
Made ClassSelectedNext array for storing class indexes to be set on next spawn. Useful for other stuff too, like saving settings in cookies.
Code cleanup in class spawn and class infect events.
2009-07-23 23:26:14 +02:00
richard 0019a52ca8 Fixed selected class not restored after being mother zombie. 2009-07-22 14:06:18 +02:00
Greyscale 2297c6df7a Added public/non-public models.
Fixed health_infect_gain giving the default value always.
Updated config loader to allow larger-sized array blocks to prevent truncating strings. (Default is 32)
2009-07-09 14:17:50 -07:00
richard eca1aee679 Updated jump distance limits. 2009-07-07 03:11:27 +02:00
Greyscale 5497a13dd7 Fixed minor errors, fixed antistick having some false positives, fixed every single Zombie:Reloaded line at top of the file. 2009-07-04 23:49:23 -07:00
richard b0509ca105 Fixed invalid handle error in class module. 2009-06-23 01:26:02 +02:00
richard 723038052e Fixed potential memory leak in class system. 2009-06-22 18:11:31 +02:00
richard 1cc0fc4dda Fixed original models not restored when using zr_human on a player. 2009-06-22 17:01:26 +02:00
richard b80b7aa49d Made new flags class attribute. Replaced by admin_only.
Made new mother_zombie class flag and zr_class_default_mother_zombie CVAR.
Updated zombie config. Added more spacing for better readability.
Fixed incorrect off-values in jump boost.
2009-06-22 01:09:51 +02:00
richard 424a852d3a Made new admin_only class attribute. 2009-06-19 02:31:05 +02:00
richard 330afd6e86 Cleaned up comments. 2009-06-19 01:28:05 +02:00
richard 4d48cd65de Made a admin command for refreshing class data on one or more players.
Updated infect module to use new reload function.
Fixed typo in command description.
Known issue: Models isn't always restored on zr_human. If "default" is used, there's practically no model change. Possible solution: Store path in a buffer when the player join a team and select a model. Then read from that buffer when "default" is used.
2009-06-18 03:33:09 +02:00
richard 6f032b79b8 Improved class system with support for multipliers. Minior fixes, see details.
Made class attribute multipliers.
Made admin menus for adjusting class attribute multipliers.
Made console command for setting class attribute multipliers.
Fixed health regen amount class attribute not validated.
Fixed health regen not stopping after surviving a round as a zombie.
Improved ZRIsClientAdmin to support admin flags (optional).
Changed permission flag on admin commands to match action type. Like only admins with config access should be able to do ZR configuration.
Changed log formatting to match style in SourceMod. Removed "-" and ":". The result will be "... [plugin.smx] [mod] [event] message".
2009-06-18 02:09:55 +02:00
richard 4b66f688ab New log features, class attribute and minior changes. See details.
Made new log CVAR for overriding filters on error log types: zr_log_error_override. If this is on, errors are always logged, independent of flags and filters. Now all non-error logging can be completely disabled without complex flags or filtering.
Made new class attribute ("has_napalm", ClassGetHasNapalm) that specifies if the class have or can trhow napalm grenades. Implemented usage in napalm module.
Added team id validation in class attributes.
Improved formatting of log messages in cvars module.
Known issue: Commands in config for adding modules to log filter are executed too late. Otherwise the module filter works fine.
2009-06-14 19:10:30 +02:00
Greyscale 9af3fec738 Changed ragdoll.inc to LF, removed anticamp.inc, and added copywrite notice to all files. 2009-06-11 20:51:26 -07:00
richard 4ce30ac002 Improved logging system.
Made generic flags for log event types.
Made support for module filtering. Note: Manager for module filtering is not implemented. Don't enable filter when testing, otherwise nothing will be logged.
Updated all log events.
2009-06-01 23:29:26 +02:00