View Single Post
Author Message
Pescoxa
Member
Join Date: Dec 2009
Old 05-15-2010 , 12:05   [L4D/L4D2] VS Bug Fix
Reply With Quote #1

This plugin handles the game in some game modes to change some cvars.

Sometimes the game starts and the bots start the game before the players get in! This plugin freezes the bots (survivor and infected) until a human player get in and left the safe area. When this occours, the bots start moving.

It allows you play versus mode without survivor players and does not close the game (sb_all_bot_team [L4D] and sb_all_bot_game [L4D2]).

Hooks: mp_gamemode, sb_stop, sb_all_bot_team or sb_all_bot_game, director_ready_duration (how it works?), nb_stop and director_no_mobs.

Command: sm_unfreezebots (force to restore AI)

When the round starts, all AI is disabled and it starts working again when a human player left the safe area. While the survivors are in the safe (without get out sometime) the will have the God Mode enabled.

I've been testing this plugin since version 0.1. I changed it a lot and now, in the current version, I think it's OK!

Let me know if it actually works!

* I changed some events that skrewed up the plugin, but I found the solution in another plugin, then I'll replicate it to this plugin. - FIXED *

* NEW VERSION IS OUT!!! 2.9.3 *

Changelog:

* 2.9.3
- sb_all_bot_team to L4D and to sb_all_bot_game to L4D2;
- Russian language added;

* 2.9.2
- sb_all_bot_team to sb_all_bot_game;

* 2.9.1
- All modes are handled;

* 2.9
- Translation: pt-br and us-en;
- Some Bug fixes about god mode;
- Code Review;

* 2.8
- Initial public release.

TODO:

- Nothing
Attached Files
File Type: sp Get Plugin or Get Source (l4d_sm_vsbugfix.sp - 5904 views - 9.6 KB)
File Type: txt l4d_sm_vsbugfix.phrases.txt (563 Bytes, 3315 views)

Last edited by Pescoxa; 02-03-2011 at 14:50. Reason: New Version
Pescoxa is offline