Raised This Month: $12 Target: $400
 3% 

[L4D2] Incapped Crawling with Animation (2.9) [11-Dec-2022]


Post New Thread Reply   
 
Thread Tools Display Modes
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 01-19-2020 , 08:08   Re: [L4D2] Incapped Crawling with Animation (2.4) [19-Dec-2019]
Reply With Quote #211

Quote:
Originally Posted by Shadowysn View Post
Can you add ConVars to:
- disable the crawling clones.
- make use of SDKHook_SetTransmit to prevent the clone of a character from showing up in first person.
when you find time to do so?
Why would you even want this? If you don't want the crawling anim delete the plugin and use the games cvar only to enable. No.
__________________
Silvers is offline
Shadowysn
Senior Member
Join Date: Sep 2015
Location: Location:
Old 01-19-2020 , 23:42   Re: [L4D2] Incapped Crawling with Animation (2.4) [19-Dec-2019]
Reply With Quote #212

Quote:
Originally Posted by Silvers View Post
Why would you even want this? If you don't want the crawling anim delete the plugin and use the games cvar only to enable. No.
EDIT 2: I'm a dummy, but you also acted a bit harsh, so I guess it evens out. The only good thing about my version of crawling so far is the firstperson view without the animated prop blocking the way, so you could probably check it out.
Or not.

Original comment:
Ok then, did the clones/coach cvar by myself.
I suggested them because I figured I could reuse and re-edit DeathChaos25's animation fix to do the crawling animations for everyone else except Coach, but I realized it was way too lousy of a suggestion for the main plugin.
EDIT: Alright scratch that, the idea kinda didn't work. They did the animation, but they remained fixed in one direction until they stop crawling, which looked unnatural.

The attached files here are a modified version of the plugin, with l4d2_crawling_clones and l4d2_crawling_coach as leftovers, as well as preventing the crawling anim from transmitting to the first-person view of the crawling client if l4d2_crawling_view is set to 0. Feel free to remove the former 2 convars and their functionality from the code.
This version requires SDKHooks, which is already bundled with Sourcemod 1.5+. If you have an older version, (attached smx is compiled with 1.10) you need to compile the source with your own compile.exe in scripting. And if your Sourcemod doesn't have SDKHooks, download it here.
Attached Files
File Type: sp Get Plugin or Get Source (l4d2_incapped_crawling.sp - 303 views - 29.0 KB)
__________________
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; 04-05-2020 at 12:33.
Shadowysn is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 01-20-2020 , 08:10   Re: [L4D2] Incapped Crawling with Animation (2.4) [19-Dec-2019]
Reply With Quote #213

Quote:
Originally Posted by Shadowysn View Post
(attached smx is compiled with 1.10)
The forum compiler when posting a plugin as reply already compiles with 1.10. The SMX is not required here as "Get Plugin" works. Please delete the SMX.
__________________
Silvers is offline
strikeraot
Senior Member
Join Date: Dec 2018
Location: Viet Nam
Old 01-23-2020 , 06:32   Re: [L4D2] Incapped Crawling with Animation (2.4) [19-Dec-2019]
Reply With Quote #214

Well, if you being killed while crawling, then you spect someone, their hands and weapon will invisible, the only thing show is the crosshair
strikeraot is offline
Angelcreeper98
Junior Member
Join Date: Mar 2020
Old 03-19-2020 , 02:51   Re: [L4D2] Incapped Crawling
Reply With Quote #215

2 things

1 can a play an animation in game or what is m_nsetsequence

2 tried to load it Blaming: [L4D2] Incap Crawling.smx
L 03/19/2020 - 026:22: [SM] Call stack trace:
L 03/19/2020 - 026:22: [SM] [0] SetFailState
L 03/19/2020 - 026:22: [SM] [1] Line 165, C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\[L4D2] Incap Crawling.sp:repSDKCall
L 03/19/2020 - 026:22: [SM] [2] Line 20, C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\[L4D2] Incap Crawling.sp::OnPluginStart
L 03/19/2020 - 026:22: [SM] Unable to load plugin "[L4D2] Incap Crawling.smx": Error detected in plugin startup (see error logs)
L 03/19/2020 - 0261: [SM] Exception reported: Cannot create new entity when no map is running
L 03/19/2020 - 0261: [SM] Blaming: l4d2_l4d1_survivors_fix.smx
Angelcreeper98 is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 03-19-2020 , 10:31   Re: [L4D2] Incapped Crawling with Animation (2.4) [19-Dec-2019]
Reply With Quote #216

