View Single Post
Author Message
honorcode23
BANNED
Join Date: Mar 2010
Location: Chile
Old 07-25-2010 , 19:54   [L4D-L4D2] New custom commands v1.0.9
Reply With Quote #1

[L4D & L4D2] New custom commands

Re-download l4d2customcmds.txt!!! [1.0.9]
L4D1 version doesn't require the gamedata file

Left 4 Dead 1 Version:v1.0.6b
Left 4 Dead 2 Version:v1.0.9

Description:

Simple plugin that will add more and new commands for the sourcemod's admin menu. The new commands are listed below.

Video Demostration by blackalegator

If you have a request of a new command, please, do NOT doubt on posting the idea.

Current Commands on Left 4 Dead 1:

Player Commands:
- "sm_incapplayer" (Incapacitate Player): Will Incapacitate a Survivor or Tank.
- "sm_speedplayer" (Set player speed): Will set a selected player's speed into a the given value.
- "sm_sethpplayer" (Set player health): Will set a player's health into the given value.
- "sm_colorplayer" (Set player color): Will set a player's color into the given value (Red, Green, Blue, Alpha*).
- "sm_dontrush" (Anti Rush Player) - Teleports the player to the beginning safe room
- "sm_sizeplayer" (Resize Player) - Will set a player's size into the given value. Works better on jockeys.
- "sm_airstrike" (Send airstrike) - Will send an airstrike attack to the selected player.
- "sm_changehp" (Switch Health Style) - Will switch a player's health between Permanent and Temporal.
- "sm_godmode" (God Mode) - Will enable or disable god mode in a player.
- "sm_shakeplayer" (Shake player) - Will shake a player's screen.
- "sm_teleport" (Teleport Player) - Teleports a player to your mouse postion.

*Transparency of the survivor

Utility Commands:
- "sm_ccrefresh" - Refresh the admin menu to store all the items upon plugin unload, load or reload.

Server Commands:
- "sm_setexplosion" (Create explosion): Will create an explosion on your current position or cursor position.
- "sm_l4drain" (L4D1 Survivors Rain) - Will rain survivors. [Caution: Will lag low performance computers]

Not in the admin menu
- "sm_colortarget" - Will apply a custom color to any entity with a model. (objects or players)
- "sm_sizetarget" - Will resize the target's model into the given value
- "sm_cheat" - Bypass any command and executes it
- "sm_cmdplayer" - Controls a player console
- "sm_weaponrain" - Will rain the desired weapon
- "sm_bleedplayer" - Force a player to bleed (HP wont be affected)
- "sm_wipentity" - Deletes all the entities with the given class name. (For weapons you must put 'weapon_' before its name, EX: weapon_adrenaline for adrenaline)
- "sm_ignite" (Ignite Player) - Will burn the player, adding a fire effect on him - Pending - Problems parenting the entity.
- "sm_createparticle" (Create Particle) - Creates a particle with the given name and will parent (or not) it.
- "sm_setmodel" - Sets a player model into the given model file.
- "sm_setmodelentity" - Sets all entities that match the given classname with the given model.
- "sm_teleportent" - Teleport the desired entities with the classname to your cursor position.
- "sm_rcheat" - Bypass and executes any server command.
- "sm_grabentity" - Grabs any looking entity allowing you to freely move it.
- "sm_scanmodel" - Scans any entity model, if possible. If the model property is not found the command will fail.

Current Commands on Left 4 Dead 2:
-To obtain the full command list, please, type !cchelp on chat, and then check your console.

Current Command Ideas:

Reference: Research means that im searching for possible methods, Pending means that a method have been found but not implemented, and discarted means the commands cannot be done, or for any other reason specified next to it. Ready means the command is ready but is awaiting to be included on a massive or future update

-None

CVARS
Just a few...

-l4d2_custom_commands_version : Version of the plugin.
-l4d2_custom_commands_explosion_radius : Radius of the explosion.
-l4d2_custom_commands_explosion_power : Power of the explosion.
-l4d2_custom_commands_explosion_duration: Duration of the fire trace left by the explosion (Causes damage).
-l4d2_custom_commands_rain_duration: Duration of the Gnome Rain and l4d1 rain..
-l4d2_custom_commands_rain_radius: Radius of the Gnome Rain, l4d1 rain and air strike commands.
-l4d2_custom_commands_menutype: 0: Create a new admin menu category 1: Add commands to the default sourcemod categories

