Commit Graph

671 Commits

Author SHA1 Message Date
BotoX fc9ed45650 Merge pull request #4 from olegtsvetkov/handles
Fixed memory leak, caused by not closed handle
2016-06-12 13:54:32 +02:00
BotoX d6b6e9cdb0 Merge pull request #3 from olegtsvetkov/random-ztele
Random !ztele
2016-06-12 13:54:23 +02:00
Oleg Tsvetkov efeec511c4 Removed accidentally added Timer call inside a ZTele_TeleportClient function. 2016-06-12 02:06:24 +03:00
Oleg Tsvetkov 16de1d1a9f Set several timers variable value to the INVALID_HANDLE after KillTimer call. 2016-06-12 01:31:08 +03:00
Oleg Tsvetkov 25eaa7ade3 Fixed memory leak. 2016-06-12 01:30:11 +03:00
Oleg Tsvetkov 678ad2ef0c Added support for a random !ztele. 2016-06-12 01:23:07 +03:00
Oleg Tsvetkov 4f460baa9b Don't use Valve file system when calling a FileExists. 2016-06-12 00:31:15 +03:00
Oleg Tsvetkov 6a5ad3ef4b Removed mention of ZRTools in the comments. 2016-06-11 21:42:16 +03:00
Richard Helgeby daa461fee6 Use damage defines from SDK Hooks directly.
Removes redundant defines. DMG_CSS_HEADSHOT was never used.
2016-06-11 21:41:36 +03:00
Richard Helgeby 6550dd9e02 Remove unused legacy ZRTools code. 2016-06-11 21:22:53 +03:00
BotoX 71d5c297d3 added anti longknife feature 2016-05-08 22:27:57 +02:00
BotoX cea1b84965 fixed trigger OnStartTouch/OnEndTouch bug caused by TeleportEntity
fixed reloading zombiereloaded plugin
reset player velocity on respawn (high speed in spec -> zspawn)
2016-05-08 03:10:25 +02:00
BotoX 2d1cdf7a36 added SharedPlugin code and SetNTVOptional()
added public printing for zr_human, zr_infect and zr_zspawn_force command
fixed zombiereloaded changing player colors
updated sample cfg
updated makefile
2016-04-22 01:24:10 +02:00
BotoX a732205f8c properly fixed db0de91a18
added message when zombie cycle ended
2016-03-01 23:36:47 +01:00
BotoX 1bd2fb7354 reworked mother zombie "randomizer"
uses randomized round-robin ensuring that a client will not be infected twice in a row
2016-02-17 09:03:40 +01:00
BotoX db0de91a18 fixed zspawn exploit (spawn as human after infection by suiciding and zspawning) 2016-02-17 00:48:42 +01:00
BotoX 3afde85238 reworked zmarket
fixed kevlar bug
2016-02-12 04:16:59 +01:00
BotoX d88e748f0e remove trailing whitespaces from sourcecode 2016-02-06 00:47:47 +01:00
BotoX 6f9558373d Fix issue in @98dfd22c9b21571d76dbf655184fdbceb3f7c312 2016-01-06 03:37:28 +01:00
BotoX b579a38d89 disabled potentially broken weaponalpha functionality (black sprites) 2016-01-05 02:50:34 +01:00
BotoX 8fcbe6ab85 Merge branch 'master' of https://github.com/rhelgeby/sm-zombiereloaded-3 2015-11-15 00:45:19 +01:00
Richard Helgeby e3ce8ad558 Fix ZTele_GetClientDelay not returning the value.
Thanks to BotoX.
2015-10-31 21:42:27 +01:00
BotoX b2f4176f51 fixed infinite ammo exploit in zmarket (item_kevlar -> SetEntProp m_ArmorValue) 2015-10-31 00:45:13 +01:00
BotoX b04f25400f added zr_zspawn_force and zr_infect/zr_human logging 2015-10-31 00:41:51 +01:00
BotoX 98dfd22c9b added support for flags to playerclasses 2015-10-31 00:22:46 +01:00
Richard Helgeby 1ef060258f Rename ztele functions to use new module prefix naming convention.
The underscore makes it easier to see the real function name because it visualy separates the prefix.
2015-03-29 18:42:04 +02:00
Richard Helgeby 18a348178f Add cvars component for ZTele.
This reduces coupling between cvars and ZTele logic.
2015-03-29 17:11:03 +02:00
Richard Helgeby 345fb1f7f7 Replace INVALID_HANDLE with null in ztele module. 2015-03-29 16:01:29 +02:00
Richard Helgeby f4a2f151af Extract function ZTelePlayerWalkedTooFar. 2015-03-29 15:57:14 +02:00
Richard Helgeby c149549540 Move ztele into its own module folder. 2015-03-29 15:15:21 +02:00
Richard Helgeby 694df0e908 Use new declaration syntax in ztele.inc. 2015-03-28 17:45:38 +01:00
Richard Helgeby f9aaf97580 Extract function ZTeleGetClientDelay. 2015-03-22 19:09:49 +01:00
Richard Helgeby 99f0bfef7b Extract function ZTeleClientInProgress. 2015-03-22 18:57:44 +01:00
Richard Helgeby 387f59e2cb Simplify pre-check logic in ZTeleClient. 2015-03-22 18:52:31 +01:00
Richard Helgeby f323ca2768 Use new syntax in ZTeleMustBeHuman and ZTeleCanHumanTeleport. 2015-03-22 18:42:01 +01:00
Richard Helgeby 5b59f20858 Extract function ZTeleHasReachedLimit. 2015-03-22 18:39:45 +01:00
Richard Helgeby fcb4fdcab6 Extract function ZTeleCanHumanTeleport. 2015-03-22 18:21:17 +01:00
Richard Helgeby 7ce73b4493 Add InfectHasZombieSpawned. 2015-03-22 18:06:40 +01:00
Richard Helgeby 583984489b Extract function ZTeleMustBeHuman. 2015-03-22 17:55:16 +01:00
Richard Helgeby 918dd3100b Add ZTeleStopTimer to reduce duplicated code.
This change also requires that timers are stopped when clients disconnects.
2015-03-22 17:42:02 +01:00
Richard Helgeby 8e6d4f0f35 Fix compile error in class.api.inc.
Old code referenced non-existing function. We should have a getter function for selected classes, but I'm not doing this yet.
2015-03-21 15:52:56 +01:00
Richard Helgeby 542d3d345e Do not use deprecated GetClientAuthString native. 2015-03-21 15:45:29 +01:00
Richard Helgeby 743d17e05a Remove client check when resetting zombie flag on round end.
It doesn't matter whether the client is connected or not, all clients should reset to humans on round start anyways.

