Commit Graph

131 Commits

Author SHA1 Message Date
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 965f637562 Fixed class speed multiplier not properly applied with prop speed method (bug 199). 2010-08-06 16:19:30 +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 4b693385fc Fixed typo in class menu logic. 2010-07-04 03:56:42 +02:00
Richard Helgeby f355ee94fc Imported fix from dev: 750:c5cd9d89414a - Fixed class menus being disabled and not checking if the player have access to private classes. 2010-07-03 23:39:34 +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 Helgeby 07b4ed9373 Imported fix from dev: 686:b0fc2136d03a - Fixed class attributes applied to early (moved to spawn post event). FOV (and possibly other stuff) was reset on spawn. 2010-04-05 00:54:21 +02:00
Greyscale 21c41688d7 Fixed cookies being reset on some occasions and admin-dependant classes are saved properly as well. 2010-02-19 17:41:24 -08:00
Richard Helgeby b39a684fd8 Imported fix from dev: 646:25e5741ab71e - Moved the IsClientInBuyzone stock to the weapons module from ZMarket, and stop the "Zombies can't use weapons" phrase when using autobuy outside of a buyzone. 2010-02-14 17:03:19 +01:00
Richard Helgeby 1005cd73a4 Fixed admin classes not restored from cookies. 2010-02-04 23:53:58 +01:00
Richard Helgeby 985650a544 Fixed typo in model validation in classes. 2010-01-07 08:56:12 +01:00
Richard Helgeby 614048ad69 Removed redundant check for class menu command. Fixed suicide intercept message not displayed in chat. Text from chat will still appear in console if written from console. 2009-12-26 20:13:24 +01:00
richard 0adc2c597a Fixed class selection not saved in cookies on instant class change. 2009-12-09 14:57:33 +01:00
richard da3bd3c889 Fixed zr_class_set_multiplier not aborting when there's a invalid attribute specified. 2009-12-07 14:38:23 +01:00
richard 849d8cd81b Fixed HP regen timer handles not always initialized. 2009-12-03 01:22:20 +01:00
richard e8ead727c2 Small timer code cleanup. 2009-12-02 23:35:20 +01:00
richard 37c9929bd4 Code cleanup in class overlays. 2009-11-30 16:49:11 +01:00
richard 109a923ae3 Updated docs with new model error messages. Minior fixes.
Improved error handling of model list.
Fixed typo in class attribute validator.
Changed cvar defaults: class menu auto-close and overlay default state.
2009-11-28 22:32:44 +01: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 844e23b293 Updated docs. Minior fixes.
Added flag on some timers so we are sure they are killed on map change.
Added stop event on health regeneration timer when applying classes, if the class has no regeneration.
Cvar zr_classes_default_admin is now replaced by admin-only classes. Old cvar is zr_classes_default_admin_mode.
2009-10-31 03:39:00 +01:00
richard 9bd4f90137 Added error log descriptions to manual. Cleaned up some log messages. 2009-10-27 22:53:03 +01:00
richard 3794251cc5 Updated all admin console commands to check if client is privileged (so group authentication works), instead of using RegAdminCmd. Minior fixes.
Changed admin teleport command to log target names.
Cached result of privilege check instead of calling function twice (zadmin menu).
Disabled old debug commands. Do not remove, we need them for testing later.
2009-10-26 23:17:22 +01:00
richard 2389ad875b Updated docs. Minior fixes. Changed class dumping commands to admin commands. 2009-10-10 23:28:54 +02:00
richard d030fe573d Increased max classes to 48. 2009-10-10 18:54:17 +02:00
richard bc7a019e8f Fixed cookie memory leak, changed cookies to only be created once. 2009-10-10 18:26:27 +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 7555b042b9 Attempt to fix cookie memory leak. 2009-10-08 19:47:23 +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 daadefbaea Added nochange option in class model attribute. 2009-08-15 03:33:09 +02:00
richard 32828a9179 Changed class configs to use yes/no. 2009-08-15 02:58:49 +02:00
ricard 35c3f80ed1 Simplified class menu translations. Small improvement in logic when selected classes. 2009-08-15 01:28:28 +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
richard 3a82d3d9b0 Added support for group based authentication. 2009-08-11 03:29:22 +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
richard 06771e6d15 New feature for blocking class selection. Changes in translations. See details.
Finished norwegian translation.
Fixed missing quote in english translation file.
Added cvars for blocking players from changing classes.
Minior typo fixes in log module.
Changed TranslationReplyToCommand to use the ReplyToCommand function.
2009-08-09 22:44:28 +02:00
Greyscale b89dac76f4 Fixed translating in class menu. 2009-07-27 17:09:15 -07:00
Greyscale 5ee1395fb1 Restructured every menu to properly translate into the client's language. 2009-07-27 17:02:49 -07:00
richard ba04f668be Changes in docs, and minior fixes. See details.
Updated docs with class multipliers.
Other minior changes in docs.
Removed "Zombie:Reloaded" server title suggestion. If people like this plugin its popularity will grow by itself.
Fixed typo in attribute parser.
2009-07-25 00:36:49 +02:00
Greyscale d5e4e89ba5 Fixed various memory leaks. 2009-07-23 17:05:04 -07:00