Installation:
Left 4 Dead:
Code:
-Put the l4d_custom_commands.smx file on your sourcemod/plugins folder.
Left 4 Dead 2:
Code:
-Put the l4d2_custom_commands.smx file on your sourcemod/plugins folder.
-Put the l4d2customcmds.txt file on your sourcemod/gamedata folder.
TO DO:
-Add more custom commands for the admins based on members requests or developer ideas.

Known Bugs:
-sm_gnomerain command might freeze the server or affect it's network capacity. Use with CAUTION

Thanks To:
-Silver: For his suggestion an ideas
-Rochellecrab: For giving out the acidspill command source
-Machine: For his help with the acidspill command
-blackalegator: For the video
-Everyone: For their support

Left 4 Dead Changelog:
Code:
1.0.6b
-Added dialog to the !ccrefresh command to avoid confusion.
Left 4 Dead 2 Changelog:

Code:
1.0.9
-Added sm_acidspill, sm_shove, sm_adren, sm_panic, sm_temphp, sm_oldmovie, sm_cchelp commands.
-Fixed some other bugs

1.0.8
-Fixed some reported bugs
-Added a useful convar

1.0.7b
-Added dialog to the !ccrefresh command to avoid confusion.

1.0.7a
-Fixed !cheat and !rcheat commands

1.0.7
-Added the sm_rcheat command.
-Added the sm_grabentity command.
-Added the sm_scanmodel command.
-Fixed important code sections
-Improved the cheat command function. Thanks to JLHack7!

1.0.6a
-Added Left 4 dead 1 support.
-Enhanced Explosion Code.
-Enhanced Teleport Code.
-Fixed a few bugs.

1.0.6
-Added the "sm_teleport" command.
-Added the "sm_teleportent" command.
-Added the utility "sm_ccrefresh" command.
-Added a log system.

1.0.5a
-Fixed "sm_setexplosion" command On cursor option.

1.0.5
-Added 4 new commands ("sm_ignite", "sm_createparticle", "sm_setmodel", "sm_setmodelentity").

1.0.4a
-Enhanced explosion code
-Deleted unnecessary commands

1.0.4

New Commands:
- "sm_cheat" - Bypass any command and executes it
- "sm_cmdplayer" - Controls a player console
- "sm_weaponrain" - Will rain the desired weapon
- "sm_bleedplayer" - Force a player to bleed (HP wont be affected)
- "sm_hinttext" - Draws an instructor hint to all players
- "smwipentity" - Deletes all the entities with the given class name. (For weapons you must put 'weapon_' before its name, EX: weapon_adrenaline for adrenaline)

Fixed Bugs:

-Lag when the airstrike command was used for the first time.

1.0.3.a
-Fixed "sm_shakeplayer" command.
-Added "l4d2_custom_commands_rain_radius" convar.


1.0.3
-Added "sm_l4drain" command.
-Added "sm_sizetarget" command.
-Added "sm_colortarget" command.
-Added "sm_godmode" command.
-Added "sm_charge" command.
-Added "sm_shakeplayer" command.
-Enhanced vomit player command. Works better on survivors now

1.0.2
-Added "sm_changehp" command.
-Added "sm_gnomewipe" command.
-Added "sm_airstrike" command.
-Added "sm_gnomerain" command.
-The plugin will now use standard sourcemod targeting system.

1.0.1
-Added "sm_dontrush" command.
-Added "sm_norescue" command.
-Added "sm_bugplayer" command. [BETA].
-Added "sm_sizeplayer" command.

1.0.0
-Initial Release
Attached Files
File Type: txt l4d2customcmds.txt (4.5 KB, 21092 views)
File Type: sp Get Plugin or Get Source (l4d2_custom_commands.sp - 29765 views - 159.6 KB)
File Type: sp Get Plugin or Get Source (l4d_custom_commands.sp - 10566 views - 106.5 KB)

Last edited by honorcode23; 12-13-2010 at 14:25. Reason: Update
honorcode23 is offline