Quote:
Originally Posted by strikeraot View Post
Well, if you being killed while crawling, then you spect someone, their hands and weapon will invisible, the only thing show is the crosshair
I've tried to replicate this bug but it doesn't happen for me maybe since test everything solo or not being killed in the right way (I tried slay and bleedout)


Quote:
Originally Posted by Angelcreeper98 View Post
2 things

1 can a play an animation in game or what is m_nsetsequence

2 tried to load it Blaming: [L4D2] Incap Crawling.smx
L 03/19/2020 - 026:22: [SM] Call stack trace:
L 03/19/2020 - 026:22: [SM] [0] SetFailState
L 03/19/2020 - 026:22: [SM] [1] Line 165, C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\[L4D2] Incap Crawling.sp:repSDKCall
L 03/19/2020 - 026:22: [SM] [2] Line 20, C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\[L4D2] Incap Crawling.sp::OnPluginStart
L 03/19/2020 - 026:22: [SM] Unable to load plugin "[L4D2] Incap Crawling.smx": Error detected in plugin startup (see error logs)
L 03/19/2020 - 0261: [SM] Exception reported: Cannot create new entity when no map is running
L 03/19/2020 - 0261: [SM] Blaming: l4d2_l4d1_survivors_fix.smx
Modified version without me seeing or knowing the source I cannot help and I do not support.
__________________
Silvers is offline
Shadowysn
Senior Member
Join Date: Sep 2015
Location: Location:
Old 04-05-2020 , 12:40   Re: [L4D2] Incapped Crawling with Animation (2.5) [01-Apr-2020]
Reply With Quote #217

Every time I try to do something new it almost always has to blow up.

I was pretty dumb to suggest disabling the anim props, but then you didn't pay much attention to the 2nd request, which suggests to me you were in a bad mood or didn't pay much attention (also thanks for the bit of sting on your comment there):
- make use of SDKHook_SetTransmit to prevent the clone of a character from showing up in first person.
I've already did that feature in my version btw, feel free to copy and paste over.

The only con about it is requiring SDKHooks, but it's included with Sourcemod since 1.5 and the only ones who I imagine would have trouble with are older Sourcemod users, and they can easily get SDKHooks themselves via a quick Google/Bing/Yahoo/whatever search engine search.

EDIT: Why was this comment apparently made on April 1st? For me it's April 6th! What timezone does Alliedmodders use?
EDIT 2: God dang it Silvers, your title fooled me.
__________________
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; 04-09-2020 at 06:10.
Shadowysn is offline
Raikage
Junior Member
Join Date: Jun 2020
Old 07-12-2020 , 12:07   Re: [L4D2] Incapped Crawling with Animation (2.6) [10-May-2020]
Reply With Quote #218

Does this work for l4d1?
Raikage is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 07-12-2020 , 12:24   Re: [L4D2] Incapped Crawling with Animation (2.6) [10-May-2020]
Reply With Quote #219

No, that's why the title is "[L4D2]" and not "[L4D & L4D2]"
__________________
Silvers is offline
Lux
Veteran Member
Join Date: Jan 2015
Location: Cat
Old 07-12-2020 , 12:45   Re: [L4D2] Incapped Crawling with Animation (2.6) [10-May-2020]
Reply With Quote #220

Quote:
Originally Posted by Raikage View Post
Does this work for l4d1?
l4d1 has crawling animation native to the game unlike l4d2.

Code:
Add to server.cfg or whatever you use to do configs

sm_cvar survivor_allow_crawling 1
sm_cvar survivor_crawl_speed 20 //whatever you want
__________________
Connect
My Plugins: KlickME
[My GitHub]

Commission me for L4D
Lux 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 16:15.


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