View Single Post
Author Message
seattle_ice
Member
Join Date: Dec 2010
Old 03-10-2011 , 18:25   [L4D2] Protect the President/Escort the VIP v1.0.4
Reply With Quote #1

Based very loosely on the old standby 'Escort the VIP' from CSS, this version has you protecting a teammate while trying to make the saferoom.

This is for versus gameplay, so both teams get a try. Although people have been playing it on co-op successfully.

Rules/Gameplay:
  • When the first player leaves the saferoom or start area, a random player is selected to be the president. (You can make it truly random, or exclude players that were it in previous rounds)
  • The president can move faster than the other players (configurable from 50% to 200%), default = 120%).
  • The president can have more health than the other players(50% to 500%), default = 150%.
  • The President can only carry a pistol/dual pistols, no other weapons (Configurable to allow Magnum)
  • The President cannot carry a medkit, or heal himself. He can still take pills and adrenaline (Configurable, off or on).
  • The damage to the president is also dealt to all team members. (Configurable from 0% to 500%).
  • All other players damage can be changed also(10% to 500%).
  • The president will have his skin color changed, and he will have a flashing custom glow color around him.
  • If the president dies, you have a limited time to defib him before the entire team dies also(0 seconds to 300 seconds).

Most of the items are configurable within a range, including the colors of the president. All the colors are comma delimited RGB strings eg: "255,34,55".

There is a admin console command "sm_selectprez <clientid>" to let an admin select one on demand, if needed or desired.


Version 1.0.1 (Uses SDKHooks now!)
[FIXED] - Glow staying on the wrong players after round change
[ADDED] - Allow/Give the Prez a magnum ConVar
[FIXED] - Prez being able to pick up dropped weapons

Version 1.0.2
[FIXED] - Change Prez if Prez disconnects.
[FIXED] - Removed debugging Print lines

Version 1.0.3
[ADDED] - Allow Prez to carry gas cans, propane and oxygen tanks, and fireworks crates.
[FIXED] - Players not always dying correctly when Prez dies (sometimes just get incapped).

Version 1.0.31
[ADDED] - Allow Prez to carry Ammo packs, Cola Bottles, and the Gnome.
[FIXED] - Change the Prez if the existing one changes teams.

Version 1.0.4
[ADDED] - Saferoom Door gets locked open if Prez/VIP dies. Unlocked if he is revived.


I uploaded the .smx since it will not compile due to the SDKHooks dependency.
Attached Files
File Type: smx l4d2_bwa_protecttheprez.smx (16.3 KB, 1914 views)
File Type: sp Get Plugin or Get Source (l4d2_bwa_protecttheprez.sp - 1820 views - 26.3 KB)

Last edited by seattle_ice; 03-18-2011 at 12:45. Reason: New Version
seattle_ice is offline