Raised This Month: $32 Target: $400
 8% 

[L4D-L4D2] New custom commands v1.0.9


Post New Thread Reply   
 
Thread Tools Display Modes
Tonblader
Senior Member
Join Date: Jul 2011
Location: Peru
Old 08-07-2021 , 03:40   Re: [L4D-L4D2] New, edited custom commands v1.3.8
Reply With Quote #491

Spoiler


Can you add new cmd to shove survivor or SI? (staggered)
And survivor punch by a tank w/o damage argument.
Tonblader is offline
Shadowysn
Senior Member
Join Date: Sep 2015
Location: Location:
Old 08-07-2021 , 09:46   Re: [L4D-L4D2] New, edited custom commands v1.3.8
Reply With Quote #492

Quote:
Originally Posted by Tonblader View Post

Can you add new cmd to shove survivor or SI? (staggered)
And survivor punch by a tank w/o damage argument.
There already is a shove command included.
sm_shove {player}

I won't be able to update any plugins for a long while now.

Last edited by Shadowysn; 08-07-2021 at 09:46.
Shadowysn is offline
VladimirTk
Senior Member
Join Date: Apr 2021
Location: Perú - Latino América
Old 10-22-2021 , 07:45   Re: [L4D-L4D2] New, edited custom commands v1.3.8
Reply With Quote #493

Quote:
Originally Posted by Shadowysn View Post
Apologies if I already uploaded this elsewhere or even reuploaded on this plugin's page.

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.


I considered forcing the survivor to ragdoll with this function, but I figured the copy-pasting would be a bit too troublesome.
Nevermind.

The gamedata from the original plugin will still function with this plugin.

-= Releases =-
Code:
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!

I attach the updated signatures

Thanks to Psykotik for the signatures
Attached Files
File Type: txt l4d2customcmds.txt (1.5 KB, 440 views)
VladimirTk is offline
Kleiner
Member
Join Date: Dec 2017
Location: Russia, Chelyabinsk
Old 10-24-2021 , 01:25   Re: [L4D-L4D2] New custom commands v1.0.9
Reply With Quote #494

Translations support?
Kleiner is offline
MilanesaTM
Junior Member
Join Date: Aug 2021
Old 10-27-2021 , 10:54   Re: [L4D-L4D2] New custom commands v1.0.9
Reply With Quote #495

Quote:
Originally Posted by foxhound27 View Post
Converted to last syntax + updated signature
[SM] Call stack trace:
[SM] [0] SetFailState
[SM] [1] Line 269, /home/forums/content/files/2/9/4/6/0/9/180167.attach::OnPluginStart
MilanesaTM is offline
Shadowysn
Senior Member
Join Date: Sep 2015
Location: Location:
Old 10-29-2021 , 01:46   Re: [L4D-L4D2] New, edited custom commands v1.3.8
Reply With Quote #496

Quote:
Originally Posted by VladimirTk View Post
I attach the updated signatures

Thanks to Psykotik for the signatures
Thanks, but it looks like the updated signatures aren't needed for my version.
I included the unused signatures for legacy reasons, and those unused sigs are the only ones that broke.
The only used signature, CTerrorPlayer_Fling, is still good.

I've went ahead and removed the legacy signatures from the gamedata to avoid confusion now.

Last edited by Shadowysn; 10-29-2021 at 01:49.
Shadowysn is offline
MilanesaTM
Junior Member
Join Date: Aug 2021
Old 11-06-2021 , 05:07   Re: [L4D-L4D2] New custom commands v1.0.9
Reply With Quote #497

Quote:
Originally Posted by foxhound27 View Post
Converted to last syntax + updated signature
Code:
Exception reported: Unable to find the "CTerrorPlayer::OnAdrenalineUsed(float)" signature, check the file version!
Blaming: l4d2_custom_commands.smx
Call stack trace:
   [0] SetFailState
   [1] Line 269, /home/forums/content/files/2/9/4/6/0/9/180167.attach::OnPluginStart

Last edited by MilanesaTM; 11-06-2021 at 05:09.
MilanesaTM is offline
Shadowysn
Senior Member
Join Date: Sep 2015
Location: Location:
Old 11-06-2021 , 06:41   Re: [L4D-L4D2] New custom commands v1.0.9
Reply With Quote #498

Quote:
Originally Posted by MilanesaTM View Post
Code:
Exception reported: Unable to find the "CTerrorPlayer::OnAdrenalineUsed(float)" signature, check the file version!
Blaming: l4d2_custom_commands.smx
Call stack trace:
   [0] SetFailState
   [1] Line 269, /home/forums/content/files/2/9/4/6/0/9/180167.attach::OnPluginStart
There's no OnAdrenalineUsed signature in VladimirTk's l4d2customcmds.txt file.
Shadowysn is offline
Zheldorg
Junior Member
Join Date: Aug 2020
Old 02-26-2022 , 04:38   Re: [L4D-L4D2] New, edited custom commands v1.3.9
Reply With Quote #499

Quote:
Originally Posted by Shadowysn View Post
Apologies if I already uploaded this elsewhere or even reuploaded on this plugin's page.

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.


I considered forcing the survivor to ragdoll with this function, but I figured the copy-pasting would be a bit too troublesome.
Nevermind.

The gamedata from the original plugin will still function with this plugin.
.....
Line 1431: Action CmdTeleportEnt(int client, any args)
Line 1459: for (int i=1; i<=MaxClients; i++)
it seems here we have to go through all the entities, but we work only with clients
P.S.
PHP Code:
Line 4811:void EmitAmbientGenericSound(float[3pos, const char[] snd_str// "float[3] pos" do error "error 101: fixed dimensions must be after the array name, not on the type"
          
void EmitAmbientGenericSound(float pos[3], const char[] snd_str// need "float pos[3]"
Line 4924:void DoClientTrace(int clientint mask MASK_OPAQUEbool print_to_cl falsefloat[3targ_vec)   // "float[3] targ_vec" do error "error 101: fixed dimensions must be after the array name, not on the type"
          
void DoClientTrace(int clientint mask MASK_OPAQUEbool print_to_cl falsefloat targ_vec[3]) // need "float targ_vec[3]" 
P.S.S
PHP Code:
Line 1809void BuildPlayerMenu(int client)
Line 1816AddMenuItem(menu"l4d2smackillplayer""Smackill Player"
Added menu item"Smackill Player"but menu handler didnt take it into accountmissing DisplaySmackillPlayerMenu insert
Line 1851
int MenuHandler_PlayerMenu(Handle menuMenuAction actionint clientint param2

Last edited by Zheldorg; 02-26-2022 at 05:24.
Zheldorg is offline
Shadowysn
Senior Member
Join Date: Sep 2015
Location: Location:
Old 02-27-2022 , 09:00   Re: [L4D-L4D2] New, edited custom commands v1.3.9
Reply With Quote #500

Quote:
Originally Posted by Zheldorg View Post
Line 1431: Action CmdTeleportEnt(int client, any args)
Line 1459: for (int i=1; i<=MaxClients; i++)
it seems here we have to go through all the entities, but we work only with clients
Whoops, the CmdTeleportEnt thing I completely forgot about.
I never used sm_teleportent for other entities than players, so it slipped past me for the whole time.

But the other errors look like they're from an older version. Try updating.

Last edited by Shadowysn; 02-27-2022 at 09:01.
Shadowysn is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:57.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode