Commit Graph

60 Commits

Author SHA1 Message Date
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
Greyscale 0f8206596a Recoded weapon restrictions, and made new way of storing data. (Arrays)
* Removed ZMarket as an external plugin (to be integrated next commit)
* Updated weapon configs, removed weapongroups.txt and moved weapons.txt to root zr config folder.
* Moved offset finding to respective module, made new forward *OnOffsetsFound.
* Updated weapons&hitgroups config file format to match playerclass.txt
* Updated translations.
* Recoded weapon restrict menu, commented out all zadmin options that don't quite work.
* Added weaponammo module (not finished but existent)
* Started zmarket module.
2009-05-28 23:43:15 -07:00
Greyscale 25b0caa68a Added config reloading support.
Revision also includes:
* Added syntax checking on recoded/new console commands.
* Fixed sv_skyname handle being used when invalid.
* Fixed unhooking error on Weapon_Drop.
* Prefixed some API-style functions with 'stock' to stop compiler
warning.
* Separated downloads into its own file.
2009-05-18 06:26:13 +02:00
Greyscale 055e89d64a Began adding cvar descriptions, recoded logging module, fixed zmenu display bug, removed include line for anticamp until recoded. 2009-05-14 09:32:01 +02:00
Greyscale e051b7bdaa Created overlay module to unify class overlays and round end overlays, removed unused class overlay functions, fixed invalid hookid error, allow client to toggle class overlay if allowed in cvar and made toggle cmds configurable, cleaned up translations file. 2009-05-14 02:28:26 +02:00
Greyscale 14c5acf0bf Fixed typo in playerclasses.inc with logging defines, add updated weaponalpha module to track weapon alphas. 2009-05-12 03:12:05 +02:00
richard 4117519b39 Added command for modifying or scaling class attributes. Minior fixes, see details.
Fixed error getting default classes on early player connect (bots, source tv, etc.).
Fixed jump boost not resetting height velocity. Changed to add to velocity. Jump from boost platform still doesn't work because the velocity is set too early.
Added check for reserved class names when validating.
Updated class default attributes and jump limits.
2009-05-10 18:49:47 +02:00
richard 969aa19b85 Added support for post map configs (with workaround for SourceMod bug 3803). Log cleanup. Minior fixes.
Removed log check in fatal errors. Those must always log.
Stored LogCheckFlag result in a boolean where log is executed more than once.
Fixed invalid translation string used in menu title.
Fixed index out of bounds in zspawn when a client disconnects.
2009-05-09 17:45:19 +02:00
Greyscale 3fb7163fb5 Visual effects are all now updated real-time, and defaulted to semi-dark with a borealis sky. 2009-05-06 08:29:34 +02:00
Greyscale 2ac56b1969 Updated all file headlines, and added phrases for zspawn abuse. 2009-05-06 02:28:09 +02:00
richard dca8aa330b Reverted unnecessary changes. Compile still works without errors in this revision, confirmed 2009.05.02 18:00 +2.
Initializing blank strings on function declaration had no effect. Also the parameter can be treated as optional when it's actually not. Reverted to avoid confusion.
2009-05-02 18:08:33 +02:00
Greyscale 460b6ddf6d Merged heads. 2009-05-02 07:11:05 +02:00
Greyscale 2ec263f2a0 Fixed compiler warning (check SM forums for details), fixed compiler crash, seemed to be caused by the string parameter not being defaulted to an empty string, using new String:... had no effect, so I went through and defaulted all String parameters to (not uncluding constant expressions). 2009-05-02 07:09:55 +02:00
richard 3cc2087dce Changed limits on class attributes.
Allowing negative numbers on jump boost. Limiting to +-500 because that's already really fast (distance to move on next server
frame).
2009-05-01 11:34:07 +02:00
Greyscale 0404230fc8 Fixed humans winning on round end when no humans present, removed classes file cvar and made it use the config module, replaced SetFailState with LogMessageFormatted with fail flag, made the base config manipulator function. 2009-05-01 07:09:18 +02:00
richard c9724a09c7 Merged heads, with manual fixes to not revert newer changes. 2009-04-27 19:51:29 +02:00
richard 257659a683 Implemented human classes and fixed class related bugs.
Moved class initial event forward into OnConfigsExecuted.
Changed class attributes in default configuration file, and made new example human classes: speedy and light.
Implemented feature for applying human and admin classes. Admin mode is still not implemented.
Extended model path class attribute to support "default" for using default CS models.
Fixed event forward order in OnPlayerSpawn event. The class module depends on infection module.
Fixed class menu crash when there are no admin classes. Admin class and mode options are removed from the menu if there are no classes.
Fixed class menu not closing when selecting 0 (exit) if auto-close CVAR is disabled.
New global variable to separate current admin class and the admin class to be used on next spawn: ClassPlayerNextAdminClass.
Moved hard coded valitation values into defines.
Removed log warning if there are no admin classes. They are optional.
Fixed jump boost adding to height and not multiplying (which were 0 on the player velocity).
2009-04-25 14:19:14 +02:00
Greyscale 2e623447d5 Made visualambience module, removed an offset thats provided by SM, moved zombie/human checks to infect module (renamed), fixed blast cvar, renamed some functions, removed zombie cvar enable because it didnt work. 2009-04-24 05:02:19 +02:00
Greyscale 7111a8c594 Made a basic weapon API, fixed SetPlayerAlpha function, moved logging to its own file (had to be done now, it was hard to find before), made a separate cvar to disable logging fully. 2009-04-20 05:43:20 +02:00
Greyscale 41153af5f4 Reorganized cvars.inc, organized all cvars into module groups (to be updated later), removed unused cvars, made classes and weapons core modules (event forwarding priority), updated spawn protect cvars, added cvars to disable weapons, restrict, and hitgroups 2009-04-20 02:56:26 +02:00
richard 589baa6869 Made CVAR for class file. Simplified formatting on log messages. 2009-04-19 01:10:30 +02:00