Commit Graph

69 Commits

Author SHA1 Message Date
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
richard ae37110c7d Fixed newlines. 2009-06-12 15:52:51 +02:00
Greyscale 2f87a49a43 Formatted all config files to be consistent, and made the base config file.
* Added cvar to enable/disable napalm ignition.
2009-06-11 22:36:22 -07: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
ricahrd a58b2eae85 Implemented module filtering. Note: Doesn't work yet, needs debugging.
Implemented looping through modules instead of listing each one.
Fixed translations issue with pre-defined width. zr_log_list now formatts correctly.
Fixed missing newline in the end of translations.inc.
Known bugs: Adding invalid module names works, it should give an error. Cache doesn't get updated either.
2009-06-08 00:13:38 +02:00
richard f30e8f5862 Implemented console command for listing log flags and module filtering.
Known issue: Using Format to set pre defined width translations doesn't work. "%-19t" should left justify and append spaces to make width 19 chars. Works with "s", but not "t". SourceMod bug?
2009-06-07 17:51:37 +02:00
Greyscale edbbc688f3 Fixed config reload command translation, and made it support multiple file aliases to reload. 2009-06-04 21:56:55 -07:00
Greyscale 9fd32bfa3b Finished ZMarket. Includes rebuy and auto-rebuy which can be disabled by cvar (and clients can disable auto-rebuy in-game)
* "stock'd" a couple functions.
2009-06-04 20:58:48 -07: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 e58ff10595 Fixed translations again. 2009-05-19 01:04:19 +02:00
Greyscale 25befe128f Fixed translations. 2009-05-19 00:07:28 +02: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 0ca296731b Fixed default alpha values. 2009-05-12 03:58:43 +02:00
Greyscale 0a9d1d9035 Merged heads. 2009-05-12 03:14:13 +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
Greyscale f46b774492 Updated gamedata file for zrtools and removed hacks.inc 2009-05-11 07:12:13 +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
Greyscale a6e55b6653 Updated translations, converted the menu to use keyword defines instead of hardcoded names. 2009-05-08 04:57:21 +02:00
Greyscale a89f98cc38 Added a way to quiet any sayhook if it wasn't successfully executed, fixed double-ztele'ing. (Note: Linux can't compile the plugin anymore.) 2009-05-06 05:31:48 +02:00
Greyscale cec31406d0 Added a timelimit to zspawn. 2009-05-06 03:04:55 +02:00
Greyscale 2ac56b1969 Updated all file headlines, and added phrases for zspawn abuse. 2009-05-06 02:28:09 +02:00
Greyscale a36e0dab5a Recoded ztele, removed old ztele, made conversion function. 2009-05-05 06:56:34 +02:00
richard fcd3a2e48e Added blank lines on the end of all files to get rid of warning from diff tool. 2009-05-01 11:22:45 +02:00
Greyscale 8da309e4f4 Made config module, recoded models.inc and added validations, added a cvar to flag any sayhook as quiet to hide from chat, hooked mp_limitteams, fixed menu handle function, moved file paths into cvars and updated all modules but classes to use it 2009-04-30 07:36:57 +02:00
richard 1a638cfbac Merge test. 2009-04-30 07:18:38 +02:00
Greyscale 1b8bcc9141 (Updated translations file), added cvar to drop or strip weapons on infect, moved jumpboost to own module (and fixed it), create tools/tools_functions.inc for offset finding and wrapper functions, added SetFailState alternative to LogMessageFormatted, replaced some tabs with spaces, fixed neverending round bug, fixed no zombie bug, recoded menu.inc, fixed classmenu reopening main menu when closing it with 0. 2009-04-29 02:41:53 +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 8216ce753d Merged heads. 2009-04-24 05:02:54 +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 8cf1350cfa Fixed defaults in hitgroups.txt 2009-04-23 06:41:16 +02:00
Greyscale 2718b527ac Fixed death given to the mother zombies, created cvars to control friendlyfire and blast damage, hitgroup file now allows you to disable shootable hitgroups on zombies. 2009-04-23 06:39:11 +02:00
Greyscale b99d253477 Put infection handling in its own core module, added infect sound to downloads table, updated cvars, made an account module (handles cash), zombies now drop weapons on infect (all of them), removed RemoveAllItems, weapon api can handle it and its unneeded now. 2009-04-22 04:53:19 +02:00
Greyscale 8ac1361a70 Fixed newlines in weapons and weapongroups.txt config files. 2009-04-20 00:19:05 +02:00
Greyscale 53c60d1c52 Fixed newlines in gamedata file. 2009-04-20 00:16:08 +02:00
Greyscale 858cfe4079 Recoded damage module, moved around translations, removed old one, removed old classmenu code, moved BalanceTeams to roundend.inc 2009-04-19 19:54:21 +02:00
richard 72c6e9f632 Improved handling of missing classes in class menus. Fixed bots not getting default class config (removed IsFakeClient check). Made new ClassCountTeam function for customized counting. 2009-04-18 02:22:13 +02:00
Greyscale 1659d24c4a Fixed newlines in hitgroups.txt 2009-04-17 21:06:25 +02:00
Greyscale 23242cdc9d Fixed newlins in translations. 2009-04-17 01:48:08 +02:00
Greyscale d5e29b883c Removed debug test commands from previous commit, added ambientsounds module, removed old, and removed some unused translations phrases. 2009-04-17 01:09:52 +02:00
Greyscale ee9d3a9f39 Added sound effects module, moved all moaning, groaning, and death sounds to zombie sounds sub-module, and made a basic sound API. 2009-04-16 22:21:32 +02:00
Greyscale 75e654992c Moved ZHP to its own module, plugin now uses InfectPlayer. 2009-04-16 01:18:08 +02:00
Greycale 37dfea2f8c Removed SetPlayerModel, removed deprecated code in models.txt, added CSWeaponDrop, updated gamedata file. 2009-04-15 21:22:11 +02:00
Greyscale 8bcf32a0db Merged heads. 2009-04-15 03:24:43 +02:00
Greyscale e7ace94625 Added hitgroup API, and logging values for it. Knockback module is done. 2009-04-15 03:24:02 +02:00
richard 2bb28b87c1 Merged heads. 2009-04-14 23:33:50 +02:00
richard 13ab32a7bb Started on new class menus (new file). Fixed parameter name in class attributes. Made function IsClientAdmin (generic admin). 2009-04-14 23:33:06 +02:00
Greyscale c4ceebe9ab Merged heads 2009-04-14 22:13:53 +02:00