This may also fix a bug where mother zombies sometimes are not teleported to spawn, but it's unconfirmed (both the bug and the fix).
2015-02-12 19:01:23 +01:00
jargon-au 7a842771c8 Add new class natives
Adding ZR_GetHumanClass and ZR_GetZombieClass natives to expose external plugins to more than just the clients active class.
2014-10-15 09:25:07 +11:00
jargon-au 0edae8772e Add new class natives
Adding ZR_GetHumanClass & ZR_GetZombieClass natives to expose external plugins to more than just the clients current active class.
2014-10-15 09:22:26 +11:00
Richard Helgeby 8cf314bebf Fix typo in timer handle fix. 2014-09-14 14:05:40 +02:00
Richard Helgeby 8d6819c75c Fix invalid timer handle error when ambient sounds are disabled. 2014-09-14 14:03:53 +02:00
Richard Helgeby a5d9c66c42 Added missing changes for commit 25d99bc1280c (748). 2014-01-16 18:53:14 +01:00
Richard Helgeby b92cd30fa1 Don't set weapon transparency if weapon entity has children (that may not have the m_nRenderMode attribute). 2014-01-16 18:52:40 +01:00
Richard Helgeby 4464e46d37 Fixed fog controller not recreated when existing controller is deleted. 2013-12-24 14:32:28 +01:00
Richard Helgeby 4c5363d73e Removed hard coded fog enabled-state. 2013-12-24 13:03:33 +01:00
Richard Helgeby 447240fb8d Revert changeset: 9d97c210c634 2013-11-11 01:03:23 +01:00
Richard Helgeby 1e7b0e6267 Moved team balancing to round start in stead of round end. Fixes issue with maps or plugins inspecting player teams in round end event; being unable to detect which players that are zombies when the round has ended. Thanks to "Neuro Toxin".
Possible side effect: After round end, but before restart, zombies may not be able to pick up weapons to use in the next round. This might be ok, it's just dumb zombies. But it should be possible to fix this in the weapon restrict module if there's a need for it.
2013-10-31 22:36:04 +01:00
Richard Helgeby d286d29652 Added note about duplicate hitgroup cvars. 2013-08-20 19:37:04 +02:00
Richard Helgeby c61d29fd63 Fixed respawn module ignoring zr_respawn_team_zombie_world cvar. Improved description of zr_respawn_team_zombie_world. 2013-07-14 12:35:09 +02: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 7e72ede0ca Added support for resource files in Valve's file system. Thanks to Kyle. 2013-04-16 02:43:29 +02:00
Richard Helgeby 884c2b001a Fixed attacker not getting credit for delayed infection. 2013-04-14 02:36:10 +02:00
Richard Helgeby a3a9748131 Added support for using protocol buffers (currently disabled and untested). 2013-01-23 22:48:31 +01:00
Richard Helgeby 6de9b9de13 Implemented optional support for the ConfigList plugin. It will execute the "zr_post_exec" list right before post map configs if it exists. Example usage in randommode.cfg and swarm.cfg. 2013-01-17 09:36:54 +01:00
Richard Helgeby 6f82da666c Bumped plugin version. 2013-01-12 10:16:14 +01: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 3cdebf55b4 Fixed infection coundown not stopping on early infection (admin command). 2013-01-11 10:19:31 +01:00
Richard Helgeby 7f6b1fb938 Renamed zr_shield command to zshield so it's more chat command friendly. 2013-01-11 10:16:48 +01:00
Richard Helgeby 5b7d1b2ff3 Fixed immunity modes not obeying spawn protection. Implemented "kill" immunity mode. 2013-01-11 10:07:18 +01:00
Richard Helgeby cf73c6c52e Fixed round draw when round ends in CS: GO. Thanks to Jargon. 2013-01-10 09:09:25 +01:00
Richard Helgeby d87138977b Implemented infection modes. Compiles, but not tested. 2013-01-10 06:21:30 +01:00
Richard Helgeby ab6bb6575f Implemented shield immunity mode with zr_shield command. 2013-01-07 01:45:55 +01:00
Richard Helgeby d0d1de8197 Added validation of immunity amount and cooldown settings. Cleaned up some comments in code and class config. 2013-01-06 00:25:57 +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 e31d867c57 Updated class commands and class editor. Fixed a few compiler warnings. 2013-01-05 21:10:38 +01:00
Richard Helgeby 9096779f53 Disabled more debug messages. 2013-01-05 16:59:53 +01:00
Richard Helgeby 2ef87eaaad Disabled debug messages. 2013-01-05 03:06:28 +01:00
Richard Helgeby 31c727f0a5 Implemented infect immunity mode. Debug messages are still enabled, and some parts aren't updated yet (compiler warnings). 2013-01-05 02:44:46 +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 f2044c8d9b Fixed index out of bounds error in volumetric features (class editor). 2012-11-20 23:59:43 +01:00
Richard Helgeby 23bc0b5dcf Fixed zombie scream command timers not properly destroyed on map change. 2012-10-09 16:21:40 +02:00
Richard Helgeby c2da0b54ec Fixed hint text sound not precached error in CS: GO. 2012-09-20 11:41:21 +02:00
Richard Helgeby 75518ba11a Added knock back boost workaround for CS: GO, with cvar to disable it: zr_classes_csgo_knockback_boost. Side effects: Weaker and flying zombies, can be compensated with lower knock back. 2012-09-20 11:32:00 +02:00
Richard Helgeby 15a542ba76 Extracted knock back code to a test plugin. 2012-09-08 22:39:08 +02: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 393044aa87 Added game detection. 2012-08-22 12:42:30 +02:00
Richard Helgeby 5ccc735fd8 Fixed invalid client index error when player_death event was sent with bad userid. Should prevent some issues with bugs in other mods. 2012-08-20 22:57:35 +02:00
Richard Helgeby 2c68af4d84 Added test plugin for dumping damage information. 2012-08-20 17:55:47 +02:00
Richard Helgeby 58a1d6dcdf Added test plugin for dumping weapon information. 2012-08-20 01:45:32 +02:00
Richard Helgeby 581825829a Replaced RemoveEdict with kill entity input command. 2012-07-01 21:12:43 +02:00
Richard Helgeby 5340e9be58 Fixed memory leak in infection countdown feature. 2012-05-31 12:43:48 +02:00
Richard Helgeby 16280e0397 Fixed disabled classes still being validated. 2012-05-30 11:35:34 +02:00
Richard Helgeby 88bb7f514c Fixed infect timers not properly destroyed when the map is changed. 2012-05-29 23:40:32 +02:00
Richard Helgeby 1a4951ad0c Small cleanup in infect countdown timers. 2012-05-20 21:08:07 +02:00
Richard Helgeby 235407facb Fixed client not in game error in ZMarket. 2012-02-27 01:49:04 +01:00
Richard Helgeby 3fe0b5506f Changed ZMarket to auto-buy weapons once settings are loaded (if auto-buy is enabled). 2012-02-26 23:07:24 +01:00
Richard Helgeby 7cad0b6281 Fixed ragdolls being removed in spawn event when removal is disabled. 2012-02-26 15:39:12 +01:00
Richard Helgeby 4e68b52301 Updated to use new natives in cstrike extension instead of SDK calls. Requires SourceMod 1.4.0 or newer. 2012-01-28 19:12:33 +01:00
Richard Helgeby 3ad9d6108b Updated includes and compilers to version 1.4.1. Added compiler for OS X. 2012-01-28 02:16:49 +01:00
Richard Helgeby ca50bc9f1b Fixed ragdoll removal not being entirely disabled. 2012-01-27 17:57:28 +01:00
Richard Helgeby ef175ca488 Small timer fixes. Added cvar zr_roundend_balance_teams. See details.
Added cvar for disabling team balancing on round end (for use with custom team balancer): zr_roundend_balance_teams. Disabling this will cause players to remain on their current team when a new round starts. If zombies win, everyone will remain on the terrorists team.
Fixed invalid handle error after a map change.
Fixed language code typo in translations.
Infection countdown is no longer displayed if the infection delay is just one second.
2011-12-27 09:05:27 +01:00
Richard Helgeby 776f149247 Added infection countdown. Backported from zr-dev:52955b169945 (655). 2011-12-26 17:45:08 +01:00
Richard Helgeby c3d5218d6a Fixed internal player spawn post event fired too early (causing invisible models). 2011-10-30 18:12:27 +01:00
Richard Helgeby fe87b00c9b Added check for whether client is not in game in buy command hook, as a possible fix for bug 195. 2011-08-24 21:47:18 +02:00
Richard Helgeby de8998f1cd Fixed double inclusion of jump boost module. 2011-08-05 15:30:58 +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
Andrew f742ea5b45 Merge (fixed napalm) 2011-06-24 17:06:16 -07:00
Andrew 8735d191e7 Backed out changeset: 539b63f56ac5 2011-06-24 17:05:55 -07:00
Andrew fc6b1cc958 Merge 2011-06-24 17:02:52 -07:00
Andrew d2ea788500 Fixed the ragdoll module unintentionally removing other valid entities if a ragdoll was attempted to be removed after the round restarted. 2011-06-24 17:01:30 -07:00
Andrew afb4b48e91 Hopefully fixed stacking napalm (gotta test) 2011-06-20 02:39:44 -07:00
Andrew 5c3a6b16cc Removed the chat trigger detection, it causes a shit ton of errors in console. And updated compilers. 2011-06-17 20:09:56 -07:00
Richard Helgeby 3776eca312 Added improved random number generator from SMLIB. 2011-06-17 14:44:51 +02:00
Richard Helgeby 57a9ec2d4b Fixed consecutive mother zombie infection prevention not always working. 2011-06-17 14:08:05 +02:00
Richard Helgeby 64ce21b4e2 Fixed dead players being able to get weapons. 2011-04-24 23:28:52 +02:00
Richard Helgeby f878dd5735 Fixed players not respawning as zombies when they are supposed to. Updated patch list and changelog. 2010-11-17 15:48:57 +01:00
Richard Helgeby e7478e0a05 Imported some API-features from zr-dev. Added API test plugins in testsuite. 2010-11-14 15:17:19 +01:00
Richard Helgeby 772ed77beb Removed obsolete ZRTools include file. Added diff files in docs/changes to ignore list. 2010-11-04 00:55:37 +01: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 86678a9025 Fixed invalid handle error in ZMarket module (bug 152). 2010-08-06 15:42:22 +02:00
Richard Helgeby 5d7cdd5aa5 Added array existence check in weapons module. This might fix bug 166. 2010-08-06 14:49:38 +02:00
Richard Helgeby 3f68eaa2f0 Added validation log messages for individual attributes when loading classes. 2010-08-06 14:24:10 +02:00
Greyscale d795604978 r634 continued. 2010-07-26 14:31:56 -07:00
Greyscale bd4d7776c4 Lowered sv_maxspeed to work around a CS:S bug with spectator. Fixed a rare case where removing weapons didn't work. 2010-07-26 14:12:02 -07:00
Richard Helgeby 836d28bfd7 Fixed spawn protect end-timer not checking speed method. 2010-07-25 22:49:50 +02:00
Richard Helgeby fcb5b3f3d7 Removed use of deprecated functions. 2010-07-25 21:08:22 +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 f74e680ca7 Added 'explode' suicide command from OB update to intercept list (bug 190). 2010-07-25 20:33:56 +02:00
Richard Helgeby ec1d55a323 Fixed client not connected error in class module. 2010-07-10 19:21:49 +02:00
Richard Helgeby 68d7476f0e Updated docs and spawn protection speed. 2010-07-07 00:19:19 +02:00
Richard Helgeby ebf677c527 Imported fix from dev: 752:9c4222fa9219 - Removed hint text sound from spawn protection timer. 2010-07-06 23:20:09 +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 4fd2e9f545 Removed hint sound on hp display. Credits goes to to Tauphi. 2010-06-30 16:53:25 +02:00
Greyscale bf8d99c206 Fixed an error that happened when buying ammo and not having a weapon in prim/sec slot. 2010-06-29 12:14:51 -07:00
Greyscale d95cd501c9 Removed unnecessary antistick commands for model hull width, all models have the same hull width. 2010-06-25 10:40:47 -07:00
Andrew dcc02a44f2 Fixed signatures and round end defines that were updated in CSS:OB. 2010-06-24 19:51:01 -07:00
Richard Helgeby 899833d432 Fixed napalm grenades not always working. 2010-06-06 02:43:51 +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 64c49df505 Made cvar for minimum dx level. 2010-05-22 16:13:42 +02:00
Richard Helgeby d556da6a32 Added cvar to enable suicide intercept before the first zombie. 2010-05-19 15:34:26 +02:00
Richard Helgeby bac3384520 Imported feature from dev: 688:03dd044dcdd3 - Made scream and moan commands for zombies, with spam protection. 2010-04-05 01:36:32 +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 950a8f9e41 Imported fix from dev: 661:dbb2ad84eb58 - Fixed a bug where zr_suicide_cmds was being ignored and only the default value was being used. 2010-02-14 17:26:28 +01:00
Richard Helgeby 04a8fef584 Imported fix from dev: 649:46c12773c8df - Fixed problems that came up if a client was infected through admin after the round started, but before the freezetime expired. 2010-02-14 17:07:43 +01: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 05895df252 Imported fix from dev: 643:233fb9417720 - Fixed the error in napalm module, and made it log the unexpected values for future study. 2010-02-14 16:36:48 +01:00
Richard Helgeby 12f5092e9e Imported fix from dev: 640:a8280796340e - Fixed the default sky on the first map not reverting properly if zr_veffects_sky was enabled in zombiereloaded.cfg. 2010-02-14 16:27:20 +01:00
Richard Helgeby b531c1d880 Imported fix from dev: 607:e4982eeb64d0 - Fixed a bug in client listing menus when selecting a client that left the game caused errors. 2010-02-14 16:13:30 +01:00
Richard Helgeby 1005cd73a4 Fixed admin classes not restored from cookies. 2010-02-04 23:53:58 +01:00