Commit Graph

87 Commits

Author SHA1 Message Date
BotoX 30a1d4b2ce add random round-robin mother zombie dice rolling on new player join 2020-12-08 21:37:01 +01:00
BotoX f9193641d2 Add option to disable random round-robin mother infection cycle 2020-12-06 18:43:19 +01:00
BotoX e2e15972e2 Fix mother zombie infection cycle not saving picked alternative candidates at end of cycle. 2020-12-05 20:15:28 +01:00
BotoX a5e0f31fc1 Add teleport on infect option. 2019-12-30 14:19:05 +01:00
BotoX dfc024b3d8 change KnockbackOnClientHurt to KnockbackOnTakeDamageAlivePost 2019-09-27 16:40:58 +02:00
zaCade a251f6b755 General: Add in a API call to hide infection timer. 2019-01-23 18:48:00 +01:00
zaCade 811c5ccb72 General: Move some code around.
Move the 'human' code back to its original location, and call the
infection function instead when they should be infected, instead of
doing it forcefully. That caused issues whenever there was a situation
of a warmup round ect. blocking infections.
2018-09-06 13:50:30 +02:00
zaCade c32cda3fc9 General: Apply ZSpawn logic on late spawners.
Improvement on `a45be16399`
2018-08-28 14:54:42 +02:00
zaCade 252392c433 Revert "General: Allow auto infection on 'late' spawners."
This reverts commit a45be16399.
2018-08-28 13:22:54 +02:00
zaCade a45be16399 General: Allow auto infection on 'late' spawners.
Catch people that automatically spawn after motherzombie infection, and
make them spawn as zombies. On CSS for example you automatically spawn
if you spawn between round start and 20 seconds after, thus avoiding the
need of zspawn.
2018-08-23 20:07:40 +02:00
zaCade fa758698c6 General: Woops, forgot this one. xP 2018-07-29 15:14:22 +02:00
zaCade f5245b0920 General: Clear knife slot entirely instead of once.
Since the taser would remain, and would break shit. :P
2018-07-29 15:13:31 +02:00
zaCade 6c35c59b81 GENERAL: Fix consecutive motherzm infections. 2017-10-12 02:18:52 +02:00
zaCade 1b81c27314 GENERAL: Infection update. 2017-10-06 13:49:11 +02:00
zaCade 226619f24b Fix SteamIDCache not beign created with empty cvar. 2017-08-26 23:55:11 +02:00
BotoX 6478d995b9 Fix rebuy exploit by keeping current clip.
Add zr_infect_knife_cooldown
Convert includes to new syntax.
2017-07-05 23:00:50 +02:00
BotoX b09747346f Various fixes and additions. 2017-05-01 23:59:38 +02:00
BotoX e7597639c2 Save recent infections via SteamID.
Change SteamID cache to AccountID.
Fix error which broke shotgun knockback.
Add roundend stats to console.
Renamed some global variables to have g_ prefix
2017-01-22 15:09:22 +01:00
BotoX ab210d531e fix engine crash bug in 0c0ce1adfc 2016-08-24 23:06:51 +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 b04f25400f added zr_zspawn_force and zr_infect/zr_human logging 2015-10-31 00:41:51 +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 7ce73b4493 Add InfectHasZombieSpawned. 2015-03-22 18:06:40 +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
Richard Helgeby a8f91d748e Updated copyright year. 2013-01-12 08:47:36 +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 5b7d1b2ff3 Fixed immunity modes not obeying spawn protection. Implemented "kill" immunity mode. 2013-01-11 10:07:18 +01:00
Richard Helgeby d87138977b Implemented infection modes. Compiles, but not tested. 2013-01-10 06:21:30 +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 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 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 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 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 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 e7478e0a05 Imported some API-features from zr-dev. Added API test plugins in testsuite. 2010-11-14 15:17:19 +01:00
Greyscale d795604978 r634 continued. 2010-07-26 14:31:56 -07: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 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 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