7c643c5d66Integrated zrtools and removed hacks extension dependency (don't forget zrtools.inc), and I'll make a repos for the source code and binary. No linux binary yet. Gunna be a pain in the ass.
Greyscale
2009-05-11 04:47:09 +02:00
b32219fec5Merged heads.
richard
2009-05-10 18:50:28 +02:00
4117519b39Added 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.
richard
2009-05-10 18:49:47 +02:00
e145e8cd0eFixed logic mistake.
richard
2009-05-10 01:32:53 +02:00
969aa19b85Added 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.
richard
2009-05-09 17:45:19 +02:00
e9c611b476ToolsSetClientAlpha now has option to change weapon alpha too. weaponsalpha module needed to track weapon alphas on pickup and drop. Removed alpha offsets, as it's already supposed by SM natives.
Greyscale
2009-05-08 07:37:07 +02:00
a6e55b6653Updated translations, converted the menu to use keyword defines instead of hardcoded names.
Greyscale
2009-05-08 04:57:21 +02:00
f0a975b431Fixed bug in ambience that disabled sound being added to download table if logging was disabled.
Greyscale
2009-05-07 03:06:08 +02:00
3fb7163fb5Visual effects are all now updated real-time, and defaulted to semi-dark with a borealis sky.
Greyscale
2009-05-06 08:29:34 +02:00
e1b1a21873Put spawn protect attributes into cvars.
Greyscale
2009-05-06 07:13:05 +02:00
a89f98cc38Added a way to quiet any sayhook if it wasn't successfully executed, fixed double-ztele'ing. (Note: Linux can't compile the plugin anymore.)
Greyscale
2009-05-06 05:31:48 +02:00
cec31406d0Added a timelimit to zspawn.
Greyscale
2009-05-06 03:04:55 +02:00
2ac56b1969Updated all file headlines, and added phrases for zspawn abuse.
Greyscale
2009-05-06 02:28:09 +02:00
a36e0dab5aRecoded ztele, removed old ztele, made conversion function.
Greyscale
2009-05-05 06:56:34 +02:00
dca8aa330bReverted 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.
richard
2009-05-02 18:08:33 +02:00
2ec263f2a0Fixed 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).
Greyscale
2009-05-02 07:09:55 +02:00
3cc2087dceChanged 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).
richard
2009-05-01 11:34:07 +02:00
fcd3a2e48eAdded blank lines on the end of all files to get rid of warning from diff tool.
richard
2009-05-01 11:22:45 +02:00
0404230fc8Fixed 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.
Greyscale
2009-05-01 07:09:18 +02:00
8da309e4f4Made 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
Greyscale
2009-04-30 07:36:57 +02:00
1a638cfbacMerge test.
richard
2009-04-30 07:18:38 +02:00
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.
Greyscale
2009-04-29 02:41:53 +02:00
fa133857a9Fixed spawn protection not restoring class attributes.
richard
2009-04-27 20:54:06 +02:00
55876fe2ffFixed LogMessageFormatted ignoring unspecified clients (-1) when ignore console is enabled. Simplified logic. When ignoring console the match must be explicit (client 0), not just any non-valid player. Unspecified clients (-1) are used on core events, but they were wrongfully ignored. Clients are only specified on player events or console events. Simplified logig: Instead of checking what something isn't, check what it's required to be. Inverted logic may be confusing.
richard
2009-04-27 20:08:59 +02:00
c9724a09c7Merged heads, with manual fixes to not revert newer changes.
richard
2009-04-27 19:51:29 +02:00
abd38ee033Hooked autobuy/rebuy, added fog to visual effects, create effect functions in visualeffects.inc, fixed ambience, hooked mp_restartgame, mother count is rounded to nearest instead of ceiling, recoded cvars.inc and added logging, recoded event.inc, killed respawn timers on round end.
Greyscale
2009-04-27 04:00:38 +02:00
257659a683Implemented 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).
richard
2009-04-25 14:19:14 +02:00
2e623447d5Made 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.
Greyscale
2009-04-24 05:02:19 +02:00
8cf1350cfaFixed defaults in hitgroups.txt
Greyscale
2009-04-23 06:41:16 +02:00
2718b527acFixed 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.
Greyscale
2009-04-23 06:39:11 +02:00
54242bb529Created a CVAR for enabling/disabling the zombie_version CVAR.
richard
2009-04-22 23:32:43 +02:00
b99d253477Put 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.
Greyscale
2009-04-22 04:53:19 +02:00
557b6d883cMerged heads.
richard
2009-04-21 03:30:35 +02:00
0bf074bf7aMoved teleport variables into teleport.inc. Changed order of death event on infection. Known bug: Teamkill on last zombie kill.
richard
2009-04-21 03:27:12 +02:00
0f15efaa85Removed old tHandles array, updated antistick a bit (just moved stuff).
Greyscale
2009-04-21 02:03:35 +02:00
1ec47ef154Renamed zr_consecutive_infect (fixed value mixup in the code), and fixed damage flags.
Greyscale
2009-04-21 01:45:49 +02:00
7111a8c594Made 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.
Greyscale
2009-04-20 05:43:20 +02:00
41153af5f4Reorganized 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
Greyscale
2009-04-20 02:56:26 +02:00
8ac1361a70Fixed newlines in weapons and weapongroups.txt config files.
Greyscale
2009-04-20 00:19:05 +02:00
53c60d1c52Fixed newlines in gamedata file.
Greyscale
2009-04-20 00:16:08 +02:00
858cfe4079Recoded damage module, moved around translations, removed old one, removed old classmenu code, moved BalanceTeams to roundend.inc
Greyscale
2009-04-19 19:54:21 +02:00
589baa6869Made CVAR for class file. Simplified formatting on log messages.
richard
2009-04-19 01:10:30 +02:00
ed66030245Merged heads.
richard
2009-04-18 02:23:36 +02:00
72c6e9f632Improved handling of missing classes in class menus. Fixed bots not getting default class config (removed IsFakeClient check). Made new ClassCountTeam function for customized counting.
richard
2009-04-18 02:22:13 +02:00
c510da249cRemoved unused parameter in ZRTeamHasClients.
Greyscale
2009-04-18 01:50:27 +02:00
c34e32097dFixed admin infect bug (I think), made roundend core module, handles all round end events, modified ClassApplyOverlay, removed mp_restartgame hook, recoded PlayerLeft and BalanceTeam functions. And added comments.
Greyscale
2009-04-18 01:44:41 +02:00
1659d24c4aFixed newlines in hitgroups.txt
Greyscale
2009-04-17 21:06:25 +02:00
879446ac7cModified ZRIsClientAdmin function for consistency.
Greyscale
2009-04-17 12:20:01 +02:00
ecc9cf5167Removed player list functions, recoded mother zombie picking function, removed allow_player_team cvar as models are handled by class system now, prefixed generic plugin functions with ZR, added comments in zombiereloaded.inc, added new function to check if clients are on either or both teams.
Greyscale
2009-04-17 12:16:44 +02:00
4d35037e41Moved napalm into its own module, added cvar to enable the thrown grenade to be lit on fire.
Greyscale
2009-04-17 10:20:04 +02:00
23242cdc9dFixed newlins in translations.
Greyscale
2009-04-17 01:48:08 +02:00
d5e29b883cRemoved debug test commands from previous commit, added ambientsounds module, removed old, and removed some unused translations phrases.
Greyscale
2009-04-17 01:09:52 +02:00
ee9d3a9f39Added sound effects module, moved all moaning, groaning, and death sounds to zombie sounds sub-module, and made a basic sound API.
Greyscale
2009-04-16 22:21:32 +02:00
39ff709d7fFixed little typo in comment, and uncommented zclass say command.
Greyscale
2009-04-16 08:08:58 +02:00
98c39fb517Removed windows newlines in respawn.inc (stupid editor)
Greyscale
2009-04-16 07:35:18 +02:00
23b5b6e187Fixed respawn. Was respawning on infect.
Greyscale
2009-04-16 06:06:44 +02:00
5b9f8d364dRemoved antistick force cvar, removed more tHandle defines, moved respawn to its own module, moved market menu send function to markethandler.inc, fixed some run-on timers in zhp and spawn protect
Greyscale
2009-04-16 05:30:26 +02:00
872e41e6d2Recoded IsClientPlayer, renamed to IsClientValid, replaced GetMaxClients() with maxclients Ignore diff for zhp.inc and spawnprotect.inc
Greyscale
2009-04-16 03:57:46 +02:00