View Single Post
Shadowysn
Senior Member
Join Date: Sep 2015
Location: Location:
Old 06-08-2020 , 03:50   [L4D-L4D2] New, edited custom commands v1.3.9e
Reply With Quote #483

This is a new-syntax version of the plugin, with neater code, some bug fixes, and auto-generating gamedata functionality.
A few signatures/SDKCalls have been removed/invalidated due to alternate, easier-to-access VScript functions.

A few edits to the existing functions have been made, as well as two more additions of mine:

Smackill Player - sm_smackillplayer
Functions like sm_slay, except it creates a lot of damage force so the ragdoll corpses often fly away or do back/frontflips.
This also ragdolls the survivors, so you can make the survivors do flips too.

Pipe Explosion - sm_pipeexplosion
Functions like sm_setexplosion, but spawns a pipebomb explosion that isn't overkill.


-= Releases =-
Code:
Version 1.3.9e
- Disabled debug logs.
- sourcemod/cfg config file is now generated. l4d2_custom_commands.cfg
- Hacky L4D1 support added. Still do not recommend to use in L4D1 due to untested bugs.
- OldMovie now changes all current permanent health to pills health instead of setting to just 50.0 temp health at all times.
- Fixed menu issue where Smackill Player uses Incap Player menu and so on when l4d2_custom_commands_menutype is 0.
Version 1.3.9d
- Set gamedata to be optional. Only 'Charge Player', sm_charge, and the charge effect that happens from explosions will be unusable.
Version 1.3.9c
- Fixed damage behavior of acidspills from sm_acidspill. Survivors now properly react and get damaged by the acid.
- Fixed a few potential errors with clients disconnecting when a rain effect is in play.
Version 1.3.9b
- Fixed compiler warnings.
- Fixed oopsies with sm_teleportent only working with players.
Version 1.3.9
- Added static to all chars to prevent potential bottlenecks that slow servers down.
- Cleaned up most, if not all 'LogCommand' lines.
- Now compiles with SM 1.11 with non-fatal warnings.
Version 1.3.8
- Added sm_pipeexplosion.
- Cleaned some repeating code. (Seriously, what in the fuck. There's SO MUCH repeating code!!!)
Version 1.3.7
- Replaced deprecated FloatMul and FloatDiv function calls.
- CSpitterProjectile_Detonate signature now unused due to VScript's DropSpit(Vector location). However, acidspill behaviour is different, and will no longer credit the command user as the damaging-acid owner.
Version 1.3.5
- Initial release.
-= How to Install =-

- Move the .smx file to your plugins folder inside the Sourcemod directory.
- (OPTIONAL) Move the .txt file to your gamedata folder inside the Sourcemod directory. The plugin, by itself, will auto-generate the gamedata needed if it doesn't find one, hence this being optional.
IF YOU HAVE AN OLDER GAMEDATA .txt FILE, YOU MUST EITHER DELETE AND LET THE NEW PLUGIN AUTO-GENERATE OR REPLACE IT WITH A NEW ONE!
Attached Files
File Type: sp Get Plugin or Get Source (l4d2_custom_commands.sp - 631 views - 164.2 KB)
File Type: txt l4d2customcmds.txt (495 Bytes, 518 views)
__________________
ragdoll spam, that is all

Steam profile, where I game, obviously.
Youtube channel, where I do Stick Death Maze animations and some other stuff.
no plugin requests, sorry


My Plugins:
-search list-
Modified Plugins:
1 | 2 | 3 | 4

Last edited by Shadowysn; 08-16-2022 at 09:52. Reason: Updated to Version 1.3.9e
Shadowysn is offline