View Single Post
Author Message
Skyy
AlliedModders Donor
Join Date: Jan 2010
Location: Toronto, Canada
Old 08-02-2012 , 20:38   [L4D2] Ready Up Lite v0.8a
Reply With Quote #1


Ready Up Lite







Test Server
I have a test server set up, and it is currently running two of my custom plugins:
Friendly-Fire Lite v0.2
Ready Up Lite v0.8a

You can connect to it here: rankedupl4d2rpg.game.nfoservers.com:27015
Here you can play around with the plugins and provide feedback that I can use for future updates.
Or, you can simply choose to play there if you wish.



Description
This plugin provides a ready up system similar to l4d2ReadyUp, but with minimal extras, and in a
compact, new look.

It provides a simple panel to show who is still connecting, who is ready, who isn't, and who is
spectating and allows players to switch between ready and not ready through the menu.



There are no chat commands - toggling ready or not ready is done entirely through the panel!




This plugin doesn't restart the map or restart rounds. While players are loading, and during ready up, all
players are frozen in place, to prevent early starting. This is also set to only occur at the start of a map
and between rounds.

Competition Mode:
- Two random grenade types randomly given to two survivors when the ready up period ends (first round).
The two same grenade types randomly given to two survivors when the ready up period ends (second round).
- All defibrillators, medical packs, and grenade launchers are removed from the map when the ready up period ends.
- Grenades can be passed to a different survivor by shoving them, if they don't have a grenade. (competition mode only)
- All survivors receive pain pills when ready up ends.
- Ready Up period before second round is enforced.

Dependencies:
l4d2_direct
SDK Hooks


Code:
// This file was auto-generated by SourceMod (v1.4.5-dev)
// ConVars for plugin "ruplite.smx"


// If set to 0, competition mode will not be turned on. If on, second half ready is forced.
// -
// Default: "0"
ruplite_competition_mode "0"

// If 0.0, all players must have loaded for ready up to start, otherwise forces ready up after this many seconds, even if all players are not fully loaded.
// -
// Default: "60.0"
ruplite_connect_timeout "60.0"

// If set to 0, players are only frozen until all players load in.
// -
// Default: "1"
ruplite_freeze_enabled "1"

// If 0.0, all players MUST ready up to start, otherwise starts when all players have loaded, after this many seconds.
// -
// Default: "60.0"
ruplite_freeze_time "60.0"

// If set to 0, there will not be a ready up period before the second round begins.
// -
// Default: "1"
ruplite_ready_halftime "1"
Translations
Code:
If you would like to add a language, please send me a PM with the language translated 
using the same format found in the translations file and I'll add it to the official
translations file.


Languages currently supported:
English
French (via Eric0279)
Portuguese (via Sal Grosso)
Version History
Code:
Version 0.8a
- Hotfix: Removed client team check for clients who are still loading.

Version 0.8
- Friendly fire is now nullified to any survivor victim who has yet to leave the start area.

Version 0.7
- Removed item giving / restriction config options and replace with single "competitive mode" option.
- Grenade passing only available with competitive mode enabled.
- New code structure.
- Spectators list only shows if there is at least one spectator in the game.
- Shows whether competition mode is enabled or disabled at the top of the panel.
- Players notified after "Match begins" text in chat if ready up will occur after the first round of a map.

Version 0.6
- Added support for giving a variable amount of random grenades types to random survivors (can be 0). Both teams will get the same grenades on the same map.
- Added maximum time to allow connecting players to load in before forcing the ready up stage. Triggers when first player loads, if value > 0.0, and shows all connected
players the time remaining until ready up is forced on the side panel.
- Added support to allow survivors to give their grenade to another non-bot survivor by shoving them if the target has no grenade. Can be disabled.
- When ready up begins, spectators are forced to be ready, are not shown in the ready / not ready section of the
panel, and are shown in a new section below the ready option.

Version 0.5
- Redesigned the ReadyUpStart and ReadyUpEnd functions.
- Added support for removing items and giving items, for server owners who want some competitive
configuration options.

Version 0.4
- Removed !ready command, instead players can use the simple menu to toggle ready/not ready.
- Added ruplite_ready_halftime for server owners who would like a ready up period to occur before the second round.
- Friendly fire and self fire is disabled during ready up period.

Version 0.3
- Translations are now supported.

Version 0.2
- Different panel displays if ready up ends when all players have connected.

Version 0.1
- Initial release.
Future Releases:
Code:
Version 0.9
- Final bug fixes, possibly? Any features missing?
Attached Files
File Type: sp Get Plugin or Get Source (ruplite.sp - 300 views - 15.4 KB)
File Type: smx ruplite.smx (11.0 KB, 263 views)
File Type: txt ruplite.phrases.txt (2.5 KB, 307 views)

Last edited by Skyy; 08-21-2012 at 03:23. Reason: translations file updated!
Skyy is offline